Re: tg3 vs bcm5700 on FC2 updates

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



That fixed it - tks - got the 3.8 version of tg3.c working.
Any insight as to why this code segment causes problems?

David S. Miller wrote:

Just comment out the lines in the tg3.c sources that say:

	if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5704 &&
	    tp->phy_id == PHY_ID_SERDES) {
		/* Enable hardware link auto-negotiation */
		u32 digctrl, txctrl;

		digctrl = SG_DIG_USING_HW_AUTONEG | SG_DIG_CRC16_CLEAR_N |
		    SG_DIG_LOCAL_DUPLEX_STATUS | SG_DIG_LOCAL_LINK_STATUS |
		    (2 << SG_DIG_SPEED_STATUS_SHIFT) | SG_DIG_FIBER_MODE |
		    SG_DIG_GBIC_ENABLE;

		txctrl = tr32(MAC_SERDES_CFG);
		tw32_f(MAC_SERDES_CFG, txctrl | MAC_SERDES_CFG_EDGE_SELECT);
		tw32_f(SG_DIG_CTRL, digctrl | SG_DIG_SOFT_RESET);
		tr32(SG_DIG_CTRL);
		udelay(5);
		tw32_f(SG_DIG_CTRL, digctrl);

		tp->tg3_flags2 |= TG3_FLG2_HW_AUTONEG;
	}

and be happy.




- : send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux