diff options
-rw-r--r-- | drivers/ntb/hw/idt/ntb_hw_idt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ntb/hw/idt/ntb_hw_idt.c b/drivers/ntb/hw/idt/ntb_hw_idt.c index a67ef23e81bc..54485a8d2d7f 100644 --- a/drivers/ntb/hw/idt/ntb_hw_idt.c +++ b/drivers/ntb/hw/idt/ntb_hw_idt.c | |||
@@ -1320,7 +1320,7 @@ static int idt_ntb_peer_mw_set_trans(struct ntb_dev *ntb, int pidx, int widx, | |||
1320 | idt_nt_write(ndev, bar->ltbase, (u32)addr); | 1320 | idt_nt_write(ndev, bar->ltbase, (u32)addr); |
1321 | idt_nt_write(ndev, bar->utbase, (u32)(addr >> 32)); | 1321 | idt_nt_write(ndev, bar->utbase, (u32)(addr >> 32)); |
1322 | /* Set the custom BAR aperture limit */ | 1322 | /* Set the custom BAR aperture limit */ |
1323 | limit = pci_resource_start(ntb->pdev, mw_cfg->bar) + size; | 1323 | limit = pci_bus_address(ntb->pdev, mw_cfg->bar) + size; |
1324 | idt_nt_write(ndev, bar->limit, (u32)limit); | 1324 | idt_nt_write(ndev, bar->limit, (u32)limit); |
1325 | if (IS_FLD_SET(BARSETUP_TYPE, data, 64)) | 1325 | if (IS_FLD_SET(BARSETUP_TYPE, data, 64)) |
1326 | idt_nt_write(ndev, (bar + 1)->limit, (limit >> 32)); | 1326 | idt_nt_write(ndev, (bar + 1)->limit, (limit >> 32)); |