netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* drivers/net/phy/marvell.c: 88e1111 can't get out sleep mode
@ 2008-09-29 13:33 Wang Jian
  2008-09-29 14:45 ` Ben Hutchings
  2008-09-29 20:14 ` Andy Fleming
  0 siblings, 2 replies; 7+ messages in thread
From: Wang Jian @ 2008-09-29 13:33 UTC (permalink / raw)
  To: netdev; +Cc: Andy Fleming, Jeff Garzik, Alexandr Smirnov

Hi,

During my testing, I found that 88e1111 can't get out of sleep mode
(Energy detect+) in certain condition.

I am working on a mpc8541 board, with TSEC (gianfar) connected to 88e1111
phy chip. The kenrel is 2.6.26-rc8 with several patches.

The following steps can 100% trigger the problem

1. unplug cable from tsec interfaces (eth0/eth1 in my case)
2. boot up and waiting for 6+ seconds
3. ifconfig eth0 up
4. plug in cable, the link can't be established and no way to bring it
   up

But these steps can make link up

1. boot up with cable plugged or plug the cable in 6 seconds after
   bootup
2. unplug cable
3. ifconfig eth0 up
4. plugin in cable, the link is up

I tried some workarounds and no success. so far I get these information

1. When cable plugged before ifconfig eth0 up and in the 6 seconds window,
   the bit 11 of register 17, "speed and duplex resolved" is true even 
   unplug cable later
2. auto negotination enable bit (bit 12 of BMCR) is true in both cases

Can someone help me to confirm this problem? I can provide more
information/prink output per request.

Note: I have these two patches applied (in current linus tree)

commit 7239016d52c6d568d069f083bdcd17f35ab79fd8
Author: Wang Jian <lark@linux.net.cn>
Date:   Wed Jul 16 21:46:20 2008 +0800

commit 9cf8fa4334e60f27b4a392f432c292f3af268215
Author: Wang Jian <lark@linux.net.cn>
Date:   Wed Jul 16 21:46:17 2008 +0800

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-10-02 10:10 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-29 13:33 drivers/net/phy/marvell.c: 88e1111 can't get out sleep mode Wang Jian
2008-09-29 14:45 ` Ben Hutchings
2008-09-29 16:28   ` Wang Jian
2008-09-29 16:55     ` Ben Hutchings
2008-09-29 20:14 ` Andy Fleming
2008-09-30 12:11   ` Wang Jian
2008-10-02 10:10     ` Wang Jian

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).