]> git.baikalelectronics.ru Git - kernel.git/commit
e100: fix device suspend/resume
authorJesse Brandeburg <jesse.brandeburg@intel.com>
Wed, 17 Nov 2021 20:59:52 +0000 (12:59 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Nov 2021 11:40:31 +0000 (11:40 +0000)
commitb4e4266230740a73658d9dfb443d37b8b2b6c987
treea168e21908da3873d02a29f22ad9f7e8acccc8a0
parentf7ad6163743d7f8d30075f0a65c2026360572c32
e100: fix device suspend/resume

As reported in [1], e100 was no longer working for suspend/resume
cycles. The previous commit mentioned in the fixes appears to have
broken things and this attempts to practice best known methods for
device power management and keep wake-up working while allowing
suspend/resume to work. To do this, I reorder a little bit of code
and fix the resume path to make sure the device is enabled.

[1] https://bugzilla.kernel.org/show_bug.cgi?id=214933

Fixes: 12bdef0b8881 ("e100: use generic power management")
Cc: Vaibhav Gupta <vaibhavgupta40@gmail.com>
Reported-by: Alexey Kuznetsov <axet@me.com>
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: Alexey Kuznetsov <axet@me.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/intel/e100.c