mmc: rtsx: add 74 Clocks in power on flow
authorRicky WU <ricky_wu@realtek.com>
Wed, 2 Mar 2022 09:43:01 +0000 (09:43 +0000)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 2 Mar 2022 10:38:28 +0000 (11:38 +0100)
commit1f311c94aabdb419c28e3147bcc8ab89269f1a7e
treebb08feb1704b2850d88faeccaa35bd8343bfa6c3
parenta4ee79063f44c60992c89eb4f66853329908ecca
mmc: rtsx: add 74 Clocks in power on flow

SD spec definition:
"Host provides at least 74 Clocks before issuing first command"
After 1ms for the voltage stable then start issuing the Clock signals

if POWER STATE is
MMC_POWER_OFF to MMC_POWER_UP to issue Clock signal to card
MMC_POWER_UP to MMC_POWER_ON to stop issuing signal to card

Signed-off-by: Ricky Wu <ricky_wu@realtek.com>
Link: https://lore.kernel.org/r/1badf10aba764191a1a752edcbf90389@realtek.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/rtsx_pci_sdmmc.c