android_kernel_xiaomi_sm8350/drivers/acpi
Linus Torvalds 1efd325fba Fix RTC wakealarm sysfs interface breakage.
Commit ed458df4d2 ("PnP: move
pnpacpi/pnpbios_init to after PCI init") moved the PnP RTC discovery
later, and now the ACPI RTC glue code doesn't find it any more, breaking
the RTC wakealarm sysfs interfaces, as reported by Rafael.

This really is fairly messy, and we have several annoying ordering
constraints here - the PnP code that sets up the RTC resources wants to
run after the PCI resources have to be registered, which in turn needs
to run after ACPI has at least enumerated the root PCI buses etc.  Our
initcall ordering is not fine-grained enough to make this all painless.

So this moves the ACPI RTC glue ("acpi_rtc_init()") down to a regular
module call, which fixes the problem Rafael has.  The reason this isn't
wonderful is that we really should do acpi_rtc_init before we do the
rtc_cmos init, and now those two are in the same module_init() section.

Which happens to work, but only because drivers/rtc is linked after
drivers/acpi.  In other words, we still have a very subtle ordering
issue here. Grr.

Reported-and-tested-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: David Brownell <david-b@pacbell.net>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-10-12 11:30:08 -07:00
..
dispatcher ACPI: Change package length error to warning 2008-08-18 04:14:59 +02:00
events ACPI: Enhance /sys/firmware/interrupts to allow enable/disable/clear from user-space 2008-07-16 23:27:04 +02:00
executer ACPICA: Fix possible memory leak in Unload() operator 2008-08-15 02:11:59 +02:00
hardware ACPI: Enhance /sys/firmware/interrupts to allow enable/disable/clear from user-space 2008-07-16 23:27:04 +02:00
namespace ACPICA: Additional error checking for pathname utilities 2008-08-15 02:12:16 +02:00
parser ACPICA: Eliminate acpi_native_uint type v2 2008-07-16 23:27:03 +02:00
resources ACPICA: Additional error checking for pathname utilities 2008-08-15 02:12:16 +02:00
sleep ACPI: Make /proc/acpi/wakeup interface handle PCI devices (again) 2008-10-03 18:22:19 -07:00
tables Revert "Fix FADT parsing" 2008-07-18 01:42:20 +02:00
utilities ACPICA: Additional error checking for pathname utilities 2008-08-15 02:12:16 +02:00
ac.c
acpi_memhotplug.c
asus_acpi.c Remove newline from the description of module parameters 2008-08-01 12:46:41 -07:00
battery.c
bay.c APCI: revert duplicated patch 2008-07-20 17:14:57 -07:00
blacklist.c
bus.c Merge branch 'linux-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci-2.6 2008-07-16 17:25:46 -07:00
button.c
cm_sbs.c
container.c
debug.c
dock.c ACPI: Properly clear flags on false-positives and send uevent on sudden unplug 2008-08-15 03:02:42 +02:00
ec.c ACPI: Avoid bogus EC timeout when EC is in Polling mode 2008-08-15 03:13:06 +02:00
event.c
fan.c driver core: fix a lot of printk usages of bus_id 2008-07-21 21:54:53 -07:00
glue.c Fix RTC wakealarm sysfs interface breakage. 2008-10-12 11:30:08 -07:00
Kconfig toshiba_acpi: Add support for bluetooth toggling through rfkill (v8) 2008-09-05 16:17:45 -04:00
Makefile Merge branch 'linux-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci-2.6 2008-07-16 17:25:46 -07:00
numa.c ACPICA: Update DMAR and SRAT table definitions 2008-07-16 23:27:04 +02:00
osl.c
pci_bind.c
pci_irq.c ACPI: use dev_printk when possible 2008-07-16 23:27:07 +02:00
pci_link.c ACPI: bounds check IRQ to prevent memory corruption 2008-08-15 03:17:07 +02:00
pci_root.c
pci_slot.c PCI: fix bogus "'device' may be used uninitialized" warning in pci_slot 2008-07-28 15:06:00 -07:00
power.c ACPI: Introduce new device wakeup flag 'prepared' 2008-07-07 16:26:14 -07:00
processor_core.c Merge branch 'compal-fix' into release-2.6.27 2008-08-21 08:44:21 +02:00
processor_idle.c acpi: trivial cleanups 2008-08-15 02:29:06 +02:00
processor_perflib.c ACPI: Fix now signed module parameter. 2008-08-18 08:38:36 +02:00
processor_thermal.c
processor_throttling.c cpumask: change cpumask_of_cpu_ptr to use new cpumask_of_cpu 2008-07-26 16:40:33 +02:00
reboot.c Add the ability to reset the machine using the RESET_REG in ACPI's FADT table. 2008-07-16 23:27:08 +02:00
sbs.c
sbshc.c ACPI: Avoid bogus timeout about SMbus check 2008-09-04 14:32:28 +02:00
sbshc.h
scan.c driver core: fix a lot of printk usages of bus_id 2008-07-21 21:54:53 -07:00
system.c move memory_read_from_buffer() from fs.h to string.h 2008-07-24 10:47:13 -07:00
tables.c acpi: add checking for NULL early param 2008-08-21 08:45:39 +02:00
thermal.c Merge branch 'release-2.6.27' of git://git.kernel.org/pub/scm/linux/kernel/git/ak/linux-acpi-2.6 2008-07-24 13:57:37 -07:00
toshiba_acpi.c toshiba_acpi: Add support for bluetooth toggling through rfkill (v8) 2008-09-05 16:17:45 -04:00
utils.c
video.c Merge branch 'release-2.6.27' of git://git.kernel.org/pub/scm/linux/kernel/git/ak/linux-acpi-2.6 2008-07-24 13:57:37 -07:00
wmi.c ACPI: WMI: Set instance for query block calls 2008-08-15 02:25:01 +02:00