Re: RTC_DRV_CMOS can break userspace interface

From: David Brownell
Date: Sun May 27 2007 - 22:06:56 EST


On Sunday 27 May 2007, Matthew Garrett wrote:
> On Mon, May 28, 2007 at 12:39:11AM +0100, Matthew Garrett wrote:
>
> > but will disable /proc/acpi/wakeup. It'll also be impossible to load
> > CONFIG_RTC_CMOS because CONFIG_RTC has grabbed the io ports, so it's not
> > possible to use the new interface. This situation doesn't appear to be
> > documented, which is less than ideal...
>
> Actually, it seems to be worse than that - the PNP entry for my cmos
> clock doesn't appear to mention an irq, so the wakealarm entry doesn't
> work. I can happily wake it using the /proc/acpi/alarm interface.
>
> David, would you be happy with hardcoding the rtc-cmos IRQ to 8 on PCs
> if there's inadequate PNP information available?

That would seem to naturally belong in the PNP code, yes?

Agreed that it seems like it needs to be hardcoded somewhere.

- Dave
-
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/