summaryrefslogtreecommitdiff
path: root/drivers/tty/tty_io.c
diff options
context:
space:
mode:
authorFabrice Gasnier <fabrice.gasnier@st.com>2019-11-21 11:10:49 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-11-21 20:23:02 +0300
commit1250ed7114a977cdc2a67a0c09d6cdda63970eb9 (patch)
tree950263eafe94a141182a8693e6c7537d92467cfa /drivers/tty/tty_io.c
parentda88ac0bd683c13a80b2e55939f2465a25d7cdd4 (diff)
downloadlinux-1250ed7114a977cdc2a67a0c09d6cdda63970eb9.tar.xz
serial: stm32: fix clearing interrupt error flags
The interrupt clear flag register is a "write 1 to clear" register. So, only writing ones allows to clear flags: - Replace buggy stm32_clr_bits() by a simple write to clear error flags - Replace useless read/modify/write stm32_set_bits() routine by a simple write to clear TC (transfer complete) flag. Fixes: 4f01d833fdcd ("serial: stm32: fix rx error handling") Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com> Cc: stable <stable@vger.kernel.org> Link: https://lore.kernel.org/r/1574323849-1909-1-git-send-email-fabrice.gasnier@st.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/tty_io.c')
0 files changed, 0 insertions, 0 deletions