WSL2-Linux-Kernel/drivers/ntb/hw
Dave Jiang 5d7c23d396 ntb: intel: fix port config status offset for SPR
commit d5081bf5dc upstream.

The field offset for port configuration status on SPR has been changed to
bit 14 from ICX where it resides at bit 12. By chance link status detection
continued to work on SPR. This is due to bit 12 being a configuration bit
which is in sync with the status bit. Fix this by checking for a SPR device
and checking correct status bit.

Fixes: 26bfe3d0b2 ("ntb: intel: Add Icelake (gen4) support for Intel NTB")
Tested-by: Jerry Dai <jerry.dai@intel.com>
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-03-08 19:12:44 +01:00
..
amd NTB: switch from 'pci_' to 'dma_' API 2021-09-05 18:08:14 -04:00
epf NTB: Add support for EPF PCI Non-Transparent Bridge 2021-02-23 14:12:53 -06:00
idt NTB: switch from 'pci_' to 'dma_' API 2021-09-05 18:08:14 -04:00
intel ntb: intel: fix port config status offset for SPR 2022-03-08 19:12:44 +01:00
mscc ntb_hw_switchtec: Fix bug with more than 32 partitions 2022-03-08 19:12:37 +01:00
Kconfig NTB: Add support for EPF PCI Non-Transparent Bridge 2021-02-23 14:12:53 -06:00
Makefile NTB: Add support for EPF PCI Non-Transparent Bridge 2021-02-23 14:12:53 -06:00