1
linux/drivers/net/tulip
Ondrej Zary ca9a783575 de2104x: fix TP link detection
Compex FreedomLine 32 PnP-PCI2 cards have only TP and BNC connectors but the
SROM contains AUI port too. When TP loses link, the driver switches to
non-existing AUI port (which reports that carrier is always present).

Connecting TP back generates LinkPass interrupt but de_media_interrupt() is
broken - it only updates the link state of currently connected media, ignoring
the fact that LinkPass and LinkFail bits of MacStatus register belong to the
TP port only (the chip documentation says that).

This patch changes de_media_interrupt() to switch media to TP when link goes
up (and media type is not locked) and also to update the link state only when
the TP port is used.

Also the NonselPortActive (and also SelPortActive) bits of SIAStatus register
need to be cleared (by writing 1) after reading or they're useless.

Signed-off-by: Ondrej Zary <linux@rainbow-software.org>
Acked-by: Jeff Garzik <jgarzik@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2010-09-26 15:51:55 -07:00
..
21142.c tulip/21142.c: Use dev_<level> and pr_<level> 2010-01-31 23:26:52 -08:00
de4x5.c drivers/net: Remove unnecessary returns from void function()s 2010-05-14 00:19:28 -07:00
de4x5.h de4x5: Remove developer debug feature about set/clear promisc 2008-07-22 16:09:09 -04:00
de2104x.c de2104x: fix TP link detection 2010-09-26 15:51:55 -07:00
dmfe.c fix typos concerning "initiali[zs]e" 2010-06-16 18:05:05 +02:00
eeprom.c drivers/net/tulip/eeprom.c: Remove unnecessary kmalloc casts 2010-06-01 00:15:53 -07:00
interrupt.c tulip/interrupt.c: Use dev_<level> and pr_<level> 2010-01-31 23:26:54 -08:00
Kconfig dmfe/tulip: Let dmfe handle DM910x except for SPARC on-board chips 2010-01-07 17:27:31 -08:00
Makefile remove the obsolete xircom_tulip_cb driver 2008-03-17 07:49:23 -04:00
media.c drivers/net: Remove unnecessary returns from void function()s 2010-05-14 00:19:28 -07:00
pnic2.c tulip/pnic2.c: Use dev_<level> and pr_<level> 2010-01-31 23:26:56 -08:00
pnic.c net: trans_start cleanups 2010-05-10 05:01:31 -07:00
timer.c tulip/timer.c: Use dev_<level> and pr_<level> 2010-01-31 23:26:56 -08:00
tulip_core.c Tulip: don't initialize SBE xT3E3 WAN ports. 2010-08-02 16:03:29 -07:00
tulip.h tulip: implement wake-on-lan support 2010-06-01 00:15:51 -07:00
uli526x.c net: trans_start cleanups 2010-05-10 05:01:31 -07:00
winbond-840.c tulip: formatting of pointers in printk() 2010-07-14 15:06:10 -07:00
xircom_cb.c net/tulip: remove trailing space in messages 2010-03-24 14:10:14 -07:00