Re: Driver for rtw8723ds

Larry Finger
2023-05-08T18:55:19Z

Martin and Jernej,

It took a bit of working through some problems, but the user now has the
rtw8723ds loading and starting. The first problem other than the mechanics of
building and installing the driver on his SoC was that there is a second SDIO
vendor ID/device ID for his device, namely 0x024c:0xd724. As I am carrying a
local copy of sdio_ids.h, that was relatively easy to fix.

At the moment, when the device starts, the log shows the following:
[ 3.640866] rtw_8723ds mmc1:0001:1: Firmware version 48.0.0, H2C version 0
[ 3.645302] sunxi-mmc 4021000.mmc: unaligned scatterlist: os b00 length 2
[ 3.654556] sunxi-mmc 4021000.mmc: map DMA failed
[ 3.659268] rtw_8723ds mmc1:0001:1: sdio read16 failed (0x10040): -22
[ 3.665710] sunxi-mmc 4021000.mmc: unaligned scatterlist: os b00 length 2
[ 3.672499] sunxi-mmc 4021000.mmc: map DMA failed
[ 3.677208] rtw_8723ds mmc1:0001:1: sdio write16 failed (0x10040): -22
[ 3.683739] sunxi-mmc 4021000.mmc: unaligned scatterlist: os b00 length 2
[ 3.690528] sunxi-mmc 4021000.mmc: map DMA failed
[ 3.695236] rtw_8723ds mmc1:0001:1: sdio write16 failed (0x10100): -22
[ 3.873173] sunxi-mmc 4021000.mmc: unaligned scatterlist: os b00 length 2
[ 3.879978] sunxi-mmc 4021000.mmc: map DMA failed
[ 3.884690] rtw_8723ds mmc1:0001:1: sdio read16 failed (0x10002): -22
[ 3.891141] sunxi-mmc 4021000.mmc: unaligned scatterlist: os b00 length 2
[ 3.897931] sunxi-mmc 4021000.mmc: map DMA failed
[ 3.902640] rtw_8723ds mmc1:0001:1: sdio write16 failed (0x10002): -22
[ 3.909172] sunxi-mmc 4021000.mmc: unaligned scatterlist: os b00 length 2
[ 3.915962] sunxi-mmc 4021000.mmc: map DMA failed
[ 3.920672] rtw_8723ds mmc1:0001:1: sdio read16 failed (0x10008): -22
[ 3.927116] sunxi-mmc 4021000.mmc: unaligned scatterlist: os b00 length 2
[ 3.933906] sunxi-mmc 4021000.mmc: map DMA failed
[ 3.938616] rtw_8723ds mmc1:0001:1: sdio write16 failed (0x10008): -22
[ ok ]

This problem is beyond my knowledge of SDIO.

Thanks for any help you can give.

Larry