]> git.baikalelectronics.ru Git - kernel.git/commit
bnx2x: Implement PCI shutdown
authorYuval Mintz <yuvalmin@broadcom.com>
Mon, 27 May 2013 04:08:30 +0000 (04:08 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 May 2013 04:41:49 +0000 (21:41 -0700)
commit6f8febceccec5a60d1f521867d30d2ab69145f0f
treec00e09fa7a43b48c86086d5c18a557d879ab76db
parent2453079323b7f785a28d46d47f74491c0e4eeb93
bnx2x: Implement PCI shutdown

Implement the PCI shutdown callback to support un-orderly shutdown, i.e.,
shutdowns in which the remove callback will not be called.

Due to the lack of this functionality, when an un-orderly shutdown occurred,
it was possible for wake-on-lan to remain disabled.

This is now fixed as the callback introduces the correct place in which
`system_state' can be queried and wake-on-lan be configured accordingly.

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_main.c