Re: RTC_DRV_CMOS can break userspace interface

From: Tino Keitel
Date: Tue Jun 12 2007 - 14:17:45 EST


On Mon, Jun 04, 2007 at 13:14:58 +0100, Matthew Garrett wrote:
> On Mon, Jun 04, 2007 at 11:35:18AM +0200, Tino Keitel wrote:
>
> (By the way, it helps if you Cc: me - it's easy to lose track of
> things
> in the LKML noise)
>
> > Here it is:
> >
> > state = active
> > io 0x70-0x77
> > options
>
> Yes, there's no IRQ listed. Can you try current git?

OK, it works with git 99f9f3d49cbc7d944476f6fde53a77ec789ab2aa
(something after -rc4). I can echo something into
/sys/class/rtc/rtc0/wakealarm and the machine will wake up from suspend
to RAM.

However, a minor glitch remains:

$ echo 1181672013 > /sys/class/rtc/rtc0/wakealarm

- suspend

- wait for wakeup

After wakeup:

$ cat /sys/class/rtc/rtc0/wakealarm
2051656909

Regards,
Tino
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/