diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2010-05-22 02:36:56 -0400 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2010-05-22 02:36:56 -0400 |
commit | cf9b59e9d3e008591d1f54830f570982bb307a0d (patch) | |
tree | 113478ce8fd8c832ba726ffdf59b82cb46356476 /drivers/net/tsi108_eth.c | |
parent | 44504b2bebf8b5823c59484e73096a7d6574471d (diff) | |
parent | f4b87dee923342505e1ddba8d34ce9de33e75050 (diff) |
Merge remote branch 'origin' into secretlab/next-devicetree
Merging in current state of Linus' tree to deal with merge conflicts and
build failures in vio.c after merge.
Conflicts:
drivers/i2c/busses/i2c-cpm.c
drivers/i2c/busses/i2c-mpc.c
drivers/net/gianfar.c
Also fixed up one line in arch/powerpc/kernel/vio.c to use the
correct node pointer.
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/net/tsi108_eth.c')
-rw-r--r-- | drivers/net/tsi108_eth.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/net/tsi108_eth.c b/drivers/net/tsi108_eth.c index 5b1fbb3c3b51..a03730bd1da5 100644 --- a/drivers/net/tsi108_eth.c +++ b/drivers/net/tsi108_eth.c | |||
@@ -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); |