diff options
| author | Marek Vasut <[email protected]> | 2024-09-06 19:10:42 +0200 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2024-09-21 11:49:20 -0600 |
| commit | 90cc07fd786d1fca38001a6b5c37b090f13cde3b (patch) | |
| tree | 9bc6bd800cc69a519776a4afdacf758fd18f6775 /include | |
| parent | d8bbe44456a123827a9e47a0e227d004c556c4cd (diff) | |
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 <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/mmc.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/mmc.h b/include/mmc.h index f508cd15700..0044ff8bef7 100644 --- a/include/mmc.h +++ b/include/mmc.h @@ -14,6 +14,7 @@ #include <linux/sizes.h> #include <linux/compiler.h> #include <linux/dma-direction.h> +#include <cyclic.h> #include <part.h> struct bd_info; @@ -757,6 +758,8 @@ struct mmc { bool hs400_tuning:1; enum bus_mode user_speed_mode; /* input speed mode from user */ + + CONFIG_IS_ENABLED(CYCLIC, (struct cyclic_info cyclic)); }; #if CONFIG_IS_ENABLED(DM_MMC) |
