]> git.baikalelectronics.ru Git - kernel.git/commit
igc: Fix suspending when PTM is active
authorVinicius Costa Gomes <vinicius.gomes@intel.com>
Wed, 13 Apr 2022 01:58:15 +0000 (18:58 -0700)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Wed, 13 Apr 2022 16:17:58 +0000 (09:17 -0700)
commit371f869c38d2dd2169877c52a4c7eb3f69f50177
tree7bb1bf482ad895eaf3125b669b16f19286fad148
parentffac25bbdb0ef20e61f5f57e5e3f0837342fdad2
igc: Fix suspending when PTM is active

Some mainboard/CPU combinations, in particular, Alder Lake-S with a
W680 mainboard, have shown problems (system hangs usually, no kernel
logs) with suspend/resume when PCIe PTM is enabled and active. In some
cases, it could be reproduced when removing the igc module.

The best we can do is to stop PTM dialogs from the downstream/device
side before the interface is brought down. PCIe PTM will be re-enabled
when the interface is being brought up.

Fixes: 0659b31395b3 ("igc: Add support for PTP getcrosststamp()")
Signed-off-by: Vinicius Costa Gomes <vinicius.gomes@intel.com>
Tested-by: Naama Meir <naamax.meir@linux.intel.com>
Acked-by: Paul Menzel <pmenzel@molgen.mpg.de>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/igc/igc_ptp.c