]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
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)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 14 Feb 2020 05:29:37 +0000 (00:29 -0500)
commitb48981e6da810d8f9655a3e305ffc9aaf02e6fba
tree5842eafeb8c7db4f8ca0d17ef1f0e0aab3154d8e
parent64851fef2be76a2fab40359a96cd3ddeb8f6b66a
ntb_hw_switchtec: NT req id mapping table register entry number should be 512

BugLink: https://bugs.launchpad.net/bugs/1863019
[ 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
include/linux/switchtec.h