kernel_optimize_test/drivers/ntb
Dave Jiang 912186db09 ntb: intel: fix port config status offset for SPR
commit d5081bf5dcfb1cb83fb538708b0ac07a10a79cc4 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:09:32 +01:00
..
hw ntb: intel: fix port config status offset for SPR 2022-03-08 19:09:32 +01:00
test NTB: perf: Fix an error code in perf_setup_inbuf() 2021-09-22 12:28:02 +02:00
core.c
Kconfig
Makefile
msi.c
ntb_transport.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00