Hi Marex,
We backported this patch to ubuntu 4.15.0-generic kernel, and found this patch introduced the rsi driver crashing when running system resume on the Dell 300x IoT platform (100% rate). Below is the log, After seeing this log, the rsi wifi can't work anymore, need to run 'rmmod rsi_sdio;modprobe rsi_sdio" to make it work again.
So do you know what is missing apart from this patch or this patch is not suitable for 4.15 kernel at all?
Thanks,
Hui.
[ 118.494238] Freezing user space processes ... (elapsed 0.001 seconds) done. [ 118.495866] OOM killer disabled. [ 118.495868] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done. [ 118.497772] Suspending console(s) (use no_console_suspend to debug) [ 118.499120] rsi_91x: ===> Interface DOWN <=== [ 129.013207] mmc1: Controller never released inhibit bit(s). [ 129.013216] mmc1: sdhci: ============ SDHCI REGISTER DUMP =========== [ 129.013226] mmc1: sdhci: Sys addr: 0xffffffff | Version: 0x0000ffff [ 129.013233] mmc1: sdhci: Blk size: 0x0000ffff | Blk cnt: 0x0000ffff [ 129.013240] mmc1: sdhci: Argument: 0xffffffff | Trn mode: 0x0000ffff [ 129.013247] mmc1: sdhci: Present: 0xffffffff | Host ctl: 0x000000ff [ 129.013254] mmc1: sdhci: Power: 0x000000ff | Blk gap: 0x000000ff [ 129.013261] mmc1: sdhci: Wake-up: 0x000000ff | Clock: 0x0000ffff [ 129.013268] mmc1: sdhci: Timeout: 0x000000ff | Int stat: 0xffffffff [ 129.013276] mmc1: sdhci: Int enab: 0xffffffff | Sig enab: 0xffffffff [ 129.013283] mmc1: sdhci: ACmd stat: 0x0000ffff | Slot int: 0x0000ffff [ 129.013290] mmc1: sdhci: Caps: 0xffffffff | Caps_1: 0xffffffff [ 129.013297] mmc1: sdhci: Cmd: 0x0000ffff | Max curr: 0xffffffff [ 129.013304] mmc1: sdhci: Resp[0]: 0xffffffff | Resp[1]: 0xffffffff [ 129.013311] mmc1: sdhci: Resp[2]: 0xffffffff | Resp[3]: 0xffffffff [ 129.013316] mmc1: sdhci: Host ctl2: 0x0000ffff [ 129.013323] mmc1: sdhci: ADMA Err: 0xffffffff | ADMA Ptr: 0xffffffff [ 129.013327] mmc1: sdhci: ============================================ [ 129.113415] mmc1: Reset 0x2 never completed. [ 129.113417] mmc1: sdhci: ============ SDHCI REGISTER DUMP =========== [ 129.113421] mmc1: sdhci: Sys addr: 0xffffffff | Version: 0x0000ffff [ 129.113424] mmc1: sdhci: Blk size: 0x0000ffff | Blk cnt: 0x0000ffff [ 129.113428] mmc1: sdhci: Argument: 0xffffffff | Trn mode: 0x0000ffff [ 129.113431] mmc1: sdhci: Present: 0xffffffff | Host ctl: 0x000000ff [ 129.113435] mmc1: sdhci: Power: 0x000000ff | Blk gap: 0x000000ff [ 129.113439] mmc1: sdhci: Wake-up: 0x000000ff | Clock: 0x0000ffff [ 129.113442] mmc1: sdhci: Timeout: 0x000000ff | Int stat: 0xffffffff [ 129.113446] mmc1: sdhci: Int enab: 0xffffffff | Sig enab: 0xffffffff [ 129.113449] mmc1: sdhci: ACmd stat: 0x0000ffff | Slot int: 0x0000ffff [ 129.113453] mmc1: sdhci: Caps: 0xffffffff | Caps_1: 0xffffffff [ 129.113457] mmc1: sdhci: Cmd: 0x0000ffff | Max curr: 0xffffffff [ 129.113460] mmc1: sdhci: Resp[0]: 0xffffffff | Resp[1]: 0xffffffff [ 129.113464] mmc1: sdhci: Resp[2]: 0xffffffff | Resp[3]: 0xffffffff [ 129.113466] mmc1: sdhci: Host ctl2: 0x0000ffff [ 129.113470] mmc1: sdhci: ADMA Err: 0xffffffff | ADMA Ptr: 0xffffffff [ 129.113472] mmc1: sdhci: ============================================ [ 129.213489] mmc1: Reset 0x4 never completed. [ 129.213490] mmc1: sdhci: ============ SDHCI REGISTER DUMP =========== [ 129.213494] mmc1: sdhci: Sys addr: 0xffffffff | Version: 0x0000ffff [ 129.213498] mmc1: sdhci: Blk size: 0x0000ffff | Blk cnt: 0x0000ffff [ 129.213501] mmc1: sdhci: Argument: 0xffffffff | Trn mode: 0x0000ffff [ 129.213505] mmc1: sdhci: Present: 0xffffffff | Host ctl: 0x000000ff [ 129.213508] mmc1: sdhci: Power: 0x000000ff | Blk gap: 0x000000ff [ 129.213512] mmc1: sdhci: Wake-up: 0x000000ff | Clock: 0x0000ffff [ 129.213515] mmc1: sdhci: Timeout: 0x000000ff | Int stat: 0xffffffff [ 129.213519] mmc1: sdhci: Int enab: 0xffffffff | Sig enab: 0xffffffff [ 129.213523] mmc1: sdhci: ACmd stat: 0x0000ffff | Slot int: 0x0000ffff [ 129.213526] mmc1: sdhci: Caps: 0xffffffff | Caps_1: 0xffffffff [ 129.213530] mmc1: sdhci: Cmd: 0x0000ffff | Max curr: 0xffffffff [ 129.213534] mmc1: sdhci: Resp[0]: 0xffffffff | Resp[1]: 0xffffffff [ 129.213537] mmc1: sdhci: Resp[2]: 0xffffffff | Resp[3]: 0xffffffff [ 129.213540] mmc1: sdhci: Host ctl2: 0x0000ffff [ 129.213543] mmc1: sdhci: ADMA Err: 0xffffffff | ADMA Ptr: 0xffffffff [ 129.213545] mmc1: sdhci: ============================================ [ 129.213882] rsi_91x: rsi_sdio_enable_interrupts: Failed to read int enable register [ 129.240392] rsi_91x: ===> Interface UP <=== [ 129.240443] rsi_91x: rsi_disable_ps: Cannot accept disable PS in PS_NONE state