[v2,1/3] ntb_hw_switchtec: debug print 64bit aligned crosslink BAR Numbers
diff mbox series

Message ID 1544103052-28191-2-git-send-email-wesley.sheng@microchip.com
State Accepted
Commit cce8e04cf79e47809455215744685e8eb56f94bb
Headers show
  • ntb_hw_switchtec: Added support of >=4G memory windows
Related show

Commit Message

Wesley Sheng Dec. 6, 2018, 1:30 p.m. UTC
From: Paul Selles <paul.selles@microchip.com>

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: 017525018202 ("ntb_hw_switchtec: Add initialization code for crosslink")
Signed-off-by: Paul Selles <paul.selles@microchip.com>
Signed-off-by: Wesley Sheng <wesley.sheng@microchip.com>
Reviewed-by: Logan Gunthorpe <logang@deltatee.com>
 drivers/ntb/hw/mscc/ntb_hw_switchtec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff mbox series

diff --git a/drivers/ntb/hw/mscc/ntb_hw_switchtec.c b/drivers/ntb/hw/mscc/ntb_hw_switchtec.c
index 5ee5f40..9916bc5 100644
--- a/drivers/ntb/hw/mscc/ntb_hw_switchtec.c
+++ b/drivers/ntb/hw/mscc/ntb_hw_switchtec.c
@@ -1120,7 +1120,7 @@  static int crosslink_enum_partition(struct switchtec_ntb *sndev,
 			"Crosslink BAR%d addr: %llx\n",
-			i, bar_addr);
+			i*2, bar_addr);
 		if (bar_addr != bar_space * i)