e1000e: Check the PCIm state
authorSasha Neftin <sasha.neftin@intel.com>
Thu, 24 Jun 2021 19:02:48 +0000 (12:02 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 24 Jun 2021 22:01:04 +0000 (15:01 -0700)
commit2e7256f12cdb16eaa2515b6231d665044a07c51a
treefdd9a12ecc6f59e9b1678adfb7251ef0efcf27cb
parentfd7ce282afc41092f64ad9e3d46f2d896ef1e175
e1000e: Check the PCIm state

Complete to commit def4ec6dce393e ("e1000e: PCIm function state support")
Check the PCIm state only on CSME systems. There is no point to do this
check on non CSME systems.
This patch fixes a generation a false-positive warning:
"Error in exiting dmoff"

Fixes: def4ec6dce39 ("e1000e: PCIm function state support")
Signed-off-by: Sasha Neftin <sasha.neftin@intel.com>
Tested-by: Dvora Fuxbrumer <dvorax.fuxbrumer@linux.intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/intel/e1000e/netdev.c