Skip to content

Commit

Permalink
drivers: mmc: Patch HOST_CONTROL2 register missing after top reset
Browse files Browse the repository at this point in the history
HOST_CONTROL2 register will be cleared after top reset,
it needs to be saved/resotred while reset.

Signed-off-by: Cool Lee <cool_lee@aspeedtech.com>
Change-Id: Ie97acac87eb81d73fa20294c777776dbacb377e0
  • Loading branch information
cooool1123 committed Jan 10, 2024
1 parent dda4373 commit 0c69253
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/mmc/host/sdhci-of-aspeed.c
Original file line number Diff line number Diff line change
Expand Up @@ -339,14 +339,15 @@ static void aspeed_sdhci_reset(struct sdhci_host *host, u8 mask)
struct sdhci_pltfm_host *pltfm_priv;
struct aspeed_sdhci *aspeed_sdhci;
struct aspeed_sdc *aspeed_sdc;
u32 save_array[7];
u32 save_array[8];
u32 reg_array[] = {SDHCI_DMA_ADDRESS,
SDHCI_BLOCK_SIZE,
SDHCI_ARGUMENT,
SDHCI_HOST_CONTROL,
SDHCI_CLOCK_CONTROL,
SDHCI_INT_ENABLE,
SDHCI_SIGNAL_ENABLE};
SDHCI_SIGNAL_ENABLE,
SDHCI_AUTO_CMD_STATUS};
int i;
u16 tran_mode;
u32 mmc8_mode;
Expand Down

0 comments on commit 0c69253

Please sign in to comment.