]> git.baikalelectronics.ru Git - kernel.git/commit
ti-st: use worker instead of calling st_int_write in wake up
authorMuhammad Hamza Farooq <mfarooq@visteon.com>
Fri, 11 Sep 2015 14:42:38 +0000 (16:42 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Sep 2015 05:52:13 +0000 (22:52 -0700)
commit19897871263fae3ba9bf808f5784c06f87d25526
treeecaff7f9aebc82187b5613789b43c9c76d530420
parent03d79e24bfac6100a75e783f373c4a76cf6e7583
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>
drivers/misc/ti-st/st_core.c
include/linux/ti_wilink_st.h