]> www.infradead.org Git - users/jedix/linux-maple.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)
committerPing-Ke Shih <pkshih@realtek.com>
Mon, 3 Feb 2025 02:44:44 +0000 (10:44 +0800)
commit3d3e28feca7ac8c6cf2a390dbbe1f97e3feb7f36
tree2f34602438e492677555401205aefe9fb7a9afd1
parent0d1d165eff9d6cfad51113e18d9d8c9a8de27d6d
wifi: rtl8xxxu: retry firmware download on error

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
drivers/net/wireless/realtek/rtl8xxxu/core.c