public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
From: David Brownell <david-b@pacbell.net>
To: "Pakaravoor, Jagadeesh" <j-pakaravoor@ti.com>
Cc: "linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>
Subject: Re: [patch 2.6.27-rc5-omap1] rtc-twl4030 cleanup
Date: Fri, 5 Sep 2008 01:09:39 -0700	[thread overview]
Message-ID: <200809050109.39844.david-b@pacbell.net> (raw)
In-Reply-To: <EAF47CD23C76F840A9E7FCE10091EFAB027DF89BDB@dbde02.ent.ti.com>

On Friday 05 September 2008, Pakaravoor, Jagadeesh wrote:
> RTC generates an extra spurious interrupt for every actual periodic
> interrupt. This is due to a problem with the RTC_IT bit of
> REG_PWR_ISR1. It requires two writes or two reads (when COR is 
> enabled) to clear it. Since COR is enabled and one read of the same
> register is done already (inside twl4030-pwrirq.c do_twl4030_pwrirq()
> function), all we need is one more read.
> 
> Signed-off-by: Jagadeesh Bhaskar Pakaravoor <j-pakaravoor@ti.com>

Yes, that seems to make the 1/second update IRQs work right.
Thanks!

Were alarm IRQs having the same problem, just not as noticably?

The two other technical issues I know about with this driver
also relate to IRQs:

  - Is it really true that alarm and update IRQs are
    mutually exclusive?  Unusual if so ...

	+ if exclusive, then don't let both be enabled
	  at the same time (the way it now does)!

	+ else, update irq handler so the comment is
	  correct, and so the code stops assuming
	  it's alarm -or- update irqs ... it should
	  be possible to report *both* events at once.

  - Are there any reasons alarm IRQs wouldn't be able
    to wake the system from sleep states (STR etc)?

    If not, then need to update suspend() to leave
    the alarm active (yes?) and do various other stuff
    related to driver model wakeup flags; rtc-omap.c
    can be an example.  (Except for leaving update
    IRQs active...)

The wakeup stuff will let programs like rtcwake work,
and enable the /sys/class/rtc/rtc0/wakealarm file.
It's better to have that stuff work than not, even
if OMAP power management uses states like STR very
differently than most other Linuxes.

- Dave


  reply	other threads:[~2008-09-05  8:09 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-04 17:24 [patch 2.6.27-rc5-omap1] rtc-twl4030 cleanup David Brownell
2008-09-04 17:48 ` David Brownell
2008-09-05  7:24   ` Pakaravoor, Jagadeesh
2008-09-05  8:09     ` David Brownell [this message]
2008-09-05  9:27       ` Pakaravoor, Jagadeesh
2008-09-09 17:42 ` Tony Lindgren

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200809050109.39844.david-b@pacbell.net \
    --to=david-b@pacbell.net \
    --cc=j-pakaravoor@ti.com \
    --cc=linux-omap@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox