aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/via-velocity.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/via-velocity.c')
-rw-r--r--drivers/net/via-velocity.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/net/via-velocity.c b/drivers/net/via-velocity.c
index d4eac2a14427..4ceb441f2687 100644
--- a/drivers/net/via-velocity.c
+++ b/drivers/net/via-velocity.c
@@ -895,8 +895,8 @@ static int velocity_set_media_mode(struct velocity_info *vptr, u32 mii_status)
895 895
896 /* 896 /*
897 Check if new status is consisent with current status 897 Check if new status is consisent with current status
898 if (((mii_status & curr_status) & VELOCITY_AUTONEG_ENABLE) 898 if (((mii_status & curr_status) & VELOCITY_AUTONEG_ENABLE) ||
899 || (mii_status==curr_status)) { 899 (mii_status==curr_status)) {
900 vptr->mii_status=mii_check_media_mode(vptr->mac_regs); 900 vptr->mii_status=mii_check_media_mode(vptr->mac_regs);
901 vptr->mii_status=check_connection_type(vptr->mac_regs); 901 vptr->mii_status=check_connection_type(vptr->mac_regs);
902 VELOCITY_PRT(MSG_LEVEL_INFO, "Velocity link no change\n"); 902 VELOCITY_PRT(MSG_LEVEL_INFO, "Velocity link no change\n");
@@ -1132,8 +1132,8 @@ static void velocity_set_multi(struct net_device *dev)
1132 writel(0xffffffff, &regs->MARCAM[0]); 1132 writel(0xffffffff, &regs->MARCAM[0]);
1133 writel(0xffffffff, &regs->MARCAM[4]); 1133 writel(0xffffffff, &regs->MARCAM[4]);
1134 rx_mode = (RCR_AM | RCR_AB | RCR_PROM); 1134 rx_mode = (RCR_AM | RCR_AB | RCR_PROM);
1135 } else if ((dev->mc_count > vptr->multicast_limit) 1135 } else if ((dev->mc_count > vptr->multicast_limit) ||
1136 || (dev->flags & IFF_ALLMULTI)) { 1136 (dev->flags & IFF_ALLMULTI)) {
1137 writel(0xffffffff, &regs->MARCAM[0]); 1137 writel(0xffffffff, &regs->MARCAM[0]);
1138 writel(0xffffffff, &regs->MARCAM[4]); 1138 writel(0xffffffff, &regs->MARCAM[4]);
1139 rx_mode = (RCR_AM | RCR_AB); 1139 rx_mode = (RCR_AM | RCR_AB);
@@ -1936,8 +1936,8 @@ static int velocity_tx_srv(struct velocity_info *vptr, u32 status)
1936 * Look to see if we should kick the transmit network 1936 * Look to see if we should kick the transmit network
1937 * layer for more work. 1937 * layer for more work.
1938 */ 1938 */
1939 if (netif_queue_stopped(vptr->dev) && (full == 0) 1939 if (netif_queue_stopped(vptr->dev) && (full == 0) &&
1940 && (!(vptr->mii_status & VELOCITY_LINK_FAIL))) { 1940 (!(vptr->mii_status & VELOCITY_LINK_FAIL))) {
1941 netif_wake_queue(vptr->dev); 1941 netif_wake_queue(vptr->dev);
1942 } 1942 }
1943 return works; 1943 return works;
@@ -2584,8 +2584,8 @@ static netdev_tx_t velocity_xmit(struct sk_buff *skb,
2584 /* 2584 /*
2585 * Handle hardware checksum 2585 * Handle hardware checksum
2586 */ 2586 */
2587 if ( (dev->features & NETIF_F_IP_CSUM) 2587 if ((dev->features & NETIF_F_IP_CSUM) &&
2588 && (skb->ip_summed == CHECKSUM_PARTIAL)) { 2588 (skb->ip_summed == CHECKSUM_PARTIAL)) {
2589 const struct iphdr *ip = ip_hdr(skb); 2589 const struct iphdr *ip = ip_hdr(skb);
2590 if (ip->protocol == IPPROTO_TCP) 2590 if (ip->protocol == IPPROTO_TCP)
2591 td_ptr->tdesc1.TCR |= TCR0_TCPCK; 2591 td_ptr->tdesc1.TCR |= TCR0_TCPCK;