diff options
author | William Wu <[email protected]> | 2022-09-01 16:34:46 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2022-09-07 16:30:35 +0200 |
commit | 91062e663b261815573ce00967b1895a99e668df (patch) | |
tree | 50b5a7f33d35c4dee0a43892d2f83916da33f7d8 /tools/testing/selftests/bpf/progs/test_autoload.c | |
parent | 766a96dc558385be735a370db867e302c8f22153 (diff) |
usb: dwc3: core: leave default DMA if the controller does not support 64-bit DMA
On some DWC3 controllers (e.g. Rockchip SoCs), the DWC3 core
doesn't support 64-bit DMA address width. In this case, this
driver should use the default 32-bit mask. Otherwise, the DWC3
controller will break if it runs on above 4GB physical memory
environment.
This patch reads the DWC_USB3_AWIDTH bits of GHWPARAMS0 which
used for the DMA address width, and only configure 64-bit DMA
mask if the DWC_USB3_AWIDTH is 64.
Fixes: 45d39448b4d0 ("usb: dwc3: support 64 bit DMA in platform driver")
Cc: stable <[email protected]>
Reviewed-by: Sven Peter <[email protected]>
Signed-off-by: William Wu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions