All of lore.kernel.org
 help / color / mirror / Atom feed
From: zhangfei gao <zhangfei.gao@gmail.com>
To: Bing Zhao <bzhao@marvell.com>
Cc: Ohad Ben-Cohen <ohad@wizery.com>,
	Nicolas Pitre <nico@fluxnic.net>,
	Sahitya Tummala <stummala@codeaurora.org>,
	"linux-mmc@vger.kernel.org" <linux-mmc@vger.kernel.org>,
	Michal Miroslaw <mirqus@gmail.com>, Chris Ball <cjb@laptop.org>,
	Andrew Morton <akpm@linux-foundation.org>,
	Maxim Levitsky <maximlevitsky@gmail.com>,
	Jun Nie <njun@marvell.com>
Subject: Re: [PATCH v2] sdio: skip initialization on powered resume
Date: Mon, 24 Jan 2011 22:10:01 -0500	[thread overview]
Message-ID: <AANLkTimZJbO1FNGKUG2JhJZOVeM-95cc5NuvAN+oC+Vx@mail.gmail.com> (raw)
In-Reply-To: <477F20668A386D41ADCC57781B1F704307F4EA2BA9@SC-VEXCH1.marvell.com>

On Mon, Jan 24, 2011 at 9:17 PM, Bing Zhao <bzhao@marvell.com> wrote:
> Hi Ohad,
>
>> -----Original Message-----
>> From: Ohad Ben-Cohen [mailto:ohad@wizery.com]
>> Sent: Saturday, January 22, 2011 2:01 PM
>> To: zhangfei gao
>> Cc: Nicolas Pitre; Bing Zhao; Sahitya Tummala; linux-mmc@vger.kernel.org; Michal Miroslaw; Chris Ball;
>> Andrew Morton; Maxim Levitsky
>> Subject: Re: [PATCH v2] sdio: skip initialization on powered resume
>>
>> On Fri, Jan 21, 2011 at 11:07 AM, zhangfei gao <zhangfei.gao@gmail.com> wrote:
>> > Do you have any updated patch to skip mmc_sdio_init_card in resume back.
>> > We need such patch in enable host sleep feature for mrvl8787.
>>
>> Is mrvl8787 a removable card ?
>
> It can be either a removable or non-removable card, depending on what platform is used.
>
>>
>> I'm asking because we already skip mmc_sdio_init_card() for
>> powered-resumed nonremovable cards (check out commit 3cfc33a "mmc:
>> sdio: don't reinitialize nonremovable powered-resumed cards").
>
> Thanks for the info.
>
>>
>> I'm not familiar with marvell's cards, but I do remember a thread
>> mentioning they have dedicated reset GPIOs, and that may suggest they
>> are nonremovables. If that's the case, simply setting
>> MMC_CAP_NONREMOVABLE on the relevant slot should do the trick for you.
>
> I think this approach works for Zhangfei on his embedded platform on which the 8787 card is non-removable.

Hi, Ohad,

Thanks for your patch, it is workable on the platform where mrvl8787
is non-removable.
However, we still have platform mrvl8787 is removable,
SDHCI_PRESENT_STATE can be read out value.
Could we remove mmc_card_is_removable(host) condition, the skip is not
related with whether card is removable or not, do you think so?

Thanks a lot.

>
> Regards,
>
> Bing
>

  reply	other threads:[~2011-01-25  3:10 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-02  1:41 [PATCH v2] sdio: skip initialization on powered resume Bing Zhao
2010-09-02 17:54 ` Nicolas Pitre
2010-09-02 22:58   ` Bing Zhao
2010-09-02 23:30     ` Nicolas Pitre
2010-09-08  1:03       ` Bing Zhao
2010-09-08  1:28         ` Nicolas Pitre
2010-09-08  2:10           ` Bing Zhao
2010-09-14 10:15             ` Sahitya Tummala
2010-09-16  0:27               ` Bing Zhao
2010-09-16  2:26                 ` Nicolas Pitre
2011-01-21  9:07                   ` zhangfei gao
2011-01-22  2:22                     ` Bing Zhao
2011-01-22  2:55                       ` Nicolas Pitre
2011-01-22  3:27                         ` Bing Zhao
2011-01-22  3:38                           ` Chris Ball
2011-01-22 22:01                     ` Ohad Ben-Cohen
2011-01-25  2:17                       ` Bing Zhao
2011-01-25  3:10                         ` zhangfei gao [this message]
2011-01-25  7:11                           ` Ohad Ben-Cohen
2011-01-25  7:24                             ` 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=AANLkTimZJbO1FNGKUG2JhJZOVeM-95cc5NuvAN+oC+Vx@mail.gmail.com \
    --to=zhangfei.gao@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=bzhao@marvell.com \
    --cc=cjb@laptop.org \
    --cc=linux-mmc@vger.kernel.org \
    --cc=maximlevitsky@gmail.com \
    --cc=mirqus@gmail.com \
    --cc=nico@fluxnic.net \
    --cc=njun@marvell.com \
    --cc=ohad@wizery.com \
    --cc=stummala@codeaurora.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.