diff options
author | harish_kandiga@mentor.com <harish_kandiga@mentor.com> | 2018-04-10 10:00:31 +0300 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2018-05-02 16:08:39 +0300 |
commit | ebc5a1bf4f2afc2f2b348320dcfb45a8c0ac3de5 (patch) | |
tree | a3444f451f815f7e4d05b31c67c5b00e996c85ec /drivers/mmc/core/card.h | |
parent | d39b1b2abf9fcae3001b868186faa1ae889aecf5 (diff) | |
download | linux-ebc5a1bf4f2afc2f2b348320dcfb45a8c0ac3de5.tar.xz |
mmc: core: Add a new quirk for limiting clock rate
This patch adds a quirk to limit clock rate which
can be used to reduce the SDIO clock rate for some
chips with broken UHS.
Signed-off-by: Harish Jenny K N <harish_kandiga@mentor.com>
Reviewed-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/core/card.h')
-rw-r--r-- | drivers/mmc/core/card.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/mmc/core/card.h b/drivers/mmc/core/card.h index 9c821eedd156..1170feb8f969 100644 --- a/drivers/mmc/core/card.h +++ b/drivers/mmc/core/card.h @@ -149,6 +149,12 @@ static inline void __maybe_unused remove_quirk(struct mmc_card *card, int data) card->quirks &= ~data; } +static inline void __maybe_unused add_limit_rate_quirk(struct mmc_card *card, + int data) +{ + card->quirk_max_rate = data; +} + /* * Quirk add/remove for MMC products. */ |