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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Jan 2020 13:50:22 +0000 (14:50 +0100)
commita4150dee7b4c4c5ab0e8de256af5e95cf0ea5e80
tree3d524ddfcb53bdcec64f69d4cbbc3ded059850f1
parent10efc08b05e494aa1511210b25e355b2910daf95
ntb_hw_switchtec: NT req id mapping table register entry number should be 512

[ Upstream commit d123fab71f63aae129aebe052664fda73131921a ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/linux/switchtec.h