Part Number: AM62P
Hello TI team,
I am investigating an SDIO DAT1 interrupt issue on AM62Px.
■ Environment
Device: AM62Px
OS: Linux
Interface: SDIO
SDIO slave: Kyocera Orini
Host controller: SDHCI
■ Issue summary
After repeating a reset / reprobe / open sequence for the SDIO device, SDIO DAT1 interrupts sometimes stop being detected by the AM62Px host controller.
For debugging purposes, I added logs in:
sdhci.c
SDHCI_INT_CARD_INT handling
sdio_irq.c
sdio_signal_irq()
sdio_claim_irq()
■ Observations from logs
The following operations succeed correctly:
sdio_claim_irq()
CCCR IENx write/readback
IRQ registration
CCCR IENx is correctly read back as 0x03.
However, in failure cases, SDHCI_INT_CARD_INT is no longer detected.
■ Normal case
The following logs continue repeatedly:
"mmc2: SDIO DAT1 IRQ"
"sdio_signal_irq pending=TRUE"
■ Failure cases
One of the following occurs:
Only 1-2 DAT1 IRQs are detected
No DAT1 IRQ occurs at all after IRQ registration
■ Test sequence
Release slave reset
Reset slave
sdio_open()
Activate sequence
Close SDIO handle
Wait for reprobe / reinitialization
Open again
Configure slave registers
■ Observed pattern
1st run: normal
2nd run: partial failure
3rd run: DAT1 IRQ lost
4th run: normal again
■ Current understanding
Based on the logs:
Linux SDIO IRQ registration itself appears successful
However, DAT1 interrupt detection may be lost inside the SDHCI host controller
Another possibility is an issue related to:
DAT1 line state
pending interrupt handling
timing during reset / reprobe
■ Questions
Are there any known issues or timing requirements for SDIO DAT1 interrupt handling on AM62Px?
Is there a recommended sequence for:
SDIO reset
reprobe
interrupt re-enable
DAT1 interrupt recovery?
Are there any SDHCI registers that should be checked when DAT1 IRQ detection stops? (e.g. INT_STATUS / SIGNAL_ENABLE / PRESENT_STATE)
Could this behavior be related to:
SDHCI interrupt latch state
runtime PM
clock gating
DAT1 level detection state machine?
Any advice regarding software-side debugging or recommended recovery handling would be appreciated.
Best regards Izawa