]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: sdhci: Introduce new flag SDHCI_USING_RETUNING_TIMER
authorAaron Lu <aaron.lu@amd.com>
Wed, 4 Jul 2012 05:29:09 +0000 (13:29 +0800)
committerChris Ball <cjb@laptop.org>
Sun, 22 Jul 2012 19:25:49 +0000 (15:25 -0400)
commit33723ed984c7c9db70314677f86be58a1f07a702
treea44c153c77eae6c52d4bafb5f0a8da745cba7b35
parent2b54b264ef6995371beaa17bfc3f494b7fc910d5
mmc: sdhci: Introduce new flag SDHCI_USING_RETUNING_TIMER

Add a new flag of SDHCI_USING_RETUNING_TIMER to represent if the host
is using a retuning timer for the card inserted.

This flag is set when the host does tuning the first time for the card
and the host's retuning mode is 1. This flag is used afterwards whenever
needs to decide if the host is currently using a retuning timer.

This flag is cleared when the card is removed in sdhci_reinit.

The set/clear of the flag and the start/stop of the retuning timer is
associated with the card's init/remove time, so there is no need to
touch it when the host is to be removed as at that time the card should
have already been removed.

Signed-off-by: Aaron Lu <aaron.lu@amd.com>
Reviewed-by: Girish K S <girish.shivananjappa@linaro.org>
Reviewed-by: Philip Rakity <prakity@marvell.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/sdhci.c
include/linux/mmc/sdhci.h