Commit c8f8e477 authored by Jeff Garzik's avatar Jeff Garzik

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

parent cf0115cf
......@@ -4047,22 +4047,18 @@ static void tg3_set_bdinfo(struct tg3 *tp, u32 bdinfo_addr,
u32 nic_addr)
{
tg3_write_mem(tp,
(bdinfo_addr +
TG3_BDINFO_HOST_ADDR +
TG3_64BIT_REG_HIGH),
(bdinfo_addr + TG3_BDINFO_HOST_ADDR + TG3_64BIT_REG_HIGH),
((u64) mapping >> 32));
tg3_write_mem(tp,
(bdinfo_addr +
TG3_BDINFO_HOST_ADDR +
TG3_64BIT_REG_LOW),
(bdinfo_addr + TG3_BDINFO_HOST_ADDR + TG3_64BIT_REG_LOW),
((u64) mapping & 0xffffffff));
tg3_write_mem(tp,
(bdinfo_addr +
TG3_BDINFO_MAXLEN_FLAGS),
(bdinfo_addr + TG3_BDINFO_MAXLEN_FLAGS),
maxlen_flags);
if (GET_ASIC_REV(tp->pci_chip_rev_id) != ASIC_REV_5705)
tg3_write_mem(tp,
(bdinfo_addr +
TG3_BDINFO_NIC_ADDR),
(bdinfo_addr + TG3_BDINFO_NIC_ADDR),
nic_addr);
}
......
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