All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Guo <peter.guo@bayhubtech.com>
To: Alex Ballas <alex@ballas.org>,
	"adam.lee@canonical.com" <adam.lee@canonical.com>,
	"ulf.hansson@linaro.org" <ulf.hansson@linaro.org>
Cc: "linux-mmc@VGER.KERNEL.ORG" <linux-mmc@VGER.KERNEL.ORG>
Subject: RE: 1217:8520 [Dell Latitude E7450] O2 Micro, SD/MMC Card Reader doesn't work
Date: Wed, 16 Dec 2015 03:42:59 +0000	[thread overview]
Message-ID: <BY2PR04MB184372CAAC1FA0C5373D73238FEF0@BY2PR04MB1843.namprd04.prod.outlook.com> (raw)
In-Reply-To: <CAONpWdsteBnqTcFbKpcOQFueyeJJWEmn9DJitD43f59xV8sDyg@mail.gmail.com>

Hi Alex,

Thanks for your Test, According to your info.
I find the root cause of this issue is quirks SDHCI_QUIRK2_CLEAR_TRANSFERMODE_REG_BEFORE_CMD is not suitable for our host for 
all cases.  Our host just want to clear SDHCI_TRANS_DMA bit only.

to Adam,

I will commit new patch this week, please check it.


BR
Peter.Guo

-----Original Message-----
From: Alex Ballas [mailto:alex@ballas.org] 
Sent: Saturday, December 12, 2015 10:04 PM
To: Peter Guo; adam.lee@canonical.com; ulf.hansson@linaro.org
Cc: linux-mmc@VGER.KERNEL.ORG
Subject: 1217:8520 [Dell Latitude E7450] O2 Micro, SD/MMC Card Reader doesn't work

Hello,

I have a Dell Latitude E7450 with a O2 Micro, SD/MMC Card Reader [1217:8520] card reader. When I insert my Sandisk ultra 64GB microSD (with a SD card adapter) I get the following errors.

Dmesg output after I insert the SD card:

[  306.054203] sdhci: Timeout waiting for Buffer Read Ready interrupt during tuning procedure, falling back to fixed sampling clock [  306.055982] mmc0: tuning execution failed [  306.055987] mmc0: error -5 whilst initialising SD card [  306.466185] sdhci: Timeout waiting for Buffer Read Ready interrupt during tuning procedure, falling back to fixed sampling clock [  306.467964] mmc0: tuning execution failed [  306.467970] mmc0: error -5 whilst initialising SD card [  306.890205] sdhci: Timeout waiting for Buffer Read Ready interrupt during tuning procedure, falling back to fixed sampling clock [  306.891993] mmc0: tuning execution failed [  306.892005] mmc0: error -5 whilst initialising SD card [  307.330197] sdhci: Timeout waiting for Buffer Read Ready interrupt during tuning procedure, falling back to fixed sampling clock [  307.331980] mmc0: tuning execution failed [  307.331990] mmc0: error -5 whilst initialising SD card

I used the latest mainline kernel available to me [1] $ uname -a Linux cosmo 4.4.0-040400rc4-generic #201512061930 SMP Mon Dec 7
00:32:31 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

It was working fine for kernel versions older than 4.1.8.

I did a bisection and here is the first bad commit

> e6c69099f63c84e1825c0f742a76ff4a8afeaa9b is the first bad commit 
> commit e6c69099f63c84e1825c0f742a76ff4a8afeaa9b
> Author: Adam Lee <adam.lee@canonical.com>
> Date:   Mon Aug 3 14:33:28 2015 +0800
>
>     mmc: sdhci-pci: set the clear transfer mode register quirk for 
> O2Micro
>
>     commit 143b648ddf1583905fa15d32be27a31442fc7933 upstream.
>
>     This patch fixes MMC not working issue on O2Micro/BayHub Host, which
>     requires transfer mode register to be cleared when sending no DMA
>     command.
>
>     Signed-off-by: Peter Guo <peter.guo@bayhubtech.com>
>     Signed-off-by: Adam Lee <adam.lee@canonical.com>
>     Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
>     Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

I originally logged this issue to the Ubuntu bug tracker[2], but it appears to be an upstream issue and so I was instructed to report here.
Please note that I use the latest Bios version for the model.

$ sudo dmidecode -s bios-version;sudo dmidecode -s bios-release-date
A08
10/28/2015

[1] http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.4-rc4-wily/
[2] https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1523178

Thanks,
Alex

  reply	other threads:[~2015-12-16  3:58 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-12 14:04 1217:8520 [Dell Latitude E7450] O2 Micro, SD/MMC Card Reader doesn't work Alex Ballas
2015-12-16  3:42 ` Peter Guo [this message]
2015-12-16  9:48   ` Alex Ballas
2015-12-18  3:14     ` Peter Guo
2015-12-18  8:51       ` Ulf Hansson
2015-12-18  9:39         ` Peter Guo
2015-12-18 10:43           ` Alex Ballas
2015-12-18 22:55             ` Alex Ballas
2015-12-22  3:24               ` Peter Guo
2015-12-22  8:30                 ` Ulf Hansson
2015-12-23  6:39                   ` Peter Guo
2015-12-23 14:24                     ` Wan ZongShun
2015-12-23 11:13                   ` Russell King - ARM Linux
2015-12-28 11:47                     ` Ulf Hansson
2016-01-02 12:50                       ` Russell King - ARM Linux

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=BY2PR04MB184372CAAC1FA0C5373D73238FEF0@BY2PR04MB1843.namprd04.prod.outlook.com \
    --to=peter.guo@bayhubtech.com \
    --cc=adam.lee@canonical.com \
    --cc=alex@ballas.org \
    --cc=linux-mmc@VGER.KERNEL.ORG \
    --cc=ulf.hansson@linaro.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.