[PATCH v5] mmc: Poll CD in case cyclic framework is enabled
Marek Vasut
marek.vasut at mailbox.org
Fri Sep 6 20:28:16 CEST 2024
On 9/6/24 12:02 AM, Tom Rini wrote:
> On Sun, Jun 16, 2024 at 04:58:49PM +0200, Marek Vasut wrote:
>
>> 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 at mailbox.org>
>> ---
>> Cc: Jaehoon Chung <jh80.chung at samsung.com>
>> Cc: Peng Fan <peng.fan at nxp.com>
>> Cc: Simon Glass <sjg at chromium.org>
>> ---
>> V2: Move the cyclic registration/unregistration into mmc init/deinit
>> V3: Replace if (CONFIG_IS_ENABLED(CYCLIC)...) with #if as the former
>> does not work with structure members
>> V4: Stuff the code with CONFIG_IS_ENABLED() variants to avoid #ifdefs
>> V5: Rebase on u-boot/next
>
> Sorry for the delay here, this no longer builds:
> sandbox: + sandbox
Fixed in V6, sigh
More information about the U-Boot
mailing list