• Ondrej Zary's avatar
    dl2k: Add support for IP1000A-based cards · c3f45d32
    Ondrej Zary authored
    Add support for IP1000A chips to dl2k driver.
    IP1000A chip looks like a TC9020 with integrated PHY.
    
    This allows IP1000A chips to work reliably because the ipg driver is
    buggy - it loses packets under load and then completely stops
    transmitting data.
    
    Tested with Asus NX1101 v2.0 at 10, 100 and 1000Mbps:
    vendor=0x13f0 device=0x1023 (rev 0x41)
    subsystem vendor=0x1043 device=0x8180
    
    MAC address registers access needed to be changed from 8-bit to 16-bit
    because 8-bit does not work on IP1000A. 8-bit access is not even
    allowed in the TC9020 datasheet (although it worked). 16-bit access
    works on both.
    
    Tested that it does not break D-Link DGE-550T (DL-2000 chip, probably
    a rebranded TC9020):
    vendor=0x1186 device=0x4000 (rev 0x0c)
    subsystem vendor=0x1186 device=0x4000
    Signed-off-by: default avatarOndrej Zary <linux@rainbow-software.org>
    Reviewed-by: default avatarAndy Shevchenko <andy.shevchenko@gmail.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    c3f45d32
dl2k.h 12 KB