From: Mark Brown <broonie@opensource.wolfsonmicro.com>
To: John Stultz <john.stultz@linaro.org>
Cc: MyungJoo Ham <myungjoo.ham@samsung.com>,
rtc-linux@googlegroups.com, linux-kernel@vger.kernel.org,
Alessandro Zummo <a.zummo@towertech.it>,
kyungmin.park@samsung.com, MyungJoo Ham <myungjoo.ham@gmail.com>
Subject: Re: [rtc-linux] Re: [PATCH v2] RTC: Selectively enable PIE-Hrtimer emulation.
Date: Fri, 25 Mar 2011 12:00:02 +0000 [thread overview]
Message-ID: <20110325120002.GB22502@sirena.org.uk> (raw)
In-Reply-To: <1301001498.848.160.camel@work-vm>
On Thu, Mar 24, 2011 at 02:18:18PM -0700, John Stultz wrote:
> On Thu, 2011-03-24 at 14:28 +0900, MyungJoo Ham wrote:
> > b. there could be multiple rtc devices in a system and we may need to
> > setup them anyway without any s/w interrupt handlers. (RTC PIEs
> > directly signalling some other H/W pieces?)
> Maybe I'm misunderstanding, but this sounds like an abuse of the RTC
> interface. If you're using the RTC interface to enable some sort of
> inter-hardware signaling, where the kernel itself wouldn't be handling
> the irq, you probably really want to use a different driver
> all-together. But again, I might just not understand what you're
> meaning.
This sort of thing is fairly common for embedded RTCs. Usually there's
no fixed connection, it's just that the RTC outputs a signal which can
be wired to anything the system integrator feels like. It does seem to
make sense for the RTC driver to export this functionality to the rest
of the world.
> The benefit here is that since the kernel manages all of this, it will
> then work on any RTC hardware that supports alarms, and doesn't need
> some hardware-specific PIE mode support. Even better, since the kernel
> can allow for multiplexing of events, userland can still set AIE mode
> alarms using the legacy interface without affecting your periodic
> rtc_timer.
This only works if you're not generating a hardware signal from the RTC
- if it's a hardware signal you may not be able to do it from software
at all. This may not be relevant for the particular application,
though.
prev parent reply other threads:[~2011-03-25 12:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-22 8:08 MyungJoo Ham
2011-03-22 19:44 ` John Stultz
2011-03-24 5:28 ` MyungJoo Ham
2011-03-24 21:18 ` John Stultz
2011-03-25 5:56 ` MyungJoo Ham
2011-03-25 12:00 ` Mark Brown [this message]
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=20110325120002.GB22502@sirena.org.uk \
--to=broonie@opensource.wolfsonmicro.com \
--cc=a.zummo@towertech.it \
--cc=john.stultz@linaro.org \
--cc=kyungmin.park@samsung.com \
--cc=linux-kernel@vger.kernel.org \
--cc=myungjoo.ham@gmail.com \
--cc=myungjoo.ham@samsung.com \
--cc=rtc-linux@googlegroups.com \
/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
all inboxes | Powered by JetHome®