]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ACPI: Add CMOS RTC Operation Region handler support
authorlan,Tianyu <tianyu.lan@intel.com>
Wed, 5 Jun 2013 02:27:50 +0000 (02:27 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 5 Jun 2013 10:54:59 +0000 (12:54 +0200)
commit108ff1ee2e7ae3b0c792c25725960c1be85870ff
tree9370acffc35f7eae640a0637931db304a621a1bc
parent75970c9e79502add58a51c1d6ffd9107f3977d81
ACPI: Add CMOS RTC Operation Region handler support

On HP Folio 13-2000, the BIOS defines a CMOS RTC Operation Region and
the EC's _REG methord accesses that region.  Thus an appropriate
address space handler must be registered for that region before the
EC driver is loaded.

Introduce a mechanism for adding CMOS RTC address space handlers.
Register an ACPI scan handler for CMOS RTC devices such that, when
a device of that kind is detected during an ACPI namespace scan, a
common CMOS RTC operation region address space handler will be
installed for it.

References: https://bugzilla.kernel.org/show_bug.cgi?id=54621
Reported-and-tested-by: Stefan Nagy <public@stefan-nagy.at>
Signed-off-by: Lan Tianyu <tianyu.lan@intel.com>
Cc: 3.9+ <stable@vger.kernel.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/Makefile
drivers/acpi/acpi_cmos_rtc.c [new file with mode: 0644]
drivers/acpi/internal.h
drivers/acpi/scan.c