]> git.baikalelectronics.ru Git - kernel.git/commit
serial: omap: make sure to put() on poll_get_char
authorFelipe Balbi <balbi@ti.com>
Thu, 6 Sep 2012 12:45:36 +0000 (15:45 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Sep 2012 16:17:02 +0000 (09:17 -0700)
commit7891b8c6d85c7ac54711d6566c9da23703a59cdb
tree0b37879e1146499c176571b53e4addd094e0ecce
parentcbe1d76ec3e403efce132cefb0f6addbd6b383f2
serial: omap: make sure to put() on poll_get_char

if we would reach serial_omap_get_char() while
Data Ready bit isn't set, we would return from
it without kicking our pm timer. This would mean
we would, eventually, have an unbalanced
pm_runtime_get on our device which would prevent
it from ever sleeping again.

Tested-by: Shubhrajyoti D <shubhrajyoti@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/omap-serial.c