diff options
| author | Praveen Talari <praveen.talari@oss.qualcomm.com> | 2026-07-15 09:55:14 +0530 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-07-17 13:02:19 +0200 |
| commit | dbe2afb952bdb782450d8f678adeb502791e7edd (patch) | |
| tree | 4eec3bb8c6f059c3dd195bb6448e652a7f3c9f6d /include | |
| parent | 6e5bd7cc3a2f304a66d294011647d82074421979 (diff) | |
| download | linux-dbe2afb952bdb782450d8f678adeb502791e7edd.tar.gz linux-dbe2afb952bdb782450d8f678adeb502791e7edd.zip | |
serial: qcom_geni: Add shutdown callback to quiesce hardware on reboot
During system reboot, an active UART DMA transfer can leave the GENI
Serial Engine in an indeterminate state. On VM-based platforms, if a
DMA transfer is in progress when the VM is shut down, the SMMU can
raise context faults as the DMA engine continues to access IOVAs that
have already been invalidated during VM teardown.
Add a shutdown callback to stop TX and RX and bring the hardware to
idle before the system resets, preventing both hardware state corruption
on reboot and SMMU faults during VM shutdown. The port lock is not taken
here since shutdown runs from process context with the device already
quiesced from the UART core's perspective; instead, the runtime PM status
is checked so that TX/RX are only stopped while clocks and resources are
still active, avoiding any register access once the device is runtime
suspended.
Signed-off-by: Praveen Talari <praveen.talari@oss.qualcomm.com>
Link: https://patch.msgid.link/20260715-add_shutdown_and_panic_notifier_serial-v1-1-23e3787c7109@oss.qualcomm.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
