]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ntb_hw_switchtec: debug print 64bit aligned crosslink BAR Numbers
authorPaul Selles <paul.selles@microchip.com>
Thu, 6 Dec 2018 13:30:50 +0000 (21:30 +0800)
committerJon Mason <jdmason@kudzu.us>
Mon, 11 Feb 2019 12:36:13 +0000 (07:36 -0500)
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>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
drivers/ntb/hw/mscc/ntb_hw_switchtec.c

index 5ee5f40b4dfc3fba0ca2c3c8ddf824f4cd5b0f05..9916bc5b6759a93dfb7e7e5b3a80b42dc62d2b63 100644 (file)
@@ -1120,7 +1120,7 @@ static int crosslink_enum_partition(struct switchtec_ntb *sndev,
 
                dev_dbg(&sndev->stdev->dev,
                        "Crosslink BAR%d addr: %llx\n",
-                       i, bar_addr);
+                       i*2, bar_addr);
 
                if (bar_addr != bar_space * i)
                        continue;