tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: eMMC module not working
On Thu, Jul 16, 2020 at 03:07:59PM -0000, Michael van Elst wrote:
>
> >[ 1.6805785] sdmmc_mmc_command: cmd=5, arg=0, flags=0x4302
> >[ 1.6905781] sdmmc1: cmd 5 arg=0 data=0x0 dlen=0 flags=0x4302 (error 60)
>
> >[ 1.7305788] sdmmc_mmc_command: cmd=55, arg=0, flags=0x4432
> >[ 1.7305788] sdmmc1: cmd 55 arg=0 data=0x0 dlen=0 flags=0x4432 (error 60)
>
>
> Pretty short for a command timeout, especially the second one.
Locking in sdmmc seems to be totally broken:
sdmmcvar.h:#define SDMMC_LOCK(sc)
sdmmcvar.h-#define SDMMC_UNLOCK(sc)
and in the code ~half of the SDMMC_LOCK(sc) are followed by the proper
mutex_enter(&sc->sc_mtx); - but the other half not.
Martin
Home |
Main Index |
Thread Index |
Old Index