diff options
author | Wanhyeong Ryu <wryu@qti.qualcomm.com> | 2017-11-01 15:51:40 +0800 |
---|---|---|
committer | Veerabhadrarao Badiganti <vbadigan@codeaurora.org> | 2017-11-07 15:39:33 +0530 |
commit | 63d7fc8afd7b7fd97db552cc6c145c930b9eea32 (patch) | |
tree | 710c436e54459643cd2d5966cab9ce6ec4c4365d /include | |
parent | 91da619c3a57a7abcfa421200fd8aff275890772 (diff) |
mmc: core: Return error if fallback to lower speed mode fails
If there are continuous data-CRC errors in higher speed modes (SDR104
mode), then driver fallbacks to lower speed mode. But if at all it
fails to fallback to lower speed mode, then that error should be
propagated to the caller so that caller will handle it appropriately.
Without this change, sometime while processing card removal event,
driver fails to detect card removal and treats card as present
eventhough its removed.
Change-Id: I89544d41c5b014eb9227ba33ef9ec1917b6793dc
Signed-off-by: Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mmc/core.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/mmc/core.h b/include/linux/mmc/core.h index 08b3b8348fd7..862d8d1bae8f 100644 --- a/include/linux/mmc/core.h +++ b/include/linux/mmc/core.h @@ -224,7 +224,7 @@ extern void mmc_cmdq_clk_scaling_start_busy(struct mmc_host *host, bool lock_needed); extern void mmc_cmdq_clk_scaling_stop_busy(struct mmc_host *host, bool lock_needed, bool is_cmdq_dcmd); -extern void mmc_recovery_fallback_lower_speed(struct mmc_host *host); +extern int mmc_recovery_fallback_lower_speed(struct mmc_host *host); /** * mmc_claim_host - exclusively claim a host |