mmc: sdhci: add platform set_timeout hook
authorAisheng Dong <b29396@freescale.com>
Wed, 27 Aug 2014 07:26:29 +0000 (15:26 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 9 Sep 2014 11:59:21 +0000 (13:59 +0200)
commitb45e668af4439bfc52ed92af44b6400661ba7ec8
treec84dd728d94f8ae0bef7f1f3997c04c5b8e905ce
parent10fd0ad967c05cda16b25f862e2a45eb63d83a21
mmc: sdhci: add platform set_timeout hook

Currently the common code assume 0xE is the maximum timeout counter
value and use it to write into the timeout counter register.
However, it's fairly possible that some other SoCs may have different
max timeout register value. That means 0xE may be incorrect and
becomes meaningless.

It's also possible that other platforms has different timeout
calculation algorithm. To be flexible, this patch provides a .set_timeout
hook for those platforms to set the timeout on their way if they need.

Reviewed-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Dong Aisheng <b29396@freescale.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci.c
drivers/mmc/host/sdhci.h
This page took 0.027544 seconds and 5 git commands to generate.