[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4A719811.4060904@csr.com>
Date: Thu, 30 Jul 2009 13:54:41 +0100
From: David Vrabel <david.vrabel@....com>
To: Ohad Ben-Cohen <ohad@...cohen.org>
CC: Andrew Morton <akpm@...ux-foundation.org>,
Philip Langdale <philipl@...rt.org>,
Matt Fleming <matt@...sole-pimps.org>, ian@...menth.co.uk,
pierre@...man.eu, linux-kernel@...r.kernel.org,
linux-embedded@...r.kernel.org, nico@....org,
nicolas.ferre@....atmel.com, hskinnemoen@...el.com,
tony@...mide.com, david-b@...bell.net, manuel.lauss@...il.com,
mirq-l@...per.es, Adrian Hunter <adrian.hunter@...ia.com>,
Madhusudhan <madhu.cr@...com>
Subject: Re: [PATCH] sdio: add CD disable support
Ohad Ben-Cohen wrote:
> From: Ohad Ben-Cohen <ohad@...ery.com>
>
> To save power, the pull-up resistor on CD/DAT[3] (pin 1)
> of the card can be disconnected. This is desired, e.g.,
> with embedded SDIO devices which do not rely on this pin
> for card detection.
Platforms may rely on the card's pull-up and not fit/configure an
external one. There may need to be a way for host controller drivers to
say this and prevent the disabling of the card's DAT3 pull-up.
> Signed-off-by: Ohad Ben-Cohen <ohad@...ery.com>
> ---
> drivers/mmc/core/sdio.c | 32 ++++++++++++++++++++++++++++++++
> include/linux/mmc/card.h | 3 ++-
> 2 files changed, 34 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/mmc/core/sdio.c b/drivers/mmc/core/sdio.c
> index fb99ccf..4c4c9a9 100644
> --- a/drivers/mmc/core/sdio.c
> +++ b/drivers/mmc/core/sdio.c
> @@ -165,6 +165,31 @@ static int sdio_enable_wide(struct mmc_card *card)
> }
>
> /*
> + * Disconnect the pull-up resistor on CD/DAT[3] if requested by the card.
> + * If card detection is not needed, this can save some power.
> + */
The first sentence of this comment doesn't make sense. The decision to
disable the pull-up is for the controller driver to make, not that card.
David
--
David Vrabel, Senior Software Engineer, Drivers
CSR, Churchill House, Cambridge Business Park, Tel: +44 (0)1223 692562
Cowley Road, Cambridge, CB4 0WZ http://www.csr.com/
'member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom'
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists