tty: serial: uartlite: Add runtime pm support
authorShubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
Tue, 13 Jul 2021 06:48:35 +0000 (12:18 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Jul 2021 10:46:52 +0000 (12:46 +0200)
commit5bbe10a6942d668a63bfcb69c8ffdd0660db10f5
treedb9ffd979f1191d80aa19fc0d331d28c35070cfa
parented623dffdeebcc0acac7be6af4a301ee7169cd21
tty: serial: uartlite: Add runtime pm support

In the commit 07e5d4ff125a ("Revert serial-uartlite: Add runtime
support") the runtime pm support was reverted to aid reverting of
the other patches.

This patch adds the runtime PM support back.
The runtime pm calls are used to gate and enable the clocks.

Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
Link: https://lore.kernel.org/r/20210713064835.27978-3-shubhrajyoti.datta@xilinx.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/uartlite.c