msm: smd_tty: Introduce read available wakelock

The SMD TTY driver locks a wakelock only after reading data from
the SMD channel and is ready to be processed by the TTY framework.
This sometimes causes suspend to be triggered before the SMD TTY
driver reads the data from the SMD channel.

Introduce read available wakelock and lock the wakelock when there is
data available in the SMD channel.

Change-Id: I44dfcff016d9066be18524e4c5b57c544f28f972
Signed-off-by: Karthikeyan Ramasubramanian <kramasub@codeaurora.org>
1 file changed