summaryrefslogtreecommitdiff
path: root/drivers/hwmon/i5500_temp.c
diff options
context:
space:
mode:
authorLoic Poulain <loic.poulain@linaro.org>2020-01-10 11:58:04 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-01-14 16:07:51 +0300
commit76460fbd845b2b55d6fdb651b9dac4ef8122038b (patch)
treee143eec63e5cbe5e945d4f9dc18c85c6b2abcbf8 /drivers/hwmon/i5500_temp.c
parentdc56ecb81a0aa46a7e127e916df5c8fdb8364f0b (diff)
downloadlinux-76460fbd845b2b55d6fdb651b9dac4ef8122038b.tar.xz
tty: serial: msm_serial: RX SW/FIFO mode fallback
During db410c stress test and when the system is low on memory, the UART/console becomes unresponsive and never recover back. This has been narrowed down to the msm_start_rx_dma which does not manage error cases correctly (e.g. dma mapping failure), indeed, when an error happens, dma transfer is simply discarded and so never completed, leading to unconfigured RX path. This patch fixes this issue by switching to SW/FIFO mode in case of DMA issue. This mainly consists in resetting the receiver to apply RX BAM/DMA disabling change and re-enabling the RX level and stale interrupts (previously disabled for DMA transfers). The DMA will be re-enabled once memory is available since the SW/FIFO read function (msm_handle_rx_dm) retries to start dma on completion. Signed-off-by: Loic Poulain <loic.poulain@linaro.org> Link: https://lore.kernel.org/r/1578646684-17379-1-git-send-email-loic.poulain@linaro.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/hwmon/i5500_temp.c')
0 files changed, 0 insertions, 0 deletions