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
master
Hauke Mehrtens 2013-10-02 23:12:46 +00:00
parent 0975143161
commit 8006b279fe
1 changed files with 2 additions and 2 deletions

View File

@ -26,8 +26,8 @@ Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
+ struct bcma_device *core = bgmac->core; + struct bcma_device *core = bgmac->core;
+ struct bcma_chipinfo *ci = &core->bus->chipinfo; + struct bcma_chipinfo *ci = &core->bus->chipinfo;
+ +
+ if (ci->id != BCMA_CHIP_ID_BCM4707 && + if (ci->id == BCMA_CHIP_ID_BCM4707 ||
+ ci->id != BCMA_CHIP_ID_BCM53018) { + ci->id == BCMA_CHIP_ID_BCM53018) {
+ if (bgmac->autoneg) { + if (bgmac->autoneg) {
+ bcma_awrite32(core, BCMA_IOCTL, + bcma_awrite32(core, BCMA_IOCTL,
+ bcma_aread32(core, BCMA_IOCTL) | 0x44); + bcma_aread32(core, BCMA_IOCTL) | 0x44);