From: David Vrabel <david.vrabel@csr.com>
To: Ohad Ben-Cohen <ohad@bencohen.org>
Cc: Andrew Morton <akpm@linux-foundation.org>,
Philip Langdale <philipl@overt.org>,
Matt Fleming <matt@console-pimps.org>,
ian@mnementh.co.uk, pierre@ossman.eu,
linux-kernel@vger.kernel.org, linux-embedded@vger.kernel.org,
nico@cam.org, nicolas.ferre@rfo.atmel.com, hskinnemoen@atmel.com,
tony@atomide.com, david-b@pacbell.net, manuel.lauss@gmail.com,
mirq-l@jasper.es, Adrian Hunter <adrian.hunter@nokia.com>,
Madhusudhan <madhu.cr@ti.com>
Subject: Re: [PATCH] sdio: add CD disable support
Date: Thu, 30 Jul 2009 13:54:41 +0100 [thread overview]
Message-ID: <4A719811.4060904@csr.com> (raw)
In-Reply-To: <1248954848.5396.6.camel@localhost>
Ohad Ben-Cohen wrote:
> From: Ohad Ben-Cohen <ohad@wizery.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@wizery.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'
next prev parent reply other threads:[~2009-07-30 12:54 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-30 11:54 [PATCH] sdio: add CD disable support Ohad Ben-Cohen
2009-07-30 12:45 ` Matt Fleming
2009-07-30 15:55 ` Ohad Ben-Cohen
2009-07-30 18:50 ` Matt Fleming
2009-07-31 11:16 ` Ohad Ben-Cohen
2009-07-30 12:54 ` David Vrabel [this message]
2009-07-31 11:10 ` Ohad Ben-Cohen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4A719811.4060904@csr.com \
--to=david.vrabel@csr.com \
--cc=adrian.hunter@nokia.com \
--cc=akpm@linux-foundation.org \
--cc=david-b@pacbell.net \
--cc=hskinnemoen@atmel.com \
--cc=ian@mnementh.co.uk \
--cc=linux-embedded@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=madhu.cr@ti.com \
--cc=manuel.lauss@gmail.com \
--cc=matt@console-pimps.org \
--cc=mirq-l@jasper.es \
--cc=nico@cam.org \
--cc=nicolas.ferre@rfo.atmel.com \
--cc=ohad@bencohen.org \
--cc=philipl@overt.org \
--cc=pierre@ossman.eu \
--cc=tony@atomide.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).