r8152: support firmware of PHY NC for RTL8153A
authorHayes Wang <hayeswang@realtek.com>
Mon, 21 Oct 2019 03:41:13 +0000 (11:41 +0800)
committerJakub Kicinski <jakub.kicinski@netronome.com>
Tue, 22 Oct 2019 16:45:21 +0000 (09:45 -0700)
commitaf14288f945b4f2967acef8cec168f9c1a56eeb0
tree2ed3cb8f70ab53f40d69bc771b16945c3f14cb43
parent470e39194a46c8e447fcf2801c9f3e683af8a475
r8152: support firmware of PHY NC for RTL8153A

Support the firmware of PHY NC which is used to fix the issue found
for PHY. Currently, only RTL_VER_04, RTL_VER_05, and RTL_VER_06 need
it.

The order of loading PHY firmware would be

RTL_FW_PHY_START
RTL_FW_PHY_NC
RTL_FW_PHY_STOP

The RTL_FW_PHY_START/RTL_FW_PHY_STOP are used to lock/unlock the PHY,
and set/clear the patch key from the firmware file.

Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
drivers/net/usb/r8152.c