mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-09-04 20:19:47 +08:00 
			
		
		
		
	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>
This commit is contained in:
		
							parent
							
								
									13dc04d0e5
								
							
						
					
					
						commit
						d76c74387e
					
				| @ -576,6 +576,10 @@ static int dw8250_probe(struct platform_device *pdev) | |||||||
| 	if (!data->skip_autocfg) | 	if (!data->skip_autocfg) | ||||||
| 		dw8250_setup_port(p); | 		dw8250_setup_port(p); | ||||||
| 
 | 
 | ||||||
|  | #ifdef CONFIG_PM | ||||||
|  | 	uart.capabilities |= UART_CAP_RPM; | ||||||
|  | #endif | ||||||
|  | 
 | ||||||
| 	/* If we have a valid fifosize, try hooking up DMA */ | 	/* If we have a valid fifosize, try hooking up DMA */ | ||||||
| 	if (p->fifosize) { | 	if (p->fifosize) { | ||||||
| 		data->dma.rxconf.src_maxburst = p->fifosize / 4; | 		data->dma.rxconf.src_maxburst = p->fifosize / 4; | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Phil Edworthy
						Phil Edworthy