All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] mmc: dw_mmc: Fix UHS tuning on some brand of cards.
@ 2016-04-25 15:18 Enric Balletbo i Serra
  2016-04-25 15:18 ` [PATCH v2] mmc: dw_mmc: Wait for data transfer after response errors Enric Balletbo i Serra
  2016-04-25 15:29 ` [PATCH v2] mmc: dw_mmc: Fix UHS tuning on some brand of cards Enric Balletbo Serra
  0 siblings, 2 replies; 6+ messages in thread
From: Enric Balletbo i Serra @ 2016-04-25 15:18 UTC (permalink / raw)
  To: Jaehoon Chung, Ulf Hansson, linux-mmc, linux-kernel

Hi,

I introduced the cover letter to give some background about this.

I have been investigating a problem related to at least one specific sdcard when
UHS-I is set. The card is not detected due the tuning phase reports a
failure. Since the problem is only reproduced with a single model of a single
brand of card, it is probably a card firmware issue, but the card works fine
on my laptop.

The first attempt to fix this was a patch sent by Doug Anderson [1], but Alim
Akhtar found that this produced randomly a hung task on Peach-pi. I can confirm
that it's easy to reproduce the hung task, either, with cold boots or suspend to
ram tests.

I tried to fix both problems (the original issue and the one introduced by the
patch) in different ways, but I ended thinking that this second proposal is the
most simple that solves both issues. So let's try to fix this by handling the
response CRC error slightly differently when tuning command is happening.

I tested the patch on both platforms, on exynos and on rockhip. I did lots of
tests and at the moment the patch seems to fix the rockchip issue and don't
hung on exynos. I'll continue testing meanwhile we discuss about it.

I think the patch, at least, needs the Doug's approval (as he dig into the issue
before) and the Tested-by Alim. So will be good if you have a slot of time to
look a bit into this.

Thanks in advance.
 Enric

[1] https://lkml.org/lkml/2015/5/18/495

Doug Anderson (1):
  mmc: dw_mmc: Wait for data transfer after response errors.

 drivers/mmc/host/dw_mmc.c | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

-- 
2.1.0

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-04-26  8:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-25 15:18 [PATCH v2] mmc: dw_mmc: Fix UHS tuning on some brand of cards Enric Balletbo i Serra
2016-04-25 15:18 ` [PATCH v2] mmc: dw_mmc: Wait for data transfer after response errors Enric Balletbo i Serra
2016-04-25 15:29   ` Enric Balletbo Serra
2016-04-25 15:29 ` [PATCH v2] mmc: dw_mmc: Fix UHS tuning on some brand of cards Enric Balletbo Serra
2016-04-26  7:44   ` Jaehoon Chung
2016-04-26  8:03     ` Enric Balletbo i Serra

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.