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/ucc_geth.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/ucc_geth.c')
-rw-r--r-- | drivers/net/ucc_geth.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/drivers/net/ucc_geth.c b/drivers/net/ucc_geth.c index 0ab51037bf88..4a34833b85dd 100644 --- a/drivers/net/ucc_geth.c +++ b/drivers/net/ucc_geth.c | |||
@@ -1999,7 +1999,7 @@ static void ucc_geth_memclean(struct ucc_geth_private *ugeth) | |||
1999 | static void ucc_geth_set_multi(struct net_device *dev) | 1999 | static void ucc_geth_set_multi(struct net_device *dev) |
2000 | { | 2000 | { |
2001 | struct ucc_geth_private *ugeth; | 2001 | struct ucc_geth_private *ugeth; |
2002 | struct dev_mc_list *dmi; | 2002 | struct netdev_hw_addr *ha; |
2003 | struct ucc_fast __iomem *uf_regs; | 2003 | struct ucc_fast __iomem *uf_regs; |
2004 | struct ucc_geth_82xx_address_filtering_pram __iomem *p_82xx_addr_filt; | 2004 | struct ucc_geth_82xx_address_filtering_pram __iomem *p_82xx_addr_filt; |
2005 | 2005 | ||
@@ -2028,16 +2028,16 @@ static void ucc_geth_set_multi(struct net_device *dev) | |||
2028 | out_be32(&p_82xx_addr_filt->gaddr_h, 0x0); | 2028 | out_be32(&p_82xx_addr_filt->gaddr_h, 0x0); |
2029 | out_be32(&p_82xx_addr_filt->gaddr_l, 0x0); | 2029 | out_be32(&p_82xx_addr_filt->gaddr_l, 0x0); |
2030 | 2030 | ||
2031 | netdev_for_each_mc_addr(dmi, dev) { | 2031 | netdev_for_each_mc_addr(ha, dev) { |
2032 | /* Only support group multicast for now. | 2032 | /* Only support group multicast for now. |
2033 | */ | 2033 | */ |
2034 | if (!(dmi->dmi_addr[0] & 1)) | 2034 | if (!(ha->addr[0] & 1)) |
2035 | continue; | 2035 | continue; |
2036 | 2036 | ||
2037 | /* Ask CPM to run CRC and set bit in | 2037 | /* Ask CPM to run CRC and set bit in |
2038 | * filter mask. | 2038 | * filter mask. |
2039 | */ | 2039 | */ |
2040 | hw_add_addr_in_hash(ugeth, dmi->dmi_addr); | 2040 | hw_add_addr_in_hash(ugeth, ha->addr); |
2041 | } | 2041 | } |
2042 | } | 2042 | } |
2043 | } | 2043 | } |
@@ -3148,8 +3148,6 @@ static int ucc_geth_start_xmit(struct sk_buff *skb, struct net_device *dev) | |||
3148 | /* set bd status and length */ | 3148 | /* set bd status and length */ |
3149 | out_be32((u32 __iomem *)bd, bd_status); | 3149 | out_be32((u32 __iomem *)bd, bd_status); |
3150 | 3150 | ||
3151 | dev->trans_start = jiffies; | ||
3152 | |||
3153 | /* Move to next BD in the ring */ | 3151 | /* Move to next BD in the ring */ |
3154 | if (!(bd_status & T_W)) | 3152 | if (!(bd_status & T_W)) |
3155 | bd += sizeof(struct qe_bd); | 3153 | bd += sizeof(struct qe_bd); |
@@ -3883,7 +3881,7 @@ static int ucc_geth_probe(struct of_device* ofdev, const struct of_device_id *ma | |||
3883 | } | 3881 | } |
3884 | 3882 | ||
3885 | if (netif_msg_probe(&debug)) | 3883 | if (netif_msg_probe(&debug)) |
3886 | printk(KERN_INFO "ucc_geth: UCC%1d at 0x%8x (irq = %d) \n", | 3884 | printk(KERN_INFO "ucc_geth: UCC%1d at 0x%8x (irq = %d)\n", |
3887 | ug_info->uf_info.ucc_num + 1, ug_info->uf_info.regs, | 3885 | ug_info->uf_info.ucc_num + 1, ug_info->uf_info.regs, |
3888 | ug_info->uf_info.irq); | 3886 | ug_info->uf_info.irq); |
3889 | 3887 | ||