[PATCH net-next 0/2] net: bcmgenet: fix aborted suspend

From: Doug Berger
Date: Fri Nov 16 2018 - 21:01:24 EST


It is not enough to return an error code from the driver suspend
routine. The driver must also restore the device functionality.

This commit corrects the issue introduced by commit 0db55093b566
("net: bcmgenet: return correct value 'ret' from bcmgenet_power_down")
by calling the driver resume function if the suspend function returns
an error.

Doug Berger (2):
net: bcmgenet: code movement
net: bcmgenet: abort suspend on error

drivers/net/ethernet/broadcom/genet/bcmgenet.c | 63 +++++++++++-----------
drivers/net/ethernet/broadcom/genet/bcmgenet_wol.c | 6 +++
2 files changed, 39 insertions(+), 30 deletions(-)

--
2.7.4