diff options
| author | Patrick McHardy <kaber@trash.net> | 2010-04-20 10:02:01 -0400 | 
|---|---|---|
| committer | Patrick McHardy <kaber@trash.net> | 2010-04-20 10:02:01 -0400 | 
| commit | 62910554656cdcd6b6f84a5154c4155aae4ca231 (patch) | |
| tree | dcf14004f6fd2ef7154362ff948bfeba0f3ea92d /drivers/net/tsi108_eth.c | |
| parent | 22265a5c3c103cf8c50be62e6c90d045eb649e6d (diff) | |
| parent | ab9304717f7624c41927f442e6b6d418b2d8b3e4 (diff) | |
Merge branch 'master' of /repos/git/net-next-2.6
Conflicts:
	Documentation/feature-removal-schedule.txt
	net/ipv6/netfilter/ip6t_REJECT.c
	net/netfilter/xt_limit.c
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'drivers/net/tsi108_eth.c')
| -rw-r--r-- | drivers/net/tsi108_eth.c | 18 | 
1 files changed, 9 insertions, 9 deletions
| diff --git a/drivers/net/tsi108_eth.c b/drivers/net/tsi108_eth.c index 647cdd1d4e20..a03730bd1da5 100644 --- a/drivers/net/tsi108_eth.c +++ b/drivers/net/tsi108_eth.c | |||
| @@ -38,7 +38,6 @@ | |||
| 38 | #include <linux/etherdevice.h> | 38 | #include <linux/etherdevice.h> | 
| 39 | #include <linux/ethtool.h> | 39 | #include <linux/ethtool.h> | 
| 40 | #include <linux/skbuff.h> | 40 | #include <linux/skbuff.h> | 
| 41 | #include <linux/slab.h> | ||
| 42 | #include <linux/spinlock.h> | 41 | #include <linux/spinlock.h> | 
| 43 | #include <linux/delay.h> | 42 | #include <linux/delay.h> | 
| 44 | #include <linux/crc32.h> | 43 | #include <linux/crc32.h> | 
| @@ -48,6 +47,7 @@ | |||
| 48 | #include <linux/rtnetlink.h> | 47 | #include <linux/rtnetlink.h> | 
| 49 | #include <linux/timer.h> | 48 | #include <linux/timer.h> | 
| 50 | #include <linux/platform_device.h> | 49 | #include <linux/platform_device.h> | 
| 50 | #include <linux/gfp.h> | ||
| 51 | 51 | ||
| 52 | #include <asm/system.h> | 52 | #include <asm/system.h> | 
| 53 | #include <asm/io.h> | 53 | #include <asm/io.h> | 
| @@ -263,7 +263,7 @@ static inline void tsi108_write_tbi(struct tsi108_prv_data *data, | |||
| 263 | return; | 263 | return; | 
| 264 | udelay(10); | 264 | udelay(10); | 
| 265 | } | 265 | } | 
| 266 | printk(KERN_ERR "%s function time out \n", __func__); | 266 | printk(KERN_ERR "%s function time out\n", __func__); | 
| 267 | } | 267 | } | 
| 268 | 268 | ||
| 269 | static int mii_speed(struct mii_if_info *mii) | 269 | static int mii_speed(struct mii_if_info *mii) | 
| @@ -704,8 +704,8 @@ static int tsi108_send_packet(struct sk_buff * skb, struct net_device *dev) | |||
| 704 | 704 | ||
| 705 | if (i == 0) { | 705 | if (i == 0) { | 
| 706 | data->txring[tx].buf0 = dma_map_single(NULL, skb->data, | 706 | data->txring[tx].buf0 = dma_map_single(NULL, skb->data, | 
| 707 | skb->len - skb->data_len, DMA_TO_DEVICE); | 707 | skb_headlen(skb), DMA_TO_DEVICE); | 
| 708 | data->txring[tx].len = skb->len - skb->data_len; | 708 | data->txring[tx].len = skb_headlen(skb); | 
| 709 | misc |= TSI108_TX_SOF; | 709 | misc |= TSI108_TX_SOF; | 
| 710 | } else { | 710 | } else { | 
| 711 | skb_frag_t *frag = &skb_shinfo(skb)->frags[i - 1]; | 711 | skb_frag_t *frag = &skb_shinfo(skb)->frags[i - 1]; | 
| @@ -1056,7 +1056,7 @@ static void tsi108_stop_ethernet(struct net_device *dev) | |||
| 1056 | return; | 1056 | return; | 
| 1057 | udelay(10); | 1057 | udelay(10); | 
| 1058 | } | 1058 | } | 
| 1059 | printk(KERN_ERR "%s function time out \n", __func__); | 1059 | printk(KERN_ERR "%s function time out\n", __func__); | 
| 1060 | } | 1060 | } | 
| 1061 | 1061 | ||
| 1062 | static void tsi108_reset_ether(struct tsi108_prv_data * data) | 1062 | static void tsi108_reset_ether(struct tsi108_prv_data * data) | 
| @@ -1186,15 +1186,15 @@ static void tsi108_set_rx_mode(struct net_device *dev) | |||
| 1186 | 1186 | ||
| 1187 | if (dev->flags & IFF_ALLMULTI || !netdev_mc_empty(dev)) { | 1187 | if (dev->flags & IFF_ALLMULTI || !netdev_mc_empty(dev)) { | 
| 1188 | int i; | 1188 | int i; | 
| 1189 | struct dev_mc_list *mc; | 1189 | struct netdev_hw_addr *ha; | 
| 1190 | rxcfg |= TSI108_EC_RXCFG_MFE | TSI108_EC_RXCFG_MC_HASH; | 1190 | rxcfg |= TSI108_EC_RXCFG_MFE | TSI108_EC_RXCFG_MC_HASH; | 
| 1191 | 1191 | ||
| 1192 | memset(data->mc_hash, 0, sizeof(data->mc_hash)); | 1192 | memset(data->mc_hash, 0, sizeof(data->mc_hash)); | 
| 1193 | 1193 | ||
| 1194 | netdev_for_each_mc_addr(mc, dev) { | 1194 | netdev_for_each_mc_addr(ha, dev) { | 
| 1195 | u32 hash, crc; | 1195 | u32 hash, crc; | 
| 1196 | 1196 | ||
| 1197 | crc = ether_crc(6, mc->dmi_addr); | 1197 | crc = ether_crc(6, ha->addr); | 
| 1198 | hash = crc >> 23; | 1198 | hash = crc >> 23; | 
| 1199 | __set_bit(hash, &data->mc_hash[0]); | 1199 | __set_bit(hash, &data->mc_hash[0]); | 
| 1200 | } | 1200 | } | 
| @@ -1233,7 +1233,7 @@ static void tsi108_init_phy(struct net_device *dev) | |||
| 1233 | udelay(10); | 1233 | udelay(10); | 
| 1234 | } | 1234 | } | 
| 1235 | if (i == 0) | 1235 | if (i == 0) | 
| 1236 | printk(KERN_ERR "%s function time out \n", __func__); | 1236 | printk(KERN_ERR "%s function time out\n", __func__); | 
| 1237 | 1237 | ||
| 1238 | if (data->phy_type == TSI108_PHY_BCM54XX) { | 1238 | if (data->phy_type == TSI108_PHY_BCM54XX) { | 
| 1239 | tsi108_write_mii(data, 0x09, 0x0300); | 1239 | tsi108_write_mii(data, 0x09, 0x0300); | 
