Skip to content

arm:dts:SAN*: Fix microSD issue on SANTINO-LT

Jonas Höppner requested to merge fix_santino-lt_microsd_issue into linux-5.10.57-guf

When inserting a microSD card or booting while inserted I got following error messages

mmc1: Timeout waiting for hardware interrupt.
mmc1: sdhci: ============ SDHCI REGISTER DUMP ===========
mmc1: sdhci: Sys addr:  0x13cc7700 | Version:  0x00000002
mmc1: sdhci: Blk size:  0x00000008 | Blk cnt:  0x00000001
mmc1: sdhci: Argument:  0x00000000 | Trn mode: 0x00000013
mmc1: sdhci: Present:   0x01f8820e | Host ctl: 0x00000011
mmc1: sdhci: Power:     0x00000002 | Blk gap:  0x00000080
mmc1: sdhci: Wake-up:   0x00000008 | Clock:    0x000040ff
mmc1: sdhci: Timeout:   0x0000008f | Int stat: 0x00000000
mmc1: sdhci: Int enab:  0x107f100b | Sig enab: 0x107f100b
mmc1: sdhci: ACmd stat: 0x00000000 | Slot int: 0x00000103
mmc1: sdhci: Caps:      0x07eb0000 | Caps_1:   0x0000a000
mmc1: sdhci: Cmd:       0x0000333a | Max curr: 0x00ffffff
mmc1: sdhci: Resp[0]:   0x00000920 | Resp[1]:  0x003b9f7f
mmc1: sdhci: Resp[2]:   0x325b5900 | Resp[3]:  0x00400e00
mmc1: sdhci: Host ctl2: 0x00000000
mmc1: sdhci: ADMA Err:  0x00000003 | ADMA Ptr: 0x48041204
mmc1: sdhci-esdhc-imx: ========= ESDHC IMX DEBUG STATUS DUMP =========
mmc1: sdhci-esdhc-imx: cmd debug status:  0x2100
mmc1: sdhci-esdhc-imx: data debug status:  0x22a0
mmc1: sdhci-esdhc-imx: trans debug status:  0x23a2
mmc1: sdhci-esdhc-imx: dma debug status:  0x2440
mmc1: sdhci-esdhc-imx: adma debug status:  0x25b4
mmc1: sdhci-esdhc-imx: fifo debug status:  0x2680
mmc1: sdhci-esdhc-imx: async fifo debug status:  0x2750
mmc1: sdhci: ============================================
mmc1: error -110 whilst initialising SD card

Limiting the bus-width, explicitly disablin the write-protect line, and adding the SDIO-IRQ capability solves this issue.

BCS 746-000437

Merge request reports

Loading