aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorMichael Walle <[email protected]>2020-03-06 22:44:30 +0100
committerGreg Kroah-Hartman <[email protected]>2020-03-12 10:02:00 +0100
commit159381df1442f3c781ae3de05b5c6130fd4ee058 (patch)
tree50586532d8449f8eff6f2a3aa0d9ef807558f789 /tools/perf/scripts/python
parentd3394b3d51828d99d46bf38a1004517c0ff971a8 (diff)
tty: serial: fsl_lpuart: fix DMA operation when using IOMMU
The DMA channel might not be available at probe time. This is esp. the case if the DMA controller has an IOMMU mapping. There is also another caveat. If there is no DMA controller at all, dma_request_chan() will also return -EPROBE_DEFER. Thus we cannot test for -EPROBE_DEFER in probe(). Otherwise the lpuart driver will fail to probe if, for example, the DMA driver is not enabled in the kernel configuration. To workaround this, we request the DMA channel in _startup(). Other serial drivers do it the same way. Signed-off-by: Michael Walle <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions