summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKaustabh Chakraborty <[email protected]>2025-10-17 20:54:08 +0530
committerPeng Fan <[email protected]>2025-10-30 10:11:17 +0800
commitae4601959202f4ea21c8a1aa42c5d2d894b03d57 (patch)
tree2814bf4e085cd48537e61abdde013f87a351058a /include
parent3a5b187b5c03eff681d4e41823313dfa28dfe845 (diff)
mmc: dw_mmc: properly address command completion in dwmci_control_clken()
The current implementation polls for the DWMCI_CMD register, for the DWMCI_CMD_START bit to turn off, which indicates that the command has been completed. The problem with this approach is that it doesn't address the DWMCI_INTMSK_CDONE bit in the interrupt register, DWMCI_RINTSTS. As a result, subsequent commands result in timeout errors. Re-implement the waiting logic by polling for said interrupt status bit and setting it low if raised. Signed-off-by: Kaustabh Chakraborty <[email protected]> Signed-off-by: Peng Fan <[email protected]>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions