]> git.dujemihanovic.xyz Git - u-boot.git/commit
mmc: Poll CD in case cyclic framework is enabled
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Fri, 6 Sep 2024 17:10:42 +0000 (19:10 +0200)
committerTom Rini <trini@konsulko.com>
Sat, 21 Sep 2024 17:49:20 +0000 (11:49 -0600)
commit90cc07fd786d1fca38001a6b5c37b090f13cde3b
tree9bc6bd800cc69a519776a4afdacf758fd18f6775
parentd8bbe44456a123827a9e47a0e227d004c556c4cd
mmc: Poll CD in case cyclic framework is enabled

In case the cyclic framework is enabled, poll the card detect of already
initialized cards and deinitialize them in case they are removed. Since
the card initialization is a longer process and card initialization is
done on first access to an uninitialized card anyway, avoid initializing
newly detected uninitialized cards in the cyclic callback.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/mmc/mmc.c
include/mmc.h