diff options
author | Fabrice Gasnier <[email protected]> | 2019-11-21 09:10:49 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2019-11-21 18:23:02 +0100 |
commit | 1250ed7114a977cdc2a67a0c09d6cdda63970eb9 (patch) | |
tree | 950263eafe94a141182a8693e6c7537d92467cfa /tools/perf/scripts/python/export-to-postgresql.py | |
parent | da88ac0bd683c13a80b2e55939f2465a25d7cdd4 (diff) |
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 <[email protected]>
Cc: stable <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions