aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/files/drivers/net
diff options
context:
space:
mode:
authorINAGAKI Hiroshi <musashino.open@gmail.com>2020-03-28 19:31:23 +0900
committerChuanhong Guo <gch981213@gmail.com>2020-04-04 16:55:47 +0800
commite714cf4195b5798f40a3442c01233ce4783ef0ad (patch)
treea42ab01e7b93e84789eabfb4542edf9e1e47e67b /target/linux/generic/files/drivers/net
parent4d979a4d1969b59e462ea4633eeb8c69111261c5 (diff)
downloadupstream-e714cf4195b5798f40a3442c01233ce4783ef0ad.tar.gz
upstream-e714cf4195b5798f40a3442c01233ce4783ef0ad.tar.bz2
upstream-e714cf4195b5798f40a3442c01233ce4783ef0ad.zip
kernel: rtl8367b: fix DEBUG register address for extif2
RTL8367B_CHIP_DEBUG1_REG (0x1304) is for external interface 1. For external interface 2, use RTL8367B_CHIP_DEBUG2_REG (0x13e2) instead. Fixes: 9801d61c4a ("kernel: rtl8367b: add configuration for extif2") Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
Diffstat (limited to 'target/linux/generic/files/drivers/net')
-rw-r--r--target/linux/generic/files/drivers/net/phy/rtl8367b.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/generic/files/drivers/net/phy/rtl8367b.c b/target/linux/generic/files/drivers/net/phy/rtl8367b.c
index e7fe79302a..de1976f13a 100644
--- a/target/linux/generic/files/drivers/net/phy/rtl8367b.c
+++ b/target/linux/generic/files/drivers/net/phy/rtl8367b.c
@@ -798,7 +798,7 @@ static int rtl8367b_extif_set_mode(struct rtl8366_smi *smi, int id,
(7 << RTL8367B_DEBUG1_DN_SHIFT(id)) |
(7 << RTL8367B_DEBUG1_DP_SHIFT(id)));
} else {
- REG_RMW(smi, RTL8367B_CHIP_DEBUG1_REG,
+ REG_RMW(smi, RTL8367B_CHIP_DEBUG2_REG,
RTL8367B_DEBUG2_DRI_EXT2 |
RTL8367B_DEBUG2_DRI_EXT2_RG |
RTL8367B_DEBUG2_SLR_EXT2 |