Skip to content

Commit d76c743

Browse files
Phil Edworthygregkh
authored andcommitted
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 <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 13dc04d commit d76c743

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/tty/serial/8250/8250_dw.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -576,6 +576,10 @@ static int dw8250_probe(struct platform_device *pdev)
576576
if (!data->skip_autocfg)
577577
dw8250_setup_port(p);
578578

579+
#ifdef CONFIG_PM
580+
uart.capabilities |= UART_CAP_RPM;
581+
#endif
582+
579583
/* If we have a valid fifosize, try hooking up DMA */
580584
if (p->fifosize) {
581585
data->dma.rxconf.src_maxburst = p->fifosize / 4;

0 commit comments

Comments
 (0)