r8152: support request_firmware for RTL8153
authorHayes Wang <hayeswang@realtek.com>
Wed, 16 Oct 2019 03:02:42 +0000 (11:02 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Oct 2019 18:30:50 +0000 (14:30 -0400)
commit9370f2d05a2a150b0aa719a3070b26d478180df3
tree31688a9b13f48d41fee407202b88fb040584e77a
parentd9f45ab9e671166004b75427f10389e1f70cfc30
r8152: support request_firmware for RTL8153

This patch supports loading additional firmware file through
request_firmware().

A firmware file may include a header followed by several blocks
which have different types of firmware. Currently, the supported
types are RTL_FW_END, RTL_FW_PLA, and RTL_FW_USB.

The firmware is used to fix some compatible or hardware issues. For
example, the device couldn't be found after rebooting several times.

The supported chips are
RTL_VER_04 (rtl8153a-2.fw)
RTL_VER_05 (rtl8153a-3.fw)
RTL_VER_06 (rtl8153a-4.fw)
RTL_VER_09 (rtl8153b-2.fw)

Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Reviewed-by: Prashant Malani <pmalani@chromium.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/r8152.c