From: Alexander Mezin Date: Tue, 11 Mar 2014 17:58:48 +0000 (+0700) Subject: ACPI / AC: recheck adapter status upon battery status changes X-Git-Tag: v3.15-rc1~151^2~8^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4eee4f03ce7aea1ef212bb5c27a8b54d73315996;p=pandora-kernel.git ACPI / AC: recheck adapter status upon battery status changes On HP Pavilion dv6-6179er there are no notifications when AC adapter is plugged/unplugged. However, when AC status is read (acpi_ac_get_state), and if AC status has changed, AML code triggers the notification. This patch solves the problem by re-reading AC adapter status upon ACPI_BATTERY_NOTIFY_STATUS notification. Signed-off-by: Alexander Mezin Acked-by: Lan Tianyu Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed