Commit c8f8e477 authored by Jeff Garzik's avatar Jeff Garzik

[TG3]: Only write the on-nic sram addr on non-5705.

parent cf0115cf
...@@ -4047,23 +4047,19 @@ static void tg3_set_bdinfo(struct tg3 *tp, u32 bdinfo_addr, ...@@ -4047,23 +4047,19 @@ static void tg3_set_bdinfo(struct tg3 *tp, u32 bdinfo_addr,
u32 nic_addr) u32 nic_addr)
{ {
tg3_write_mem(tp, tg3_write_mem(tp,
(bdinfo_addr + (bdinfo_addr + TG3_BDINFO_HOST_ADDR + TG3_64BIT_REG_HIGH),
TG3_BDINFO_HOST_ADDR +
TG3_64BIT_REG_HIGH),
((u64) mapping >> 32)); ((u64) mapping >> 32));
tg3_write_mem(tp, tg3_write_mem(tp,
(bdinfo_addr + (bdinfo_addr + TG3_BDINFO_HOST_ADDR + TG3_64BIT_REG_LOW),
TG3_BDINFO_HOST_ADDR +
TG3_64BIT_REG_LOW),
((u64) mapping & 0xffffffff)); ((u64) mapping & 0xffffffff));
tg3_write_mem(tp, tg3_write_mem(tp,
(bdinfo_addr + (bdinfo_addr + TG3_BDINFO_MAXLEN_FLAGS),
TG3_BDINFO_MAXLEN_FLAGS),
maxlen_flags); maxlen_flags);
tg3_write_mem(tp,
(bdinfo_addr + if (GET_ASIC_REV(tp->pci_chip_rev_id) != ASIC_REV_5705)
TG3_BDINFO_NIC_ADDR), tg3_write_mem(tp,
nic_addr); (bdinfo_addr + TG3_BDINFO_NIC_ADDR),
nic_addr);
} }
static void __tg3_set_rx_mode(struct net_device *); static void __tg3_set_rx_mode(struct net_device *);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment