[Letux-kernel] X1600 / LX16 support - here: adding MMC

H. Nikolaus Schaller hns at goldelico.com
Sat Feb 10 14:58:45 CET 2024



> Am 10.02.2024 um 13:25 schrieb H. Nikolaus Schaller <hns at goldelico.com>:
> 
> But I already had tried to make the loop for IS_RESETTING
> end after 10 seconds. It waits but the bit is still active.
> 
> So some other activity triggers a reset of this bit.
> 

Have found it:

[    0.000205] jz4740_mmc_reset read again
[    0.000205]    JZ_REG_MMC_STATUS: b3450004 = 1f008040
[    0.000205] jz4740_mmc_clock_disable before
[    0.000205]    JZ_REG_MMC_STATUS: b3450004 = 1f008040
[    0.000205] jz4740_mmc_clock_disable after
[    0.000205]    JZ_REG_MMC_STATUS: b3450004 = 1f000040

So someone calls jz4740_mmc_clock_disable() after doing jz4740_mmc_reset()
and that resets the IS_RESETTING flag.

But what does that exactly mean?

BTW: clock_disable loops until JZ_MMC_STATUS_CLK_EN is 0.
But it already is...

BR,
Nikolaus



More information about the Letux-kernel mailing list