diff options
Diffstat (limited to 'drivers/net/sis900.c')
-rw-r--r-- | drivers/net/sis900.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/net/sis900.c b/drivers/net/sis900.c index cc0c731c4f09..11f7ebedcde5 100644 --- a/drivers/net/sis900.c +++ b/drivers/net/sis900.c | |||
@@ -1499,7 +1499,7 @@ static void sis900_read_mode(struct net_device *net_dev, int *speed, int *duplex | |||
1499 | } | 1499 | } |
1500 | 1500 | ||
1501 | if(netif_msg_link(sis_priv)) | 1501 | if(netif_msg_link(sis_priv)) |
1502 | printk(KERN_INFO "%s: Media Link On %s %s-duplex \n", | 1502 | printk(KERN_INFO "%s: Media Link On %s %s-duplex\n", |
1503 | net_dev->name, | 1503 | net_dev->name, |
1504 | *speed == HW_SPEED_100_MBPS ? | 1504 | *speed == HW_SPEED_100_MBPS ? |
1505 | "100mbps" : "10mbps", | 1505 | "100mbps" : "10mbps", |
@@ -1523,7 +1523,7 @@ static void sis900_tx_timeout(struct net_device *net_dev) | |||
1523 | int i; | 1523 | int i; |
1524 | 1524 | ||
1525 | if(netif_msg_tx_err(sis_priv)) | 1525 | if(netif_msg_tx_err(sis_priv)) |
1526 | printk(KERN_INFO "%s: Transmit timeout, status %8.8x %8.8x \n", | 1526 | printk(KERN_INFO "%s: Transmit timeout, status %8.8x %8.8x\n", |
1527 | net_dev->name, inl(ioaddr + cr), inl(ioaddr + isr)); | 1527 | net_dev->name, inl(ioaddr + cr), inl(ioaddr + isr)); |
1528 | 1528 | ||
1529 | /* Disable interrupts by clearing the interrupt mask. */ | 1529 | /* Disable interrupts by clearing the interrupt mask. */ |
@@ -1553,7 +1553,7 @@ static void sis900_tx_timeout(struct net_device *net_dev) | |||
1553 | 1553 | ||
1554 | spin_unlock_irqrestore(&sis_priv->lock, flags); | 1554 | spin_unlock_irqrestore(&sis_priv->lock, flags); |
1555 | 1555 | ||
1556 | net_dev->trans_start = jiffies; | 1556 | net_dev->trans_start = jiffies; /* prevent tx timeout */ |
1557 | 1557 | ||
1558 | /* load Transmit Descriptor Register */ | 1558 | /* load Transmit Descriptor Register */ |
1559 | outl(sis_priv->tx_ring_dma, ioaddr + txdp); | 1559 | outl(sis_priv->tx_ring_dma, ioaddr + txdp); |
@@ -1623,8 +1623,6 @@ sis900_start_xmit(struct sk_buff *skb, struct net_device *net_dev) | |||
1623 | 1623 | ||
1624 | spin_unlock_irqrestore(&sis_priv->lock, flags); | 1624 | spin_unlock_irqrestore(&sis_priv->lock, flags); |
1625 | 1625 | ||
1626 | net_dev->trans_start = jiffies; | ||
1627 | |||
1628 | if (netif_msg_tx_queued(sis_priv)) | 1626 | if (netif_msg_tx_queued(sis_priv)) |
1629 | printk(KERN_DEBUG "%s: Queued Tx packet at %p size %d " | 1627 | printk(KERN_DEBUG "%s: Queued Tx packet at %p size %d " |
1630 | "to slot %d.\n", | 1628 | "to slot %d.\n", |
@@ -2298,12 +2296,14 @@ static void set_rx_mode(struct net_device *net_dev) | |||
2298 | /* Accept Broadcast packet, destination address matchs our | 2296 | /* Accept Broadcast packet, destination address matchs our |
2299 | * MAC address, use Receive Filter to reject unwanted MCAST | 2297 | * MAC address, use Receive Filter to reject unwanted MCAST |
2300 | * packets */ | 2298 | * packets */ |
2301 | struct dev_mc_list *mclist; | 2299 | struct netdev_hw_addr *ha; |
2302 | rx_mode = RFAAB; | 2300 | rx_mode = RFAAB; |
2303 | 2301 | ||
2304 | netdev_for_each_mc_addr(mclist, net_dev) { | 2302 | netdev_for_each_mc_addr(ha, net_dev) { |
2305 | unsigned int bit_nr = | 2303 | unsigned int bit_nr; |
2306 | sis900_mcast_bitnr(mclist->dmi_addr, sis_priv->chipset_rev); | 2304 | |
2305 | bit_nr = sis900_mcast_bitnr(ha->addr, | ||
2306 | sis_priv->chipset_rev); | ||
2307 | mc_filter[bit_nr >> 4] |= (1 << (bit_nr & 0xf)); | 2307 | mc_filter[bit_nr >> 4] |= (1 << (bit_nr & 0xf)); |
2308 | } | 2308 | } |
2309 | } | 2309 | } |