From e0027ed4abef834297a54d95309688bc22f4d77c Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Sat, 4 Jan 2014 23:46:44 +0000 Subject: bcm53xx: make the l2x0 L2 cache controller work This fixes the DMA problems with the Ethernet driver. This also updates some other parts of the patches. Signed-off-by: Hauke Mehrtens SVN-Revision: 39203 --- ...2-bgmac-make-bgmac-work-on-systems-without-nvram.patch | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'target/linux/bcm53xx/patches-3.10/202-bgmac-make-bgmac-work-on-systems-without-nvram.patch') diff --git a/target/linux/bcm53xx/patches-3.10/202-bgmac-make-bgmac-work-on-systems-without-nvram.patch b/target/linux/bcm53xx/patches-3.10/202-bgmac-make-bgmac-work-on-systems-without-nvram.patch index e11a31f..73bffe5 100644 --- a/target/linux/bcm53xx/patches-3.10/202-bgmac-make-bgmac-work-on-systems-without-nvram.patch +++ b/target/linux/bcm53xx/patches-3.10/202-bgmac-make-bgmac-work-on-systems-without-nvram.patch @@ -31,18 +31,7 @@ The PHY says it is not connected by default, just ignore it. static const struct bcma_device_id bgmac_bcma_tbl[] = { BCMA_CORE(BCMA_MANUF_BCM, BCMA_CORE_4706_MAC_GBIT, BCMA_ANY_REV, BCMA_ANY_CLASS), -@@ -165,6 +169,10 @@ static netdev_tx_t bgmac_dma_tx_add(stru - - netdev_sent_queue(net_dev, skb->len); - -+ if (bgmac->core->bus->chipinfo.id == BCMA_CHIP_ID_BCM4707 || -+ bgmac->core->bus->chipinfo.id == BCMA_CHIP_ID_BCM53018) -+ mdelay(1); -+ - wmb(); - - /* Increase ring->end to point empty slot. We tell hardware the first -@@ -1438,7 +1446,7 @@ static int bgmac_probe(struct bcma_devic +@@ -1438,7 +1442,7 @@ static int bgmac_probe(struct bcma_devic int err; /* We don't support 2nd, 3rd, ... units, SPROM has to be adjusted */ @@ -51,7 +40,7 @@ The PHY says it is not connected by default, just ignore it. pr_err("Unsupported core_unit %d\n", core->core_unit); return -ENOTSUPP; } -@@ -1534,8 +1542,7 @@ static int bgmac_probe(struct bcma_devic +@@ -1534,8 +1538,7 @@ static int bgmac_probe(struct bcma_devic /* TODO: reset the external phy. Specs are needed */ bgmac_phy_reset(bgmac); -- cgit v1.1