diff options
| author | Geert Uytterhoeven <[email protected]> | 2019-01-07 17:23:19 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2019-01-08 16:56:52 +0100 |
| commit | 26f073993665683f1debf4d66d8bc274ac6df771 (patch) | |
| tree | 8cbd15adf833abe95d482de95a0ace3bf28265b7 /tools/perf/scripts | |
| parent | 38766e4b612ba10844afadf2fce12f8f90465c64 (diff) | |
serial: sh-sci: Fix fallback to PIO in sci_dma_rx_complete()
When submitting a DMA request fails in sci_dma_rx_complete(), the driver
tries to fall back to PIO, but that does not work: no more data will be
received, or the kernel will even crash.
Fix this similar as in (but not identical to) sci_submit_rx():
- On SCIF, PIO cannot take over if any DMA transactions are pending,
hence they must be terminated first.
- All active cookies must be invalidated, else rx_timer_fn() may
trigger a NULL pointer dereference.
- Restarting the port is not needed, as it is already running, but
serial port interrupts must be directed back from the DMA engine to
the CPU.
Signed-off-by: Geert Uytterhoeven <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts')
0 files changed, 0 insertions, 0 deletions