diff options
author | Wang Lu <[email protected]> | 2021-09-09 11:25:28 +0800 |
---|---|---|
committer | Bjorn Helgaas <[email protected]> | 2021-09-20 14:46:02 -0500 |
commit | 3a19407913e8e43d6b799a59bc0f6cae889b5446 (patch) | |
tree | 8e5776fb87a881e1671a396b4d102f566089e127 /drivers/usb/cdns3/cdns3-trace.c | |
parent | e4e737bb5c170df6135a127739a9e6148ee3da82 (diff) |
PCI/P2PDMA: Apply bus offset correctly in DMA address calculation
The bus offset is bus address - physical address, so the calculation in
__pci_p2pdma_map_sg should be: bus address = physical address + bus offset.
Correct the dma_address computation in __pci_p2pdma_map_sg().
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Wang Lu <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Reviewed-by: Logan Gunthorpe <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-trace.c')
0 files changed, 0 insertions, 0 deletions