linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: zhangfei.gao@gmail.com (zhangfei gao)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/2] mmc: sdhci move vmmc to set_ios
Date: Wed, 24 Aug 2011 21:22:21 +0800	[thread overview]
Message-ID: <CAMj5BkhyPtbFJfpDKssoWiTDbjAjwy5TuJJa8zATrBOCjuENSA@mail.gmail.com> (raw)
In-Reply-To: <1311663973-23715-2-git-send-email-zhangfei.gao@marvell.com>

On Tue, Jul 26, 2011 at 3:06 PM, Zhangfei Gao <zhangfei.gao@marvell.com> wrote:
> Move vmmc to set_ios, as a result mmc_power_up/down handles regulator_enable/disable vmmc
> Move regulator outof spin_lock, since usually i2c operation is called
> Remove vmmc from suspend/resume function, instead vmmc is handled properly in mmc_suspend/resume_host according to mmc_card_keep_power
>
> CC: Ohad Ben-Cohen <ohad@wizery.com>
> Signed-off-by: Zhangfei Gao <zhangfei.gao@marvell.com>
> ---
> ?drivers/mmc/host/sdhci.c ?| ? 27 +++++++++++++++------------
> ?include/linux/mmc/sdhci.h | ? ?1 +
> ?2 files changed, 16 insertions(+), 12 deletions(-)
>

Hi, Daniel

We found some impact to sd if reusing vmmc in set_ios, when no sd card
is inserted.
When no sd card, CD pin is high, but when vmmc is disabled in
mmc_power_down, as a result CD pin will be pulled down, which is same
as sd card is inserted, however the card detect will fail since no sd
card in fact.

So additional regulator vsdio still required to control power of
vsdio, to make mmc_power_up/down control sdio power.

Thanks

  reply	other threads:[~2011-08-24 13:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-26  7:06 [PATCH v2 0/2] set_ios handle vmmc Zhangfei Gao
2011-07-26  7:06 ` [PATCH 1/2] mmc: sdhci move vmmc to set_ios Zhangfei Gao
2011-08-24 13:22   ` zhangfei gao [this message]
2011-07-26  7:06 ` [PATCH 2/2] ARM: mmp2: support sdio device 8787 Zhangfei Gao

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=CAMj5BkhyPtbFJfpDKssoWiTDbjAjwy5TuJJa8zATrBOCjuENSA@mail.gmail.com \
    --to=zhangfei.gao@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /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).