diff options
author | Hauke Mehrtens <hauke@openwrt.org> | 2013-10-22 21:01:35 +0000 |
---|---|---|
committer | Hauke Mehrtens <hauke@openwrt.org> | 2013-10-22 21:01:35 +0000 |
commit | 1af9091146a96e151704b01ca5150e85f7062a86 (patch) | |
tree | 768bde71325ebc9a25a0963103c8ec3629e89bae /target/linux/brcm47xx/patches-3.10/206-b44-activate-PHY-when-MAC-is-off.patch | |
parent | d6b9704bb030af81f73d3087fe6aaf8633f97ec8 (diff) | |
download | master-187ad058-1af9091146a96e151704b01ca5150e85f7062a86.tar.gz master-187ad058-1af9091146a96e151704b01ca5150e85f7062a86.tar.bz2 master-187ad058-1af9091146a96e151704b01ca5150e85f7062a86.zip |
brcm47xx: b44: detect external phy by bit set in DevControl register
Without this patch we treated only phy addr 30 as an external phy, but
there is a register to check that. Now we do not have to try to reset
the switch to check for an external switch.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38502 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/brcm47xx/patches-3.10/206-b44-activate-PHY-when-MAC-is-off.patch')
-rw-r--r-- | target/linux/brcm47xx/patches-3.10/206-b44-activate-PHY-when-MAC-is-off.patch | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/target/linux/brcm47xx/patches-3.10/206-b44-activate-PHY-when-MAC-is-off.patch b/target/linux/brcm47xx/patches-3.10/206-b44-activate-PHY-when-MAC-is-off.patch index e6c39b0547..abfee80109 100644 --- a/target/linux/brcm47xx/patches-3.10/206-b44-activate-PHY-when-MAC-is-off.patch +++ b/target/linux/brcm47xx/patches-3.10/206-b44-activate-PHY-when-MAC-is-off.patch @@ -1,7 +1,7 @@ -From 444044a410d4cf3b6dd462f2c9352d56039d9e07 Mon Sep 17 00:00:00 2001 +From f6a8d917c3efcfb974097ef4b345e8cda5283bab Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens <hauke@hauke-m.de> Date: Sun, 6 Oct 2013 17:58:24 +0200 -Subject: [PATCH 6/6] b44: activate PHY when MAC is off +Subject: [PATCH 7/9] b44: activate PHY when MAC is off Without this patch we can not access the PHY when the MAC is switched off. This PHY access is needed to configure the switch, which is done @@ -19,7 +19,7 @@ Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> /* now reset the chip, but without enabling the MAC&PHY * part of it. This has to be done _after_ we shut down the PHY */ - b44_chip_reset(bp, B44_CHIP_RESET_PARTIAL); -+ if (bp->has_phy) ++ if (bp->flags & B44_FLAG_EXTERNAL_PHY) + b44_chip_reset(bp, B44_CHIP_RESET_FULL); + else + b44_chip_reset(bp, B44_CHIP_RESET_PARTIAL); |