diff options
| author | Damien Le Moal <[email protected]> | 2024-10-17 01:58:38 +0000 |
|---|---|---|
| committer | Bjorn Helgaas <[email protected]> | 2024-11-25 19:18:35 +0000 |
| commit | 57ed93fe799b3564388fd61279fc274ae2716508 (patch) | |
| tree | 7724b9989df5c924e2fd409e500abae074ed75cc /drivers/usb/cdns3/cdns3-imx.c | |
| parent | PCI: rockchip-ep: Use a macro to define EP controller .align feature (diff) | |
| download | kernel-57ed93fe799b3564388fd61279fc274ae2716508.tar.gz kernel-57ed93fe799b3564388fd61279fc274ae2716508.zip | |
PCI: rockchip-ep: Improve rockchip_pcie_ep_unmap_addr()
There is no need to loop over all regions to find the memory window used
to map an address. We can use rockchip_ob_region() to determine the
region index, together with a check that the address passed as argument
is the address used to create the mapping. Furthermore, the
ob_region_map bitmap should also be checked to ensure that we are not
attempting to unmap an address that is not mapped.
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Damien Le Moal <[email protected]>
Signed-off-by: Krzysztof WilczyĆski <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-imx.c')
0 files changed, 0 insertions, 0 deletions
