]> git.baikalelectronics.ru Git - kernel.git/commit
[SUNGEM]: Make PM of PHYs more reliable (#2)
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 24 Jan 2006 00:30:04 +0000 (16:30 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Jan 2006 00:30:04 +0000 (16:30 -0800)
commitccaf887397047cca06b21d55f6105d7dd285abbb
tree1e19997075ecd5cc46de631bd8342cca1f559974
parentbfb900d80dbb5a6fe4244d8f3d57a235721f6c1f
[SUNGEM]: Make PM of PHYs more reliable (#2)

On my latest laptop, I've had occasional PHY dead on wakeup from
sleep... the PHY would be totally unresponsive even to toggling the hard
reset line until the machine is powered down... Looking closely at the
code, I found some possible issues in the way we setup the MDIO lines
during suspend along with slight divergences from what Darwin does when
resetting it that may explain the problem. That patch change these and
the problem appear to be gone for me at least... I also fixed an mdelay
-> msleep while I was at it to the pmac feature code that is called
when toggling the PHY reset line since sungem doesn't call it in an
atomic context anymore.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>b
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/powerpc/platforms/powermac/feature.c
drivers/net/sungem.c