linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Samuel Ortiz <sameo@linux.intel.com>
To: wei_wang@realsil.com.cn
Cc: cjb@laptop.org, devel@linuxdriverproject.org,
	linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org,
	gregkh@linuxfoundation.org, adam.lee@canonical.com,
	rogerable@realtek.com
Subject: Re: [PATCH] mfd:rtsx: Fix issue that booting OS with SD card inserted
Date: Fri, 8 Feb 2013 20:33:03 +0100	[thread overview]
Message-ID: <20130208193303.GD20996@sortiz-mobl> (raw)
In-Reply-To: <1360308268-6911-1-git-send-email-wei_wang@realsil.com.cn>

Hi Wei,

On Fri, Feb 08, 2013 at 03:24:27PM +0800, wei_wang@realsil.com.cn wrote:
> From: Wei WANG <wei_wang@realsil.com.cn>
> 
> Realtek card reader supports both SD and MS card. According to the
> settings of rtsx MFD driver, SD host will be probed before MS host.
> If we boot/reboot Linux with SD card inserted, the resetting flow of SD
> card will succeed, and the following resetting flow of MS is sure to fail.
> Then MS upper-level driver will ask rtsx driver to turn power off. This
> request leads to the result that the following SD commands fail and SD card
> can't be accessed again.
> 
> In this commit, Realtek's SD and MS host driver will check whether the card
> that upper driver requesting is the one existing in the slot. If not, Realtek's
> host driver will refuse the operation to make sure the exlusive accessing
> at the same time.
> 
> Signed-off-by: Wei WANG <wei_wang@realsil.com.cn>
> ---
>  drivers/memstick/host/rtsx_pci_ms.c |    7 +++++++
>  drivers/mfd/rtsx_pcr.c              |   30 ++++++++++++++++++++++++++++++
>  drivers/mmc/host/rtsx_pci_sdmmc.c   |   18 ++++++++++++++++++
>  include/linux/mfd/rtsx_pci.h        |    2 ++
>  4 files changed, 57 insertions(+)
Patch applied, thanks.

Cheers,
Samuel.

-- 
Intel Open Source Technology Centre
http://oss.intel.com/

      reply	other threads:[~2013-02-08 19:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-08  7:24 [PATCH] mfd:rtsx: Fix issue that booting OS with SD card inserted wei_wang
2013-02-08 19:33 ` Samuel Ortiz [this message]

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=20130208193303.GD20996@sortiz-mobl \
    --to=sameo@linux.intel.com \
    --cc=adam.lee@canonical.com \
    --cc=cjb@laptop.org \
    --cc=devel@linuxdriverproject.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mmc@vger.kernel.org \
    --cc=rogerable@realtek.com \
    --cc=wei_wang@realsil.com.cn \
    /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).