Commit fac5b3ca authored by Hayes Wang's avatar Hayes Wang Committed by Francois Romieu

r8169: fix incorrect args to oob notify.

It results in the wrong point address and influences RTL8168DP.
Signed-off-by: default avatarHayes Wang <hayeswang@realtek.com>
Acked-by: default avatarFrancois Romieu <romieu@fr.zoreil.com>
parent d3bd1b4c
...@@ -617,8 +617,9 @@ static void ocp_write(struct rtl8169_private *tp, u8 mask, u16 reg, u32 data) ...@@ -617,8 +617,9 @@ static void ocp_write(struct rtl8169_private *tp, u8 mask, u16 reg, u32 data)
} }
} }
static void rtl8168_oob_notify(void __iomem *ioaddr, u8 cmd) static void rtl8168_oob_notify(struct rtl8169_private *tp, u8 cmd)
{ {
void __iomem *ioaddr = tp->mmio_addr;
int i; int i;
RTL_W8(ERIDR, cmd); RTL_W8(ERIDR, cmd);
...@@ -630,7 +631,7 @@ static void rtl8168_oob_notify(void __iomem *ioaddr, u8 cmd) ...@@ -630,7 +631,7 @@ static void rtl8168_oob_notify(void __iomem *ioaddr, u8 cmd)
break; break;
} }
ocp_write(ioaddr, 0x1, 0x30, 0x00000001); ocp_write(tp, 0x1, 0x30, 0x00000001);
} }
#define OOB_CMD_RESET 0x00 #define OOB_CMD_RESET 0x00
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment