Skip to content

mmc-2020-6-10

@openedev openedev tagged this 10 Jun 02:07
SDHCI HISPD bits need to be configured based on desired mmc
timings mode and some HISPD quirks.

So, handle the HISPD bit based on the mmc computed selected
mode(timing parameter) rather than fixed mmc card clock
frequency.

Linux handle the HISPD similar like this in below commit,

commit <501639bf2173> ("mmc: sdhci: fix SDHCI_QUIRK_NO_HISPD_BIT handling")

This eventually fixed the mmc write issue observed in
rk3399 sdhci controller.

Bug log for refernece,
=> gpt write mmc 0 $partitions
Writing GPT: mmc write failed
** Can't write to device 0 **
** Can't write to device 0 **
error!

Cc: Kever Yang <[email protected]>
Cc: Peng Fan <[email protected]>
Reviewed-by: Jaehoon Chung <[email protected]>
Signed-off-by: Jagan Teki <[email protected]>
Assets 2
Loading