diff options
author | Kelvin Cao <kelvin.cao@microchip.com> | 2021-12-24 02:23:34 +0100 |
---|---|---|
committer | Jon Mason <jdmason@kudzu.us> | 2022-01-11 21:38:59 +0100 |
commit | 8cd778650ae223cd306588042b55d0290ef81037 (patch) | |
tree | a8fc6755295d3cdb66e9cf0dcb3611ed9088dfde /drivers/ntb | |
parent | ntb_hw_switchtec: Remove code for disabling ID protection (diff) | |
download | linux-8cd778650ae223cd306588042b55d0290ef81037.tar.xz linux-8cd778650ae223cd306588042b55d0290ef81037.zip |
ntb_hw_switchtec: Fix a minor issue in config_req_id_table()
The req_id_table_size field is 16-bit wide, use ioread16() to read the
value.
Signed-off-by: Kelvin Cao <kelvin.cao@microchip.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
Diffstat (limited to 'drivers/ntb')
-rw-r--r-- | drivers/ntb/hw/mscc/ntb_hw_switchtec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ntb/hw/mscc/ntb_hw_switchtec.c b/drivers/ntb/hw/mscc/ntb_hw_switchtec.c index e79a355bafbf..88ae18b0efa8 100644 --- a/drivers/ntb/hw/mscc/ntb_hw_switchtec.c +++ b/drivers/ntb/hw/mscc/ntb_hw_switchtec.c @@ -955,7 +955,7 @@ static int config_req_id_table(struct switchtec_ntb *sndev, u32 error; u32 proxy_id; - if (ioread32(&mmio_ctrl->req_id_table_size) < count) { + if (ioread16(&mmio_ctrl->req_id_table_size) < count) { dev_err(&sndev->stdev->dev, "Not enough requester IDs available.\n"); return -EFAULT; |