ACPI / battery: Add quirk for Asus UX360UA and UX410UAK

"Linux Kernel Mailing List" <[email protected]>
Newsgroups gmane.linux.kernel.commits.head
Message-ID <[email protected]>
Web:        https://git.kernel.org/torvalds/c/4446823e2573e97b26f0534ff8db9e9c4cb65840
Commit:     4446823e2573e97b26f0534ff8db9e9c4cb65840
Parent:     1a9a126b5098160ca934a352617e9e65dbfa679d
Refname:    refs/heads/master
Author:     Kai Heng Feng <[email protected]>
AuthorDate: Mon Jan 29 13:40:36 2018 +0800
Committer:  Rafael J. Wysocki <[email protected]>
CommitDate: Sun Feb 4 09:17:47 2018 +0100

    ACPI / battery: Add quirk for Asus UX360UA and UX410UAK
    
    Same issue as other Asus laptops, ACPI incorrectly reports discharging
    when battery is full and AC is plugged.
    
    Use the same battery quirk can workaround the issue.
    
    Link: https://bugs.launchpad.net/bugs/1661876
    Link: https://bugs.launchpad.net/bugs/1745032
    Signed-off-by: Kai-Heng Feng <[email protected]>
    Signed-off-by: Rafael J. Wysocki <[email protected]>
---
 drivers/acpi/battery.c | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/drivers/acpi/battery.c b/drivers/acpi/battery.c
index 19bc440820e6..7128488a3a72 100644
--- a/drivers/acpi/battery.c
+++ b/drivers/acpi/battery.c
@@ -1209,6 +1209,22 @@ static const struct dmi_system_id bat_dmi_table[] __initconst = {
 			DMI_MATCH(DMI_PRODUCT_NAME, "UX305LA"),
 		},
 	},
+	{
+		.callback = battery_full_discharging_quirk,
+		.ident = "ASUS UX360UA",
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
+			DMI_MATCH(DMI_PRODUCT_NAME, "UX360UA"),
+		},
+	},
+	{
+		.callback = battery_full_discharging_quirk,
+		.ident = "ASUS UX410UAK",
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
+			DMI_MATCH(DMI_PRODUCT_NAME, "UX410UAK"),
+		},
+	},
 	{},
 };
 
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.