Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Blackfin: dpmc: punt unnecessary RTC_ISTAT clearing

The RTC ISTAT bits do not affect wakeups, and the RTC driver already
takes care of clearing this MMR when necessary. So drop the useless
clearing in the core Blackfin power code.

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>

authored by

Michael Hennerich and committed by
Mike Frysinger
f619ddd4 39750324

-24
-24
arch/blackfin/mach-common/dpmc_modes.S
··· 17 17 18 18 call _set_sic_iwr; 19 19 20 - R0 = 0xFFFF (Z); 21 - call _set_rtc_istat; 22 - 23 20 P0.H = hi(PLL_CTL); 24 21 P0.L = lo(PLL_CTL); 25 22 R1 = W[P0](z); ··· 62 65 call _set_dram_srfs; 63 66 SSYNC; 64 67 65 - R0 = 0xFFFF (Z); 66 - call _set_rtc_istat; 67 - 68 68 P0.H = hi(VR_CTL); 69 69 P0.L = lo(VR_CTL); 70 70 ··· 89 95 call _set_sic_iwr; 90 96 call _set_dram_srfs; /* Set SDRAM Self Refresh */ 91 97 92 - /* Clear all the interrupts,bits sticky */ 93 - R0 = 0xFFFF (Z); 94 - call _set_rtc_istat; 95 98 P0.H = hi(PLL_DIV); 96 99 P0.L = lo(PLL_DIV); 97 100 R6 = W[P0](z); ··· 259 268 SSYNC; 260 269 RTS; 261 270 ENDPROC(_set_sic_iwr) 262 - 263 - ENTRY(_set_rtc_istat) 264 - #ifndef CONFIG_BF561 265 - P0.H = hi(RTC_ISTAT); 266 - P0.L = lo(RTC_ISTAT); 267 - w[P0] = R0.L; 268 - SSYNC; 269 - #elif (ANOMALY_05000371) 270 - nop; 271 - nop; 272 - nop; 273 - nop; 274 - #endif 275 - RTS; 276 - ENDPROC(_set_rtc_istat) 277 271 278 272 ENTRY(_test_pll_locked) 279 273 P0.H = hi(PLL_STAT);