e1000e: Remove the runtime suspend restriction on CNP+
authorChen Yu <yu.c.chen@intel.com>
Tue, 1 Dec 2020 01:22:09 +0000 (09:22 +0800)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 16 Mar 2021 03:10:51 +0000 (20:10 -0700)
commit3335369bad99c40b3513da2d165e6ae83f3f3c8b
tree928391ad60a32532977258f77392056b1719828b
parentccf8b940e5fdd331231a7442cd80f0e83336cfd3
e1000e: Remove the runtime suspend restriction on CNP+

Although there is platform issue of runtime suspend support
on CNP, it would be more flexible to let the user decide whether
to disable runtime or not because:
1. This can be done in userspace via
   echo on > /sys/devices/pci0000\:00/0000\:00\:1f.d/power/control
2. More and more NICs would support runtime suspend, disabling the
   runtime suspend on them by default would impact the validation.

Only disable runtime suspend on CNP in case of any user space regression.

Signed-off-by: Chen Yu <yu.c.chen@intel.com>
Tested-by: Dvora Fuxbrumer <dvorax.fuxbrumer@linux.intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/e1000e/netdev.c