Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 266206
b: refs/heads/master
c: d5bc77a
h: refs/heads/master
v: v3
  • Loading branch information
Dean Nelson authored and Jeff Kirsher committed Sep 29, 2011
1 parent 38baee9 commit b549e4b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 41 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f9b491ecc47ead6a57576a1a40cb27fd79835cc2
refs/heads/master: d5bc77a223b0e9b9dfb002048d2b34a79e7d0b48
34 changes: 3 additions & 31 deletions trunk/drivers/net/ethernet/freescale/fec.c
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,6 @@ MODULE_PARM_DESC(macaddr, "FEC Ethernet MAC address");
#define PKT_MINBUF_SIZE 64
#define PKT_MAXBLR_SIZE 1520

/* This device has up to three irqs on some platforms */
#define FEC_IRQ_NUM 3

/*
* The 5270/5271/5280/5282/532x RX control register also contains maximum frame
Expand Down Expand Up @@ -242,7 +240,6 @@ struct fec_enet_private {
int link;
int full_duplex;
struct completion mdio_done;
int irq[FEC_IRQ_NUM];
};

/* FEC MII MMFR bits definition */
Expand Down Expand Up @@ -1364,29 +1361,6 @@ fec_set_mac_address(struct net_device *ndev, void *p)
return 0;
}

#ifdef CONFIG_NET_POLL_CONTROLLER
/*
* fec_poll_controller: FEC Poll controller function
* @dev: The FEC network adapter
*
* Polled functionality used by netconsole and others in non interrupt mode
*
*/
void fec_poll_controller(struct net_device *dev)
{
int i;
struct fec_enet_private *fep = netdev_priv(dev);

for (i = 0; i < FEC_IRQ_NUM; i++) {
if (fep->irq[i] > 0) {
disable_irq(fep->irq[i]);
fec_enet_interrupt(fep->irq[i], dev);
enable_irq(fep->irq[i]);
}
}
}
#endif

static const struct net_device_ops fec_netdev_ops = {
.ndo_open = fec_enet_open,
.ndo_stop = fec_enet_close,
Expand All @@ -1397,9 +1371,6 @@ static const struct net_device_ops fec_netdev_ops = {
.ndo_tx_timeout = fec_timeout,
.ndo_set_mac_address = fec_set_mac_address,
.ndo_do_ioctl = fec_enet_ioctl,
#ifdef CONFIG_NET_POLL_CONTROLLER
.ndo_poll_controller = fec_poll_controller,
#endif
};

/*
Expand Down Expand Up @@ -1569,7 +1540,8 @@ fec_probe(struct platform_device *pdev)

fec_reset_phy(pdev);

for (i = 0; i < FEC_IRQ_NUM; i++) {
/* This device has up to three irqs on some platforms */
for (i = 0; i < 3; i++) {
irq = platform_get_irq(pdev, i);
if (i && irq < 0)
break;
Expand Down Expand Up @@ -1614,7 +1586,7 @@ fec_probe(struct platform_device *pdev)
clk_disable(fep->clk);
clk_put(fep->clk);
failed_clk:
for (i = 0; i < FEC_IRQ_NUM; i++) {
for (i = 0; i < 3; i++) {
irq = platform_get_irq(pdev, i);
if (irq > 0)
free_irq(irq, ndev);
Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/net/ethernet/intel/e1000/e1000_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1814,8 +1814,8 @@ static void e1000_setup_rctl(struct e1000_adapter *adapter)

rctl &= ~(3 << E1000_RCTL_MO_SHIFT);

rctl |= E1000_RCTL_EN | E1000_RCTL_BAM |
E1000_RCTL_LBM_NO | E1000_RCTL_RDMTS_HALF |
rctl |= E1000_RCTL_BAM | E1000_RCTL_LBM_NO |
E1000_RCTL_RDMTS_HALF |
(hw->mc_filter_type << E1000_RCTL_MO_SHIFT);

if (hw->tbi_compatibility_on == 1)
Expand Down Expand Up @@ -1917,7 +1917,7 @@ static void e1000_configure_rx(struct e1000_adapter *adapter)
}

/* Enable Receives */
ew32(RCTL, rctl);
ew32(RCTL, rctl | E1000_RCTL_EN);
}

/**
Expand Down
6 changes: 0 additions & 6 deletions trunk/drivers/net/usb/usbnet.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,10 +238,6 @@ void usbnet_skb_return (struct usbnet *dev, struct sk_buff *skb)
netif_dbg(dev, rx_status, dev->net, "< rx, len %zu, type 0x%x\n",
skb->len + sizeof (struct ethhdr), skb->protocol);
memset (skb->cb, 0, sizeof (struct skb_data));

if (skb_defer_rx_timestamp(skb))
return;

status = netif_rx (skb);
if (status != NET_RX_SUCCESS)
netif_dbg(dev, rx_err, dev->net,
Expand Down Expand Up @@ -1057,8 +1053,6 @@ netdev_tx_t usbnet_start_xmit (struct sk_buff *skb,
unsigned long flags;
int retval;

skb_tx_timestamp(skb);

// some devices want funky USB-level framing, for
// win32 driver (usually) and/or hardware quirks
if (info->tx_fixup) {
Expand Down

0 comments on commit b549e4b

Please sign in to comment.