Skip to contentSkip to conversation

wifi: rtw88: limit indirect IO under powered off for RTL8822CS

PATCH In review Ping-Ke Shih 2 participants 4 messages Nov 25, 2025 – Dec 15, 2025 Realtek wireless driver (rtw88)

lore
Share & tools
lore

Ping-Ke Shih

author maintainer
#0 lore raw

PATCH 1/1 wifi: rtw88: limit indirect IO under powered off for RTL8822CS

The indirect IO is necessary for RTL8822CS, but not necessary for other chips. Otherwiese, it throws errors and becomes unusable.

rtw88_8723cs mmc1:0001:1: WOW Firmware version 11.0.0, H2C version 0 rtw88_8723cs mmc1:0001:1: Firmware version 11.0.0, H2C version 0 rtw88_8723cs mmc1:0001:1: sdio read32 failed (0xf0): -110 rtw88_8723cs mmc1:0001:1: sdio write8 failed (0x1c): -110 rtw88_8723cs mmc1:0001:1: sdio read32 failed (0xf0): -110

By vendor driver, only RTL8822CS and RTL8822ES need indirect IO, but RTL8822ES isn't supported yet. Therefore, limit it to RTL8822CS only.

Fixes 58de1f91e033 ("wifi: rtw88: sdio: use indirect IO for device registers before power-on")
---
 drivers/net/wireless/realtek/rtw88/sdio.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/net/wireless/realtek/rtw88/sdio.c +3 -1
index 99d7c629eac6..e35de52d8eb4 100644
@@ -144,8 +144,10 @@ static u32 rtw_sdio_to_io_address(struct rtw_dev *rtwdev, u32 addr,
 
 static bool rtw_sdio_use_direct_io(struct rtw_dev *rtwdev, u32 addr)
 {
+	bool might_indirect_under_power_off = rtwdev->chip->id == RTW_CHIP_TYPE_8822C;
+
 	if (!test_bit(RTW_FLAG_POWERON, rtwdev->flags) &&
-	    !rtw_sdio_is_bus_addr(addr))
+	    !rtw_sdio_is_bus_addr(addr) && might_indirect_under_power_off)
 		return false;
 
 	return !rtw_sdio_is_sdio30_supported(rtwdev) ||
Signature · 1 line
2.25.1
author maintainer
#1 lore raw

Hi Andrey,

Ping-Ke Shih <[email protected]> wrote:

(for record for patchwork)
The subject missed to point out "sdio: " which I will add during getting merged.

Quoted 13 lines

The indirect IO is necessary for RTL8822CS, but not necessary for other chips. Otherwiese, it throws errors and becomes unusable.

rtw88_8723cs mmc1:0001:1: WOW Firmware version 11.0.0, H2C version 0 rtw88_8723cs mmc1:0001:1: Firmware version 11.0.0, H2C version 0 rtw88_8723cs mmc1:0001:1: sdio read32 failed (0xf0): -110 rtw88_8723cs mmc1:0001:1: sdio write8 failed (0x1c): -110 rtw88_8723cs mmc1:0001:1: sdio read32 failed (0xf0): -110

By vendor driver, only RTL8822CS and RTL8822ES need indirect IO, but RTL8822ES isn't supported yet. Therefore, limit it to RTL8822CS only.

Quoted 6 lines

Closes:
https://lore.kernel.org/linux-wireless/[email protected]/T/#m997b4522f7209b
a629561c776bfd1d13ab24c1d4

Fixes 58de1f91e033 ("wifi: rtw88: sdio: use indirect IO for device registers before power-on")

Could you please test this patch and give a Tested-by tag if it can fix issue you encountered?

#2 lore raw
Quoted 27 lines · Ping-Ke Shih

Hi Andrey,

Ping-Ke Shih <[email protected]> wrote:

(for record for patchwork)
The subject missed to point out "sdio: " which I will add during getting merged.

Quoted 13 lines

The indirect IO is necessary for RTL8822CS, but not necessary for other chips. Otherwiese, it throws errors and becomes unusable.

rtw88_8723cs mmc1:0001:1: WOW Firmware version 11.0.0, H2C version 0 rtw88_8723cs mmc1:0001:1: Firmware version 11.0.0, H2C version 0 rtw88_8723cs mmc1:0001:1: sdio read32 failed (0xf0): -110 rtw88_8723cs mmc1:0001:1: sdio write8 failed (0x1c): -110 rtw88_8723cs mmc1:0001:1: sdio read32 failed (0xf0): -110

By vendor driver, only RTL8822CS and RTL8822ES need indirect IO, but RTL8822ES isn't supported yet. Therefore, limit it to RTL8822CS only.

Quoted 6 lines

Closes:
https://lore.kernel.org/linux-wireless/[email protected]/T/#m997b4522f7209b
a629561c776bfd1d13ab24c1d4

Fixes 58de1f91e033 ("wifi: rtw88: sdio: use indirect IO for device registers before power-on")
Quoted 3 lines

Could you please test this patch and give a Tested-by tag if it can fix issue you encountered?

Thanks for the quick fix. I've tested the change on 6.18-rc7 on RTL8723CS (PinePhone) and WLAN is working.

Signature · 2 lines
Best regards,
Andrey Skvortsov
author maintainer
#3 lore raw
In reply to Ping-Ke Shih
Quoted 9 lines · Ping-Ke Shih

The indirect IO is necessary for RTL8822CS, but not necessary for other chips. Otherwiese, it throws errors and becomes unusable.

rtw88_8723cs mmc1:0001:1: WOW Firmware version 11.0.0, H2C version 0 rtw88_8723cs mmc1:0001:1: Firmware version 11.0.0, H2C version 0 rtw88_8723cs mmc1:0001:1: sdio read32 failed (0xf0): -110 rtw88_8723cs mmc1:0001:1: sdio write8 failed (0x1c): -110 rtw88_8723cs mmc1:0001:1: sdio read32 failed (0xf0): -110

Quoted 8 lines

By vendor driver, only RTL8822CS and RTL8822ES need indirect IO, but RTL8822ES isn't supported yet. Therefore, limit it to RTL8822CS only.

1 patch(es) applied to rtw branch of rtw.git, thanks.

f3ccdfda345c wifi: rtw88: limit indirect IO under powered off for RTL8822CS

---
https://github.com/pkshih/rtw.git