]> www.infradead.org Git - users/jedix/linux-maple.git/commit
tg3: Check transitions to D0 power state
authorMatt Carlson <mcarlson@broadcom.com>
Wed, 13 Jul 2011 09:27:29 +0000 (09:27 +0000)
committerJoe Jin <joe.jin@oracle.com>
Tue, 15 May 2012 08:30:25 +0000 (16:30 +0800)
commit16d9c67e01b3f484d4dad78f5a5cc1d0bac44f42
tree3b4f460560e0aed8e5bb274cfae7cf8b74b93b10
parente409586991fc34f83d998ac302515da819e6e671
tg3: Check transitions to D0 power state

Currently pci_set_power_state() does not return useful return codes for
transitions to the D0 power state.  If a device refuses to go into D0,
the PCI layer issues a warning but returns success.

Entering into D0 is a requirement for correct operation of tg3 devices
though.  If the PCI layer should be changed to return an error code for
this type of failure, the tg3 driver would be interested in catching it
and reacting to it.  This patch makes the necessary modifications.

Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit bed9829f3ec4b30d5cbec6511a11368ba5f169fb)

Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/tg3.c