serial: 8250_dw: Fix runtime PM handling
authorPhil Edworthy <phil.edworthy@renesas.com>
Thu, 10 May 2018 14:13:56 +0000 (15:13 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 May 2018 11:51:12 +0000 (13:51 +0200)
commitd76c74387e1c978b6c5524a146ab0f3f72206f98
tree0ba84ba1402fbff1d606a082b546c8ae8dfca6ab
parent13dc04d0e5fdc25c8f713ad23fdce51cf2bf96ba
serial: 8250_dw: Fix runtime PM handling

When using kgdb, you get an abort when accessing the UART registers.
This is because the driver has already entered runtime PM and so turned
off the bus clock needed to access the registers.

To fix this, set the capability indicating Runtime PM is active while idle.

Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_dw.c