diff options
author | Hauke Mehrtens <hauke@openwrt.org> | 2013-10-02 23:12:46 +0000 |
---|---|---|
committer | Hauke Mehrtens <hauke@openwrt.org> | 2013-10-02 23:12:46 +0000 |
commit | 8006b279fe9366c52cb6d89ecc236e98244ae8a5 (patch) | |
tree | 3a0d5bde17d01705e179e3a5ff0e1513c3230f03 /target/linux/generic | |
parent | 09751431614a0a1f9d388d1bd876b5c31f4a5fc0 (diff) | |
download | master-187ad058-8006b279fe9366c52cb6d89ecc236e98244ae8a5.tar.gz master-187ad058-8006b279fe9366c52cb6d89ecc236e98244ae8a5.tar.bz2 master-187ad058-8006b279fe9366c52cb6d89ecc236e98244ae8a5.zip |
kernel: bgmac: fix BCM4707 patch
The bool logic was the wrong way around.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38292 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic')
-rw-r--r-- | target/linux/generic/patches-3.10/772-bgmac-add-supprot-for-BCM4707.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/generic/patches-3.10/772-bgmac-add-supprot-for-BCM4707.patch b/target/linux/generic/patches-3.10/772-bgmac-add-supprot-for-BCM4707.patch index 5b8901c170..09efbb091d 100644 --- a/target/linux/generic/patches-3.10/772-bgmac-add-supprot-for-BCM4707.patch +++ b/target/linux/generic/patches-3.10/772-bgmac-add-supprot-for-BCM4707.patch @@ -26,8 +26,8 @@ Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> + struct bcma_device *core = bgmac->core; + struct bcma_chipinfo *ci = &core->bus->chipinfo; + -+ if (ci->id != BCMA_CHIP_ID_BCM4707 && -+ ci->id != BCMA_CHIP_ID_BCM53018) { ++ if (ci->id == BCMA_CHIP_ID_BCM4707 || ++ ci->id == BCMA_CHIP_ID_BCM53018) { + if (bgmac->autoneg) { + bcma_awrite32(core, BCMA_IOCTL, + bcma_aread32(core, BCMA_IOCTL) | 0x44); |