Commit c51bb8dd authored by Jorge Ramirez-Ortiz's avatar Jorge Ramirez-Ortiz Committed by Zhihong Yu
Browse files

FROMLIST: tty: serial: msm_serial: Fix XON/XOFF

When the tty layer requests the uart to throttle, the current code
executing in msm_serial will trigger "Bad mode in Error Handler" and
generate an invalid stack frame in pstore before rebooting (that is if
pstore is indeed configured: otherwise the user shall just notice a
reboot with no further information dumped to the console).

This patch replaces the PIO byte accessor with the word accessor
already used in PIO mode.

Fixes: 68252424 ("tty: serial: msm: Support big-endian CPUs")
Cc: stable@vger.kernel.org

(am from https://patchwork.kernel.org/patch/10952209/

)

BUG=b:132147953
TEST=Flood console or input more than 8Kb data

Signed-off-by: default avatarJorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>
Reviewed-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: default avatarBikshapathi Kothapeta <bkotha@codeaurora.org>
Change-Id: If50b8833eddc0c4ce4b4c456e2a1ec1a42d32281
Signed-off-by: default avatarPraveen Koya <pkoya@codeaurora.org>
Signed-off-by: default avatarVamsi Singamsetty <vamssi@codeaurora.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/1631080


Reviewed-by: default avatarJulan Hsu <julanhsu@google.com>
Reviewed-by: default avatarSean Paul <seanpaul@chromium.org>
Tested-by: default avatarJulan Hsu <julanhsu@google.com>
Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org>
parent 518c9103
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment