diff options
author | Fabrice Gasnier <fabrice.gasnier@st.com> | 2019-11-21 11:10:49 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-11-21 20:23:02 +0300 |
commit | 1250ed7114a977cdc2a67a0c09d6cdda63970eb9 (patch) | |
tree | 950263eafe94a141182a8693e6c7537d92467cfa /drivers/tty/tty_io.c | |
parent | da88ac0bd683c13a80b2e55939f2465a25d7cdd4 (diff) | |
download | linux-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