aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorErwan Le Ray <[email protected]>2021-03-04 17:22:56 +0100
committerGreg Kroah-Hartman <[email protected]>2021-03-10 09:34:10 +0100
commit87fd0741d6dcf63ebdb14050c2b921ae14c7f307 (patch)
tree8da5b9edfc88900191ba9467610f9031ff25a697 /tools/perf/scripts/python
parent71b25f4df9849799d84d9345c636aac097316052 (diff)
serial: stm32: fix probe and remove order for dma
The probe and remove orders are wrong as the uart_port is registered before saving device data in the probe, and unregistered after DMA resource deallocation in the remove. uart_port registering should be done at the end of probe and unregistering should be done at the begin of remove to avoid resource allocation issues. Fix probe and remove orders. This enforce resource allocation occur at proper time. Terminate both DMA rx and tx transfers before removing device. Move pm_runtime after uart_remove_one_port() call in remove() to keep the probe error path. Fixes: 3489187204eb ("serial: stm32: adding dma support") Signed-off-by: Erwan Le Ray <[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