]> git.dujemihanovic.xyz Git - u-boot.git/commit
mmc: atmel_sdhci: re-enable sdhci after SD Card re-insertion
authorSergiu Moga <sergiu.moga@microchip.com>
Wed, 22 Jun 2022 13:30:47 +0000 (16:30 +0300)
committerEugen Hristev <eugen.hristev@microchip.com>
Mon, 19 Sep 2022 06:50:17 +0000 (09:50 +0300)
commit222a1f490722c60d73efaa3387e617ff5b730eb6
treec658e24bf517e06f24b22dd0619a5e7d5040fbc5
parentb6c50e5831f6ce3800d4b3cf3c7aa35dde8c48d9
mmc: atmel_sdhci: re-enable sdhci after SD Card re-insertion

Whenever the SD Card would be removed and then re-inserted while in the
U-Boot command line, the `SDBPWR` bit of the `SDMMC_PCR` register would
remain unset afterwards. In order for the bit to be set again after
re-insertion, register an additional `deferred_probe` method that the
DM would then transparently call. This method will call the generic
`sdhci_probe` which will, during its execution flow, set this bit to 1.

Signed-off-by: Sergiu Moga <sergiu.moga@microchip.com>
Reported-by: Mihai Sain <mihai.sain@microchip.com>
Reviewed-by: Eugen Hristev <eugen.hristev@microchip.com>
drivers/mmc/atmel_sdhci.c