kernel: bgmac: fix BCM4707 patch
authorHauke Mehrtens <hauke@hauke-m.de>
Wed, 2 Oct 2013 23:12:46 +0000 (23:12 +0000)
committerHauke Mehrtens <hauke@hauke-m.de>
Wed, 2 Oct 2013 23:12:46 +0000 (23:12 +0000)
The bool logic was the wrong way around.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
SVN-Revision: 38292

target/linux/generic/patches-3.10/772-bgmac-add-supprot-for-BCM4707.patch

index 5b8901c170bbd5cb211e152449c12077581cad9d..09efbb091d066c58d6b1d2cba75df4db39b5e1ac 100644 (file)
@@ -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);