WSL2-Linux-Kernel/drivers/ntb
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
..
hw ntb: intel: fix port config status offset for SPR 2022-03-08 19:12:44 +01:00
test ntb: ntb_pingpong: remove redundant initialization of variables msg_data and spad_data 2021-09-05 18:04:46 -04:00
Kconfig New feature to add support for NTB virtual MSI interrupts, the ability 2019-07-21 09:46:59 -07:00
Makefile New feature to add support for NTB virtual MSI interrupts, the ability 2019-07-21 09:46:59 -07:00
core.c bus: Make remove callback return void 2021-07-21 11:53:42 +02:00
msi.c NTB/msi: Use irq_has_action() 2020-12-15 16:19:32 +01:00
ntb_transport.c bus: Make remove callback return void 2021-07-21 11:53:42 +02:00