summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorErwan Le Ray <erwan.leray@foss.st.com>2021-03-04 17:22:56 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-03-10 09:34:10 +0100
commit87fd0741d6dcf63ebdb14050c2b921ae14c7f307 (patch)
tree8da5b9edfc88900191ba9467610f9031ff25a697 /tools/perf/scripts/python/event_analyzing_sample.py
parent71b25f4df9849799d84d9345c636aac097316052 (diff)
downloadlinux-87fd0741d6dcf63ebdb14050c2b921ae14c7f307.tar.gz
linux-87fd0741d6dcf63ebdb14050c2b921ae14c7f307.zip
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 <erwan.leray@foss.st.com> Link: https://lore.kernel.org/r/20210304162308.8984-2-erwan.leray@foss.st.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions