sdhci: implement CAP_CLOCK_BASE_BROKEN quirk
authorAnton Vorontsov <[email protected]>
Wed, 26 May 2010 21:41:53 +0000 (14:41 -0700)
committerLinus Torvalds <[email protected]>
Thu, 27 May 2010 16:12:39 +0000 (09:12 -0700)
commitf27f47ef5b67106ff1cdeebf061387a7b30c12bc
tree0238bc989cefa0df4e64eaa3c21c182c66c294c4
parent0e950fa686d53a57ee6c47f477ecfc681670c6a9
sdhci: implement CAP_CLOCK_BASE_BROKEN quirk

Some hosts (e.g.  as found in CNS3xxx SOCs) report wrong value in
CLOCK_BASE capability field, and currently there is no way to force the
SDHCI core to use the platform-provided base clock value.

This patch implements CAP_CLOCK_BASE_BROKEN quirk.  When enabled, the
SDHCI core will always use base clock frequency provided by the platform.

Signed-off-by: Anton Vorontsov <[email protected]>
Cc: Richard Röjfors <[email protected]>
Cc: David Vrabel <[email protected]>
Cc: Pierre Ossman <[email protected]>
Cc: Ben Dooks <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/mmc/host/sdhci.c
drivers/mmc/host/sdhci.h