]> git.baikalelectronics.ru Git - kernel.git/commit
x86: register a platform RTC device if PNP doesn't describe it
authorBjorn Helgaas <bjorn.helgaas@hp.com>
Tue, 14 Oct 2008 23:01:03 +0000 (17:01 -0600)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 14 Oct 2008 23:30:14 +0000 (16:30 -0700)
commit3df013bbd321e512a4a0082c73bc34399a9a3e54
treed268b55fb9607f24e9433d900a260ca6d0bc1f7c
parent84576b61799b36ddb581959cdd0956d6b0d57f8b
x86: register a platform RTC device if PNP doesn't describe it

Most if not all x86 platforms have an RTC device, but sometimes the RTC
is not exposed as a PNP0b00/PNP0b01/PNP0b02 device in PNPBIOS or ACPI:

    http://bugzilla.kernel.org/show_bug.cgi?id=11580
    https://bugzilla.redhat.com/show_bug.cgi?id=451188

It's best if we can discover the RTC via PNP because then we know
which flavor of device it is, where it lives, and which IRQ it uses.

But if we can't, we should register a platform device using the
compiled-in RTC_PORT/RTC_IRQ resource assumptions.

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Acked-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: David Brownell <dbrownell@users.sourceforge.net>
Reported-by: Rik Theys <rik.theys@esat.kuleuven.be>
Reported-by: shr_msn@yahoo.com.tw
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/x86/kernel/rtc.c