]> git.baikalelectronics.ru Git - kernel.git/commit
ntb: intel: fix port config status offset for SPR
authorDave Jiang <dave.jiang@intel.com>
Thu, 27 Jan 2022 20:31:12 +0000 (13:31 -0700)
committerJon Mason <jdmason@kudzu.us>
Fri, 28 Jan 2022 15:19:16 +0000 (10:19 -0500)
commit6ef403cac039f63fe99de2a33f28149e92d00f8c
tree2d5d427ee254443915c86297c3f5a0747258311e
parent7ada92e283818ab913442c3b13e90f2ca3936e8c
ntb: intel: fix port config status offset for SPR

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: 66c65c97b90b ("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>
drivers/ntb/hw/intel/ntb_hw_gen4.c
drivers/ntb/hw/intel/ntb_hw_gen4.h