diff options
author | Wesley Cheng <[email protected]> | 2023-09-15 17:31:05 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2023-10-02 16:33:45 +0200 |
commit | 41a43013d2366db5b88b42bbcd8e8f040b6ccf21 (patch) | |
tree | 5ba1b61b5b149765604fb20825133888f79f9273 /scripts/bpf_doc.py | |
parent | a00e197daec52bcd955e118f5f57d706da5bfe50 (diff) |
usb: xhci: xhci-ring: Use sysdev for mapping bounce buffer
As mentioned in:
commit 474ed23a6257 ("xhci: align the last trb before link if it is
easily splittable.")
A bounce buffer is utilized for ensuring that transfers that span across
ring segments are aligned to the EP's max packet size. However, the device
that is used to map the DMA buffer to is currently using the XHCI HCD,
which does not carry any DMA operations in certain configrations.
Migration to using the sysdev entry was introduced for DWC3 based
implementations where the IOMMU operations are present.
Replace the reference to the controller device to sysdev instead. This
allows the bounce buffer to be properly mapped to any implementations that
have an IOMMU involved.
cc: [email protected]
Fixes: 4c39d4b949d3 ("usb: xhci: use bus->sysdev for DMA configuration")
Signed-off-by: Wesley Cheng <[email protected]>
Signed-off-by: Mathias Nyman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/bpf_doc.py')
0 files changed, 0 insertions, 0 deletions