]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: queue: let host controllers specify maximum discard timeout
authorAdrian Hunter <adrian.hunter@intel.com>
Tue, 28 Jun 2011 14:16:02 +0000 (17:16 +0300)
committerChris Ball <cjb@laptop.org>
Wed, 20 Jul 2011 21:21:03 +0000 (17:21 -0400)
commit20bbe33bd7c6fa4c47db50cfe6a1bc212cd077e4
treec9cd3a6144787bcb434e52a4a32dec3c37e9f343
parent1bd0ce70702aab2f0f70f44b0bf8d4bd5654e1c1
mmc: queue: let host controllers specify maximum discard timeout

Some host controllers will not operate without a hardware
timeout that is limited in value.  However large discards
require large timeouts, so there needs to be a way to
specify the maximum discard size.

A host controller driver may now specify the maximum discard
timeout possible so that max_discard_sectors can be calculated.

However, for eMMC when the High Capacity Erase Group Size
is not in use, the timeout calculation depends on clock
rate which may change.  For that case Preferred Erase Size
is used instead.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/card/queue.c
drivers/mmc/core/core.c
include/linux/mmc/core.h
include/linux/mmc/host.h