Re: [patch] provide rtc_cmos platform device

From: Andrew Morton
Date: Wed May 21 2008 - 18:34:20 EST

On Tue, 20 May 2008 22:25:56 +0400
Stas Sergeev <stsp@xxxxxxxx> wrote:

> Hello.
> Recently (around 2.6.25) I've noticed
> that RTC no longer works for me.

So it's a regression.

> It turned out this is because I use
> pnpacpi=off kernel option to work
> around the parport_pc bugs.
> I always did so, but RTC used to work
> fine in the past, and now it have
> regressed.

Albeit a fairly obscure one. I tagged the patch for backporting, let
those guys decide ;)

> The attached patch fixes the problem
> by creating the platform device for
> the RTC when PNP is disabled.
> This may also help running the
> PNP-enabled kernel on an older PCs.
> Signed-off-by: Stas Sergeev <stsp@xxxxxxxx>

I suppose that on this basis:

arch/x86/kernel/rtc.c | 31 +++++++++++++++++++++++++++++++
drivers/rtc/rtc-cmos.c | 26 +++++++++-----------------
include/asm-x86/rtc.h | 4 ++++

it should be considered an x86 patch. I shall treat it as such.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at