public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC] disabling RTC irq during release
@ 2007-07-04 17:07 Rodolfo Giometti
  2007-07-10 18:29 ` David Brownell
  0 siblings, 1 reply; 2+ messages in thread
From: Rodolfo Giometti @ 2007-07-04 17:07 UTC (permalink / raw)
  To: linux-kernel

Hello,

Looking at other rtc drivers I noticed that during the release()
method we should disable IRQs as follow:

static void ds1307_release(struct device *dev)
{
        struct ds1307   *ds1307 = dev_get_drvdata(dev);

        if (ds1307->irq >= 0) {
                ds1307->irqen = 0;
                ds1307_update_alarm(ds1307);
        }
}

that's the code I put into my patch for ds1339.

But if I wish using RTC IRQ line to turn also the board ON, not just
to put to sleep it, I should leave the IRQ line on!

I think we should add a configuration option who allows developers to
choose if the RTC IRQ line should be disabled or not during release().

Ciao,

Rodolfo

-- 

GNU/Linux Solutions                  e-mail:    giometti@enneenne.com
Linux Device Driver                             giometti@gnudd.com
Embedded Systems                     		giometti@linux.it
UNIX programming                     phone:     +39 349 2432127

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-07-10 18:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-04 17:07 [RFC] disabling RTC irq during release Rodolfo Giometti
2007-07-10 18:29 ` David Brownell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox