]> git.baikalelectronics.ru Git - kernel.git/commit
bnx2x: Change to D3hot only on removal
authorYuval Mintz <yuvalmin@broadcom.com>
Mon, 27 May 2013 04:08:31 +0000 (04:08 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 May 2013 04:41:49 +0000 (21:41 -0700)
commit96964dcbc67439bdfc4ccc10467b298e4e6a24f0
treea6233da1138995d17b87d39d48ca7d07fb28c473
parent6f8febceccec5a60d1f521867d30d2ab69145f0f
bnx2x: Change to D3hot only on removal

This changes the PCI power management scheme of the bnx2x driver to be similar
to those of most network drivers - the driver will now changes the power state
into D3hot whenever the driver will be removed, instead of whenever an
interface is unloaded.

This change enables the driver to access its eeprom via ethtool callbacks
even when interfaces are unloaded (such access requires the function to be
in D0active).

Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com>
Signed-off-by: Ariel Elior <ariele@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c