Commit cce8e04c authored by Paul Selles's avatar Paul Selles Committed by Jon Mason

ntb_hw_switchtec: debug print 64bit aligned crosslink BAR Numbers

Switchtec NTB crosslink BARs are 64bit addressed but they are printed as
32bit addressed BARs. Fix debug log to increment the BAR numbers by 2 to
reflect the 64bit address alignment.

Fixes: 01752501 ("ntb_hw_switchtec: Add initialization code for crosslink")
Signed-off-by: default avatarPaul Selles <paul.selles@microchip.com>
Signed-off-by: default avatarWesley Sheng <wesley.sheng@microchip.com>
Reviewed-by: default avatarLogan Gunthorpe <logang@deltatee.com>
Signed-off-by: default avatarJon Mason <jdmason@kudzu.us>
parent bfeffd15
...@@ -1120,7 +1120,7 @@ static int crosslink_enum_partition(struct switchtec_ntb *sndev, ...@@ -1120,7 +1120,7 @@ static int crosslink_enum_partition(struct switchtec_ntb *sndev,
dev_dbg(&sndev->stdev->dev, dev_dbg(&sndev->stdev->dev,
"Crosslink BAR%d addr: %llx\n", "Crosslink BAR%d addr: %llx\n",
i, bar_addr); i*2, bar_addr);
if (bar_addr != bar_space * i) if (bar_addr != bar_space * i)
continue; continue;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment