projects
/
elmcan.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0388f7
)
Clear TTY_DO_WRITE_WAKEUP bit on uart_side_failure
author
norly
<ny-git@enpas.org>
Tue, 3 May 2022 00:54:31 +0000
(
02:54
+0200)
committer
norly
<ny-git@enpas.org>
Tue, 3 May 2022 00:54:31 +0000
(
02:54
+0200)
module/elmcan.c
patch
|
blob
|
history
diff --git
a/module/elmcan.c
b/module/elmcan.c
index 7707c4d4c04fdae1cfc8173e84b77cc2df46c84a..c5723dedb92ac6cf28f1ae9bfccc23c02fe09a36 100644
(file)
--- a/
module/elmcan.c
+++ b/
module/elmcan.c
@@
-303,6
+303,8
@@
static inline void elm327_uart_side_failure(struct elmcan *elm)
elm->uart_side_failure = true;
+ clear_bit(TTY_DO_WRITE_WAKEUP, &elm->tty->flags);
+
elm->can.can_stats.bus_off++;
netif_stop_queue(elm->dev);
elm->can.state = CAN_STATE_BUS_OFF;