]> 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>
Wed, 4 Jun 2025 12:40:17 +0000 (14:40 +0200)
commit60f09a491f42d3f780b997383f1aa8d185cd29a1
tree1ab29f0945b33b93b0106c9e9c3bc612d00f681a
parente7e61e09ce5dbc12ca8693155ab2408931637239
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/rtl8xxxu_core.c