Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 308997
b: refs/heads/master
c: ac2dee5
h: refs/heads/master
i:
  308995: 89e5dc4
v: v3
  • Loading branch information
Rajkumar Kasirajan authored and Linus Torvalds committed May 29, 2012
1 parent 7e4e04e commit c8cd9db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e862e7c4ee52c2d1a0af37a8c3a2bda079042b06
refs/heads/master: ac2dee5984bc78c8ff1893142f7322320d2baf05
14 changes: 3 additions & 11 deletions trunk/drivers/rtc/rtc-pl031.c
Original file line number Diff line number Diff line change
Expand Up @@ -220,17 +220,9 @@ static irqreturn_t pl031_interrupt(int irq, void *dev_id)
unsigned long events = 0;

rtcmis = readl(ldata->base + RTC_MIS);
if (rtcmis) {
writel(rtcmis, ldata->base + RTC_ICR);

if (rtcmis & RTC_BIT_AI)
events |= (RTC_AF | RTC_IRQF);

/* Timer interrupt is only available in ST variants */
if ((rtcmis & RTC_BIT_PI) &&
(ldata->hw_designer == AMBA_VENDOR_ST))
events |= (RTC_PF | RTC_IRQF);

if (rtcmis & RTC_BIT_AI) {
writel(RTC_BIT_AI, ldata->base + RTC_ICR);
events |= (RTC_AF | RTC_IRQF);
rtc_update_irq(ldata->rtc, 1, events);

return IRQ_HANDLED;
Expand Down

0 comments on commit c8cd9db

Please sign in to comment.