]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
wifi: rtl8xxxu: retry firmware download on error
authorSoeren Moch <smoch@web.de>
Mon, 27 Jan 2025 19:48:28 +0000 (20:48 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 May 2025 09:13:43 +0000 (11:13 +0200)
commit40df7c72202ea972a751dd7569657c3c0047e9e6
treeda8750e0563c954f453109a01fbb34f0dd2970b7
parent4517d8a6a18d3c7e4407f1940d8b63e7b00d4c0d
wifi: rtl8xxxu: retry firmware download on error

[ Upstream commit 3d3e28feca7ac8c6cf2a390dbbe1f97e3feb7f36 ]

Occasionally there is an EPROTO error during firmware download.
This error is converted to EAGAIN in the download function.
But nobody tries again and so device probe fails.

Implement download retry to fix this.

This error was observed (and fix tested) on a tbs2910 board [1]
with an embedded RTL8188EU (0bda:8179) device behind a USB hub.

[1] arch/arm/boot/dts/nxp/imx/imx6q-tbs2910.dts

Signed-off-by: Soeren Moch <smoch@web.de>
Acked-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20250127194828.599379-1-smoch@web.de
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/realtek/rtl8xxxu/core.c