Skip to content
Commit 79667b7b authored by Wenyou Yang's avatar Wenyou Yang Committed by Andreas Bießmann
Browse files

mmc: sdhci: Fix the SD clock stop sequence



According to the SDHC specification, stopping the SD Clock is by setting
the SD Clock Enable bit in the Clock Control register at 0, instead of
setting all bits at 0.

Before stopping the SD clock, we need to make sure all SD transactions
to complete, so add checking the CMD and DAT bits in the Presen State
register, before stopping the SD clock.

Signed-off-by: default avatarWenyou Yang <wenyou.yang@atmel.com>
parent ce39680f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment