diff options
author | Peter Denison <openwrt@marshadder.org> | 2008-04-25 20:49:40 +0000 |
---|---|---|
committer | Peter Denison <openwrt@marshadder.org> | 2008-04-25 20:49:40 +0000 |
commit | b6b6155ec81c704cd70157753b38f90fd506e708 (patch) | |
tree | 0e3521dc9f267b5f130bb1ac1bcdae91c4be11cb /target/linux/brcm47xx/patches-2.6.25/121-fix_b44_phyaddr.patch | |
parent | 5f13c4844e0784ff40c1d15f5077d945ebf17f9b (diff) | |
download | mtk-20170518-b6b6155ec81c704cd70157753b38f90fd506e708.zip mtk-20170518-b6b6155ec81c704cd70157753b38f90fd506e708.tar.gz mtk-20170518-b6b6155ec81c704cd70157753b38f90fd506e708.tar.bz2 |
First step to upgrade of brcm47xx to kernel version 2.6.25
SVN-Revision: 10939
Diffstat (limited to 'target/linux/brcm47xx/patches-2.6.25/121-fix_b44_phyaddr.patch')
-rw-r--r-- | target/linux/brcm47xx/patches-2.6.25/121-fix_b44_phyaddr.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/target/linux/brcm47xx/patches-2.6.25/121-fix_b44_phyaddr.patch b/target/linux/brcm47xx/patches-2.6.25/121-fix_b44_phyaddr.patch new file mode 100644 index 0000000..c93d517 --- /dev/null +++ b/target/linux/brcm47xx/patches-2.6.25/121-fix_b44_phyaddr.patch @@ -0,0 +1,15 @@ +Index: linux-2.6.23.16/drivers/net/b44.c +=================================================================== +--- linux-2.6.23.16.orig/drivers/net/b44.c 2008-03-22 19:52:40.000000000 -0700 ++++ linux-2.6.23.16/drivers/net/b44.c 2008-03-22 19:52:41.000000000 -0700 +@@ -2273,6 +2273,10 @@ + bp->phy_addr = sdev->bus->sprom.et1phyaddr; + break; + } ++ /* Some ROMs have buggy PHY addresses with the high ++ * bits set (sign extension?). Truncate them to a ++ * valid PHY address. */ ++ bp->phy_addr &= 0x1F; + + memcpy(bp->dev->dev_addr, addr, 6); + |