Skip to content

Commit

Permalink
mmc: host: Issue CMD and DAT resets together
Browse files Browse the repository at this point in the history
Rapid hot-plug/unlug of SD cards can force the SDHCI FSM to go in
bad state.
Resetting CMD FSM before DATA FSM results in system crash
Add support to issue CMD and DATA resets together.

Bug 3688344
Bug 3573141

Change-Id: I65fd9d97725e3be539d5b98cc7b3e91b3c63046d
Signed-off-by: Aniruddha TVS Rao <[email protected]>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-4.9/+/2754539
Reviewed-by: Bibek Basu <[email protected]>
GVS: Gerrit_Virtual_Submit <[email protected]>
  • Loading branch information
Aniruddha TVS Rao authored and mobile promotions committed Sep 19, 2022
1 parent b577987 commit 49f3082
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/mmc/host/sdhci-tegra.c
Original file line number Diff line number Diff line change
Expand Up @@ -2003,6 +2003,7 @@ static const struct sdhci_pltfm_data sdhci_tegra186_pdata = {
SDHCI_QUIRK_NO_ENDATTR_IN_NOPDESC,
.quirks2 = SDHCI_QUIRK2_PRESET_VALUE_BROKEN |
SDHCI_QUIRK2_USE_64BIT_ADDR |
SDHCI_QUIRK2_ISSUE_CMD_DAT_RESET_TOGETHER |
SDHCI_QUIRK2_HOST_OFF_CARD_ON |
SDHCI_QUIRK2_SEL_SDR104_UHS_MODE_IN_SDR50,
.ops = &tegra_sdhci_ops,
Expand All @@ -2029,6 +2030,7 @@ static const struct sdhci_pltfm_data sdhci_tegra194_pdata = {
.quirks2 = SDHCI_QUIRK2_PRESET_VALUE_BROKEN |
SDHCI_QUIRK2_USE_64BIT_ADDR |
SDHCI_QUIRK2_HOST_OFF_CARD_ON |
SDHCI_QUIRK2_ISSUE_CMD_DAT_RESET_TOGETHER |
SDHCI_QUIRK2_NON_STD_TUN_CARD_CLOCK,
.ops = &tegra_sdhci_ops,
};
Expand Down

0 comments on commit 49f3082

Please sign in to comment.