]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
mmc: mmc: Fix partition switch timeout for some eMMCs
authorAdrian Hunter <adrian.hunter@intel.com>
Thu, 5 May 2016 05:12:28 +0000 (08:12 +0300)
committerKamal Mostafa <kamal@canonical.com>
Fri, 10 Jun 2016 13:32:25 +0000 (06:32 -0700)
commit56a2799fd196bb0903afdca8dcfc648cd9aa0f2a
tree6a3718159a1e0476ce1c70a8e342a0ef3ffcbc9d
parent2ed963bfaca3bdc7334eaa40a07a2e6287d8be42
mmc: mmc: Fix partition switch timeout for some eMMCs

BugLink: http://bugs.launchpad.net/bugs/1588945
commit 1c447116d017a98c90f8f71c8c5a611e0aa42178 upstream.

Some eMMCs set the partition switch timeout too low.

Now typically eMMCs are considered a critical component (e.g. because
they store the root file system) and consequently are expected to be
reliable.  Thus we can neglect the use case where eMMCs can't switch
reliably and we might want a lower timeout to facilitate speedy
recovery.

Although we could employ a quirk for the cards that are affected (if
we could identify them all), as described above, there is little
benefit to having a low timeout, so instead simply set a minimum
timeout.

The minimum is set to 300ms somewhat arbitrarily - the examples that
have been seen had a timeout of 10ms but were sometimes taking 60-70ms.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
drivers/mmc/core/mmc.c