From: Hauke Mehrtens Date: Wed, 2 Oct 2013 23:12:46 +0000 (+0000) Subject: kernel: bgmac: fix BCM4707 patch X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=9e5eeb3c38436ac655f322e9acd08ab5e4c999cd;p=openwrt%2Fstaging%2Fluka.git kernel: bgmac: fix BCM4707 patch The bool logic was the wrong way around. Signed-off-by: Hauke Mehrtens SVN-Revision: 38292 --- 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 + 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);