[SUNGEM]: Rework PM handling and fix MAC reset on stuck receiver.
This patch updates the sungem driver. I reworked all of the PM stuff, making it less prone to races, probably simpler to read as well, and I no longer shut the PHY down when the interface is down so that things like laptop-net no longer die (the gain in power consumption was minimal, not worth the pain). I also implemented basic WOL support. There is still something I'm not totally happy with in the locking (explained in the comment at the beginning), basically too much locking and a couple of places with delays in locks. I will try to improve these later on. It also adds a fix for a MAC reset issue when the receiver gets stuck. Signed-off-by:Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
This diff is collapsed.
Please register or sign in to comment