]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
mmc: core: Use a minimum 1600ms timeout when enabling CACHE ctrl
authorUlf Hansson <ulf.hansson@linaro.org>
Mon, 10 Dec 2018 16:52:38 +0000 (17:52 +0100)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commit70d6021f6862e66f0d9ebe2f9d053a7a553860e2
treea90aa54c912118cbaa7ad88a90464c71e0df1946
parentbc7dedc8e196b943790b146463d69c2025fd3330
mmc: core: Use a minimum 1600ms timeout when enabling CACHE ctrl

BugLink: https://bugs.launchpad.net/bugs/1837257
commit e3ae3401aa19432ee4943eb0bbc2ec704d07d793 upstream.

Some eMMCs from Micron have been reported to need ~800 ms timeout, while
enabling the CACHE ctrl after running sudden power failure tests. The
needed timeout is greater than what the card specifies as its generic CMD6
timeout, through the EXT_CSD register, hence the problem.

Normally we would introduce a card quirk to extend the timeout for these
specific Micron cards. However, due to the rather complicated debug process
needed to find out the error, let's simply use a minimum timeout of 1600ms,
the double of what has been reported, for all cards when enabling CACHE
ctrl.

Reported-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
Reported-by: Andreas Dannenberg <dannenberg@ti.com>
Reported-by: Faiz Abbas <faiz_abbas@ti.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/mmc/core/mmc.c