Pyun YongHyeon d314ebf548 Apply special PHY initialization code for 21143 controllers before
any other media configuration. Otherwise some 21143 controller
cannot establish a link. While I'm here remove the PHY
initialization code in dc_setcfg(). Since dc_setcfg() is called
whenever link state is changed, having the PHY initialization code
in dc_setcfg() resulted in continuous link flips.
After driver resets SIA, use default SIA transmit/receive
configuration instead of disabling autosense/autonegotiation.
Otherwise, controller fails to establish a link as well as losing
auto-negotiation capability. For manual media configuration, always
configure 21143 controller with specified media to ensure media
change. This change makes ANA-6922 establish link with/without
auto-negotiation.

While I'm here be more strict on link UP/DOWN detection logic.

Many thanks to marius who fixed several bugs in initial patch and
even tested the patch on a couple of dc(4) controllers.

PR:		kern/79262
Reviewed by:	marius
Tested by:	marius
2011-02-18 02:58:09 +00:00
..
2010-07-28 16:24:11 +00:00
2010-10-13 17:38:23 +00:00
2010-10-13 17:38:23 +00:00
2010-01-03 23:26:29 +00:00
2010-11-15 05:25:51 +00:00
2010-10-13 14:41:52 +00:00
2010-01-08 20:40:28 +00:00
2010-05-11 17:14:17 +00:00
2010-01-01 22:47:53 +00:00
2010-01-28 08:41:30 +00:00
2010-11-09 10:59:09 +00:00
2010-12-18 02:54:51 +00:00
2010-12-06 10:24:06 +00:00
2011-01-26 13:10:07 +00:00
2010-11-15 05:25:51 +00:00
2010-01-28 08:41:30 +00:00
2010-12-31 01:23:04 +00:00
2010-11-07 12:29:26 +00:00