mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 02:30:34 +02:00 
			
		
		
		
	drm/omap: DMM: Print information if we received an error interrupt
To help diagnose DMM errors, print out information if any of the error bits are set in the interrupt status register. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
This commit is contained in:
		
							parent
							
								
									d312fe2ef5
								
							
						
					
					
						commit
						b8c456d31b
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -166,6 +166,11 @@ static irqreturn_t omap_dmm_irq_handler(int irq, void *arg)
 | 
			
		|||
	dmm_write(dmm, status, DMM_PAT_IRQSTATUS);
 | 
			
		||||
 | 
			
		||||
	for (i = 0; i < dmm->num_engines; i++) {
 | 
			
		||||
		if (status & DMM_IRQSTAT_ERR_MASK)
 | 
			
		||||
			dev_err(dmm->dev,
 | 
			
		||||
				"irq error(engine%d): IRQSTAT 0x%02x\n",
 | 
			
		||||
				i, status & 0xff);
 | 
			
		||||
 | 
			
		||||
		if (status & DMM_IRQSTAT_LST) {
 | 
			
		||||
			if (dmm->engines[i].async)
 | 
			
		||||
				release_engine(&dmm->engines[i]);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue