• Rafael J. Wysocki's avatar
    tg3: Do not use legacy PCI power management · c866b7ea
    Rafael J. Wysocki authored
    The tg3 driver uses the legacy PCI power management, so it has to do
    some PCI-specific things in its ->suspend() and ->resume() callbacks,
    which isn't necessary and should better be done by the PCI
    sybsystem-level power management code.
    
    Convert tg3 to the new PCI power management framework and make it
    let the PCI subsystem take care of all the PCI-specific aspects of
    device handling during system power transitions.
    
    Tested on HP nx6325 with a NetXtreme BCM5788 adapter.
    Signed-off-by: default avatarRafael J. Wysocki <rjw@sisk.pl>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    c866b7ea
tg3.c 403 KB