wifi: rtw88: main: Reserve 8 bytes of extra TX headroom for SDIO cards
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Wed, 5 Apr 2023 20:07:25 +0000 (22:07 +0200)
committerKalle Valo <kvalo@kernel.org>
Wed, 12 Apr 2023 12:51:09 +0000 (15:51 +0300)
commit02461d9368c59510ef51cc8a1db1f0f31cfbf9ad
treef2f2809a9910dfd87f72213616339542891ad279
parenta5d25f9ff91831f3a87aca96480a8b080546ccb8
wifi: rtw88: main: Reserve 8 bytes of extra TX headroom for SDIO cards

For SDIO host controllers with DMA support the TX buffer physical memory
address need to be aligned at an 8-byte boundary. Reserve 8 bytes of
extra TX headroom so we can align the data without re-allocating the
transmit buffer.

While here, also remove the TODO comment regarding extra headroom for
USB and SDIO. For SDIO the extra headroom is now handled and for USB it
was not needed so far.

Reviewed-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20230405200729.632435-6-martin.blumenstingl@googlemail.com
drivers/net/wireless/realtek/rtw88/main.c