From 282fd66c5dc0f95a750094c2a0717093bf419244 Mon Sep 17 00:00:00 2001 From: florian Date: Mon, 23 Jul 2007 18:35:34 +0000 Subject: Add back the port priority for r6040 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8134 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/rdc-2.6/files/drivers/net/r6040.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'target/linux') diff --git a/target/linux/rdc-2.6/files/drivers/net/r6040.c b/target/linux/rdc-2.6/files/drivers/net/r6040.c index f495b4af6..6c9a232cd 100644 --- a/target/linux/rdc-2.6/files/drivers/net/r6040.c +++ b/target/linux/rdc-2.6/files/drivers/net/r6040.c @@ -806,6 +806,12 @@ for (i = 0; i < RX_DCNT; i++) { phy_write(ioaddr, lp->phy_addr, 4, PHY_CAP); phy_write(ioaddr, lp->phy_addr, 0, PHY_MODE); + /* Port priority */ + phy_write(ioaddr,29,19,(phy_read(ioaddr,29,19)|0x0020)); /* port 0 */ + phy_write(ioaddr,29,19,(phy_read(ioaddr,29,19)|0x0020)); /* port 1 */ + phy_write(ioaddr,29,20,(phy_read(ioaddr,29,20)|0x2000)); /* port 2 */ + phy_write(ioaddr,29,20,(phy_read(ioaddr,29,20)|0x0020)); /* port 3 */ + if (PHY_MODE == 0x3100) lp->phy_mode = phy_mode_chk(dev); else lp->phy_mode = (PHY_MODE & 0x0100) ? 0x8000:0x0; -- cgit v1.2.3