iwlwifi: pcie: only use d0i3 in suspend/resume if system_pm is set to d0i3
authorLuca Coelho <luciano.coelho@intel.com>
Fri, 24 Mar 2017 09:01:45 +0000 (11:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 13 Apr 2018 17:48:21 +0000 (19:48 +0200)
commit9345b98879420bde44fa448ad8d9d04e47d18835
treee457e5f37b1c6b473c0051fb38b9025a7e1aefe7
parent87a9c569fea9d88a5a47064a9fb6720707010114
iwlwifi: pcie: only use d0i3 in suspend/resume if system_pm is set to d0i3

[ Upstream commit e4c49c4937951de1cdbe35572ade40c948dec1e1 ]

We only need to handle d0i3 entry and exit during suspend resume if
system_pm is set to IWL_PLAT_PM_MODE_D0I3, otherwise d0i3 entry
failures will cause suspend to fail.

This fixes https://bugzilla.kernel.org/show_bug.cgi?id=194791

Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/intel/iwlwifi/pcie/trans.c