diff options
author | Hauke Mehrtens <hauke@openwrt.org> | 2014-12-07 15:34:28 +0000 |
---|---|---|
committer | Hauke Mehrtens <hauke@openwrt.org> | 2014-12-07 15:34:28 +0000 |
commit | 5b0c81ab74b76a53f58a53a6048747fb63a6abcb (patch) | |
tree | a5ad6e9d20b3cfdd6903deb101c31cf3f2624751 /target/linux/brcm47xx/patches-3.10/203-b44-abort-when-no-PHY-is-available-at-all.patch | |
parent | 159bc0e7e99b91e473a028cddd73ff1a2468eae7 (diff) | |
download | master-187ad058-5b0c81ab74b76a53f58a53a6048747fb63a6abcb.tar.gz master-187ad058-5b0c81ab74b76a53f58a53a6048747fb63a6abcb.tar.bz2 master-187ad058-5b0c81ab74b76a53f58a53a6048747fb63a6abcb.zip |
brcm47xx: remove kernel 3.10
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43535 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/brcm47xx/patches-3.10/203-b44-abort-when-no-PHY-is-available-at-all.patch')
-rw-r--r-- | target/linux/brcm47xx/patches-3.10/203-b44-abort-when-no-PHY-is-available-at-all.patch | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/target/linux/brcm47xx/patches-3.10/203-b44-abort-when-no-PHY-is-available-at-all.patch b/target/linux/brcm47xx/patches-3.10/203-b44-abort-when-no-PHY-is-available-at-all.patch deleted file mode 100644 index 8ed078a3f1..0000000000 --- a/target/linux/brcm47xx/patches-3.10/203-b44-abort-when-no-PHY-is-available-at-all.patch +++ /dev/null @@ -1,41 +0,0 @@ -From 7befa6abe09c84269b8af614a166409090346cf8 Mon Sep 17 00:00:00 2001 -From: Hauke Mehrtens <hauke@hauke-m.de> -Date: Fri, 20 Dec 2013 02:16:08 +0100 -Subject: [PATCH 203/208] b44: abort when no PHY is available at all - -When the phy address is 31, this means that there is no PHY connected -to this MAC at all, no internal and no external PHY. Reading these PHY -registers causes a system reset on some routers. - -Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> -Signed-off-by: David S. Miller <davem@davemloft.net> ---- - drivers/net/ethernet/broadcom/b44.c | 6 ++++++ - drivers/net/ethernet/broadcom/b44.h | 1 + - 2 files changed, 7 insertions(+) - ---- a/drivers/net/ethernet/broadcom/b44.c -+++ b/drivers/net/ethernet/broadcom/b44.c -@@ -2207,6 +2207,12 @@ static int b44_init_one(struct ssb_devic - goto err_out_powerdown; - } - -+ if (bp->phy_addr == B44_PHY_ADDR_NO_PHY) { -+ dev_err(sdev->dev, "No PHY present on this MAC, aborting\n"); -+ err = -ENODEV; -+ goto err_out_powerdown; -+ } -+ - bp->mii_if.dev = dev; - bp->mii_if.mdio_read = b44_mii_read; - bp->mii_if.mdio_write = b44_mii_write; ---- a/drivers/net/ethernet/broadcom/b44.h -+++ b/drivers/net/ethernet/broadcom/b44.h -@@ -282,6 +282,7 @@ struct ring_info { - - #define B44_MCAST_TABLE_SIZE 32 - #define B44_PHY_ADDR_NO_LOCAL_PHY 30 /* no local phy regs */ -+#define B44_PHY_ADDR_NO_PHY 31 /* no phy present at all */ - #define B44_MDC_RATIO 5000000 - - #define B44_STAT_REG_DECLARE \ |