mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 02:30:34 +02:00 
			
		
		
		
	mmc: meson-gx: ack only raised irq
This is merely a clean up. It makes sense to only ack raised irqs instead of acking everything all the time. Signed-off-by: Jerome Brunet <jbrunet@baylibre.com> Acked-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> Reviewed-by: Kevin Hilman <khilman@baylibre.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
This commit is contained in:
		
							parent
							
								
									98849da63f
								
							
						
					
					
						commit
						9c5fdb07a2
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -1082,9 +1082,6 @@ static irqreturn_t meson_mmc_irq(int irq, void *dev_id)
 | 
			
		|||
	}
 | 
			
		||||
 | 
			
		||||
out:
 | 
			
		||||
	/* ack all enabled interrupts */
 | 
			
		||||
	writel(irq_en, host->regs + SD_EMMC_STATUS);
 | 
			
		||||
 | 
			
		||||
	if (cmd->error) {
 | 
			
		||||
		/* Stop desc in case of errors */
 | 
			
		||||
		u32 start = readl(host->regs + SD_EMMC_START);
 | 
			
		||||
| 
						 | 
				
			
			@ -1096,6 +1093,9 @@ static irqreturn_t meson_mmc_irq(int irq, void *dev_id)
 | 
			
		|||
	if (ret == IRQ_HANDLED)
 | 
			
		||||
		meson_mmc_request_done(host->mmc, cmd->mrq);
 | 
			
		||||
 | 
			
		||||
	/* ack all raised interrupts */
 | 
			
		||||
	writel(status, host->regs + SD_EMMC_STATUS);
 | 
			
		||||
 | 
			
		||||
	return ret;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue