Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Conflicts: drivers/net/ethernet/cadence/macb.c Overlapping changes in macb driver, mostly fixes and cleanups in 'net' overlapping with the integration of at91_ether into macb in 'net-next'. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -486,7 +486,7 @@ static int bcm_enet_poll(struct napi_struct *napi, int budget)
|
||||
{
|
||||
struct bcm_enet_priv *priv;
|
||||
struct net_device *dev;
|
||||
int tx_work_done, rx_work_done;
|
||||
int rx_work_done;
|
||||
|
||||
priv = container_of(napi, struct bcm_enet_priv, napi);
|
||||
dev = priv->net_dev;
|
||||
@@ -498,14 +498,14 @@ static int bcm_enet_poll(struct napi_struct *napi, int budget)
|
||||
ENETDMAC_IR, priv->tx_chan);
|
||||
|
||||
/* reclaim sent skb */
|
||||
tx_work_done = bcm_enet_tx_reclaim(dev, 0);
|
||||
bcm_enet_tx_reclaim(dev, 0);
|
||||
|
||||
spin_lock(&priv->rx_lock);
|
||||
rx_work_done = bcm_enet_receive_queue(dev, budget);
|
||||
spin_unlock(&priv->rx_lock);
|
||||
|
||||
if (rx_work_done >= budget || tx_work_done > 0) {
|
||||
/* rx/tx queue is not yet empty/clean */
|
||||
if (rx_work_done >= budget) {
|
||||
/* rx queue is not yet empty/clean */
|
||||
return rx_work_done;
|
||||
}
|
||||
|
||||
|
@@ -302,9 +302,6 @@ static int bgmac_dma_rx_skb_for_slot(struct bgmac *bgmac,
|
||||
slot->skb = skb;
|
||||
slot->dma_addr = dma_addr;
|
||||
|
||||
if (slot->dma_addr & 0xC0000000)
|
||||
bgmac_warn(bgmac, "DMA address using 0xC0000000 bit(s), it may need translation trick\n");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -505,8 +502,6 @@ static int bgmac_dma_alloc(struct bgmac *bgmac)
|
||||
ring->mmio_base);
|
||||
goto err_dma_free;
|
||||
}
|
||||
if (ring->dma_base & 0xC0000000)
|
||||
bgmac_warn(bgmac, "DMA address using 0xC0000000 bit(s), it may need translation trick\n");
|
||||
|
||||
ring->unaligned = bgmac_dma_unaligned(bgmac, ring,
|
||||
BGMAC_DMA_RING_TX);
|
||||
@@ -536,8 +531,6 @@ static int bgmac_dma_alloc(struct bgmac *bgmac)
|
||||
err = -ENOMEM;
|
||||
goto err_dma_free;
|
||||
}
|
||||
if (ring->dma_base & 0xC0000000)
|
||||
bgmac_warn(bgmac, "DMA address using 0xC0000000 bit(s), it may need translation trick\n");
|
||||
|
||||
ring->unaligned = bgmac_dma_unaligned(bgmac, ring,
|
||||
BGMAC_DMA_RING_RX);
|
||||
|
@@ -12722,6 +12722,9 @@ static int bnx2x_init_dev(struct bnx2x *bp, struct pci_dev *pdev,
|
||||
pci_write_config_dword(bp->pdev, PCICFG_GRC_ADDRESS,
|
||||
PCICFG_VENDOR_ID_OFFSET);
|
||||
|
||||
/* Set PCIe reset type to fundamental for EEH recovery */
|
||||
pdev->needs_freset = 1;
|
||||
|
||||
/* AER (Advanced Error reporting) configuration */
|
||||
rc = pci_enable_pcie_error_reporting(pdev);
|
||||
if (!rc)
|
||||
|
@@ -73,15 +73,17 @@ int bcmgenet_set_wol(struct net_device *dev, struct ethtool_wolinfo *wol)
|
||||
if (wol->wolopts & ~(WAKE_MAGIC | WAKE_MAGICSECURE))
|
||||
return -EINVAL;
|
||||
|
||||
reg = bcmgenet_umac_readl(priv, UMAC_MPD_CTRL);
|
||||
if (wol->wolopts & WAKE_MAGICSECURE) {
|
||||
bcmgenet_umac_writel(priv, get_unaligned_be16(&wol->sopass[0]),
|
||||
UMAC_MPD_PW_MS);
|
||||
bcmgenet_umac_writel(priv, get_unaligned_be32(&wol->sopass[2]),
|
||||
UMAC_MPD_PW_LS);
|
||||
reg = bcmgenet_umac_readl(priv, UMAC_MPD_CTRL);
|
||||
reg |= MPD_PW_EN;
|
||||
bcmgenet_umac_writel(priv, reg, UMAC_MPD_CTRL);
|
||||
} else {
|
||||
reg &= ~MPD_PW_EN;
|
||||
}
|
||||
bcmgenet_umac_writel(priv, reg, UMAC_MPD_CTRL);
|
||||
|
||||
/* Flag the device and relevant IRQ as wakeup capable */
|
||||
if (wol->wolopts) {
|
||||
|
Reference in New Issue
Block a user