
From: Lukas Funke lukas.funke@weidmueller.com
On ZynqMp there seems to be a dependency between the card-stable bit and the card-detect bit. The card-stable bit is set *if and only if* the card-detect bit was set before, indicating that the signal was stable and reliable during card insertion.
If the card-detect bit is *not* evaluated the corresponding check leads to a timeout indicating that the card-detect was not stable.
There was another patch that tried to mitigate this behaviour:
https://lore.kernel.org/u-boot/20230516142116.29996-1-stefan.herbrechtsmeier...
However, the discussion stalled and the solution was not accepted. This patch introduces another way to deal with the observed behaviour.
Lukas Funke (1): mmc: zynq_sdhci: Only evaluate card-stable signal if card was detected
drivers/mmc/zynq_sdhci.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)