OSDN Git Service

ntb_hw_switchtec: NT req id mapping table register entry number should be 512
authorWesley Sheng <wesley.sheng@microchip.com>
Thu, 6 Dec 2018 13:30:51 +0000 (21:30 +0800)
committerJon Mason <jdmason@kudzu.us>
Mon, 11 Feb 2019 12:36:13 +0000 (07:36 -0500)
commitd123fab71f63aae129aebe052664fda73131921a
tree9430880e21eaa1bd3733dfc4e71d05f34857e42b
parentcce8e04cf79e47809455215744685e8eb56f94bb
ntb_hw_switchtec: NT req id mapping table register entry number should be 512

The number of available NT req id mapping table entries per NTB control
register is 512. The driver mistakenly limits the number to 256.

Fix the array size of NT req id mapping table.

Fixes: c082b04c9d40 ("NTB: switchtec: Add NTB hardware register definitions")
Signed-off-by: Wesley Sheng <wesley.sheng@microchip.com>
Reviewed-by: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
include/linux/switchtec.h