mirror of https://github.com/OpenIPC/firmware.git
				
				
				
			
		
			
				
	
	
		
			14 lines
		
	
	
		
			485 B
		
	
	
	
		
			Diff
		
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			485 B
		
	
	
	
		
			Diff
		
	
	
| --- linux-4.9.37/drivers/clocksource/timer-sp804.c	2017-07-12 16:42:41.000000000 +0300
 | |
| +++ linux-4.9.y/drivers/clocksource/timer-sp804.c	2021-06-07 13:01:33.000000000 +0300
 | |
| @@ -235,6 +235,10 @@
 | |
|  	writel(0, base + TIMER_CTRL);
 | |
|  	writel(0, base + TIMER_2_BASE + TIMER_CTRL);
 | |
|  
 | |
| +	/* Ensure timer interrupts are clear */
 | |
| +	writel(1, base + TIMER_INTCLR);
 | |
| +	writel(1, base + TIMER_2_BASE + TIMER_INTCLR);
 | |
| +
 | |
|  	if (initialized || !of_device_is_available(np)) {
 | |
|  		ret = -EINVAL;
 | |
|  		goto err;
 |