r8169: improve conditional firmware loading for RTL8168d
authorHeiner Kallweit <hkallweit1@gmail.com>
Fri, 15 Nov 2019 20:35:22 +0000 (21:35 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 16 Nov 2019 21:11:21 +0000 (13:11 -0800)
commit718af5bc9709dbab643788719af32d4dfd9d9d35
treef07ee1f07afa0963cd86d71d65e2a960c8c43e96
parent725ea4bff9ad6d594e2a633fcdc673dfcaf55d43
r8169: improve conditional firmware loading for RTL8168d

Using constant MII_EXPANSION is misleading here because register 0x06
has a different meaning on page 0x0005. Here a proprietary PHY
parameter is read by writing the parameter id to register 0x05 on page
0x0005, followed by reading the parameter value from register 0x06.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/realtek/r8169_main.c