projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d3cfc2
)
ntb_hw_switchtec: Fix a minor issue in config_req_id_table()
author
Kelvin Cao
<kelvin.cao@microchip.com>
Fri, 24 Dec 2021 01:23:34 +0000
(17:23 -0800)
committer
Jon Mason
<jdmason@kudzu.us>
Tue, 11 Jan 2022 20:38:59 +0000
(15:38 -0500)
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>
drivers/ntb/hw/mscc/ntb_hw_switchtec.c
patch
|
blob
|
history
diff --git
a/drivers/ntb/hw/mscc/ntb_hw_switchtec.c
b/drivers/ntb/hw/mscc/ntb_hw_switchtec.c
index e79a355bafbf36860ddc8c50732a6e891a2ce8cd..88ae18b0efa8dadb2b42ef8873dc31c878aa0a2d 100644
(file)
--- 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 (ioread
32
(&mmio_ctrl->req_id_table_size) < count) {
+ if (ioread
16
(&mmio_ctrl->req_id_table_size) < count) {
dev_err(&sndev->stdev->dev,
"Not enough requester IDs available.\n");
return -EFAULT;