• Benjamin Herrenschmidt's avatar
    [SUNGEM]: Rework PM handling and fix MAC reset on stuck receiver. · e0f4c5ce
    Benjamin Herrenschmidt authored
    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: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    e0f4c5ce
sungem.h 42.3 KB