diff options
author | norly <ny-git@enpas.org> | 2022-05-03 02:54:31 +0200 |
---|---|---|
committer | norly <ny-git@enpas.org> | 2022-05-03 02:54:31 +0200 |
commit | 22b7d14dd4023cde7d806dd596868fd2cb902e7f (patch) | |
tree | e2f7f6c977c47047055ff463ed1f8040be955cb6 /module | |
parent | a0388f7e970824a2a5573b40fb4ed42b018af9bf (diff) |
Clear TTY_DO_WRITE_WAKEUP bit on uart_side_failure
Diffstat (limited to 'module')
-rw-r--r-- | module/elmcan.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/module/elmcan.c b/module/elmcan.c index 7707c4d..c5723de 100644 --- 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; |