mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
rtc: omap: fix interrupt disable at probe
Use writel instead of writeb when disabling interrupts at probe as ALARM2 is not cleared otherwise on some IP-block revisions (e.g. AM3352). Note that the driver currently never enables the ALARM2 interrupt. Signed-off-by: Johan Hovold <[email protected]> Cc: Alessandro Zummo <[email protected]> Cc: Tony Lindgren <[email protected]> Cc: Benot Cousson <[email protected]> Cc: Lokesh Vutla <[email protected]> Cc: Guenter Roeck <[email protected]> Cc: Sekhar Nori <[email protected]> Cc: Tero Kristo <[email protected]> Cc: Keerthy J <[email protected]> Tested-by: Felipe Balbi <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
7ecd9a3f06
commit
1ed8b5d26c
1 changed files with 5 additions and 3 deletions
|
|
@ -427,10 +427,12 @@ static int __init omap_rtc_probe(struct platform_device *pdev)
|
|||
}
|
||||
platform_set_drvdata(pdev, rtc);
|
||||
|
||||
/* clear pending irqs, and set 1/second periodic,
|
||||
* which we'll use instead of update irqs
|
||||
/*
|
||||
* disable interrupts
|
||||
*
|
||||
* NOTE: ALARM2 is not cleared on AM3352 if rtc_write (writeb) is used
|
||||
*/
|
||||
rtc_write(0, OMAP_RTC_INTERRUPTS_REG);
|
||||
rtc_writel(0, OMAP_RTC_INTERRUPTS_REG);
|
||||
|
||||
/* enable RTC functional clock */
|
||||
if (id_entry->driver_data & OMAP_RTC_HAS_32KCLK_EN) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue