]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ACPI / ACPICA: Fix GPE initialization
authorRafael J. Wysocki <rjw@sisk.pl>
Tue, 8 Jun 2010 08:50:20 +0000 (10:50 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 2 Aug 2010 17:30:21 +0000 (10:30 -0700)
commit02f7f4c9f46e9da6d0e7f8b380703eaa7a59bebc
tree8c73b77096252762feca98a0c2e75812f4bd4a6e
parent454981bb0d10548f35d006090a7b4419cdf74c50
ACPI / ACPICA: Fix GPE initialization

commit ce43ace02320a3fb9614ddb27edc3a8700d68b26 upstream.

While developing the GPE reference counting code we overlooked the
fact that acpi_ev_update_gpes() could have enabled GPEs before
acpi_ev_initialize_gpe_block() was called.  As a result, some GPEs
are enabled twice during the initialization.

To fix this issue avoid calling acpi_enable_gpe() from
acpi_ev_initialize_gpe_block() for the GPEs that have nonzero
runtime reference counters.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/acpica/evgpeblk.c