mbox series

[RFC,v1,0/1] mmc: zynq_sdhci: Only evaluate card-stable signal if card was detected

Message ID 20240424082343.212554-1-lukas.funke-oss@weidmueller.com
Headers show
Series mmc: zynq_sdhci: Only evaluate card-stable signal if card was detected | expand

Message

Lukas Funke April 24, 2024, 8:23 a.m. UTC
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-oss@weidmueller.com/T/#m295a0158fe62da7289baa26bcd7272ad8598af56

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(-)