ti-st: use worker instead of calling st_int_write in wake up
The wake up method is called with the port lock held. The st_int_write method calls port->ops->write with tries to acquire the lock again, causing CPU to wait infinitely. Right way to do is to write data to port in worker thread. Signed-off-by: Muhammad Hamza Farooq <mfarooq@visteon.com> Signed-off-by: Jacob Siverskog <jacob@teenage.engineering> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
f97ef75999
commit
b05b7c7cc0
@@ -158,6 +158,7 @@ struct st_data_s {
|
||||
unsigned long ll_state;
|
||||
void *kim_data;
|
||||
struct tty_struct *tty;
|
||||
struct work_struct work_write_wakeup;
|
||||
};
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user