kernel: rtl8367b: use id as a bit offset for BYPASS_LINE_RATE
authorINAGAKI Hiroshi <musashino.open@gmail.com>
Mon, 30 Mar 2020 06:19:50 +0000 (15:19 +0900)
committerChuanhong Guo <gch981213@gmail.com>
Sat, 4 Apr 2020 09:20:13 +0000 (17:20 +0800)
commit817e1323322c9d58464330a15994e8693b48b9c5
tree6cb190f099b7cb6900d721696796407721c7b958
parente714cf4195b5798f40a3442c01233ce4783ef0ad
kernel: rtl8367b: use id as a bit offset for BYPASS_LINE_RATE

In RTL8367B (RTL8367RB/RTL8367R-VB), the driver in GPL tars of the
devices with this switch directly uses the ID of external interface
as a bit offset.

We should use the same way.

ref (RTL8367B):
  - ASUS RT-N56U
  - TP-Link Archer C2 v1

ref (RTL8367):
  - TP-Link TL-WR2543ND v1

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
target/linux/generic/files/drivers/net/phy/rtl8367b.c