Skip to content
Snippets Groups Projects
Commit b6f44082 authored by T Karthik Reddy's avatar T Karthik Reddy Committed by Michal Simek
Browse files

mmc: zynq_sdhci: Wait till sd card detect state is stable


As per SD spec when SD host controller is reset, it takes 1000msec
to detect the card state. In case, if we enable the sd bus voltage &
card detect state is not stable, then host controller will disable
the sd bus voltage.

In case of warm/subsystem reboot, due to unstable card detect state
host controller is disabling the sd bus voltage to sd card causing
sd card timeout error. So we wait for a maximum of 1000msec to get
the card detect state stable before we enable the sd bus voltage.

This current fix is workaround for now, this needs to be analysed
further. Zynqmp platform should behave the same as Versal, but we
did not encounter this issue as of now. So we are fixing it for
Versal only.

Signed-off-by: default avatarT Karthik Reddy <t.karthik.reddy@xilinx.com>
Signed-off-by: default avatarAshok Reddy Soma <ashok.reddy.soma@xilinx.com>
Reviewed-by: default avatarJaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
parent 655d69fa
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment