https://bugzilla.kernel.org/show_bug.cgi?id=209711

--- Comment #18 from Kai-Heng Feng (kai.heng.f...@canonical.com) ---
Using this diff to do some test:
diff --git a/drivers/acpi/sysfs.c b/drivers/acpi/sysfs.c
index a5cc4f3bb..492259f2a 100644
--- a/drivers/acpi/sysfs.c
+++ b/drivers/acpi/sysfs.c
@@ -755,11 +755,13 @@ static ssize_t counter_set(struct kobject *kobj,
        if (result)
                goto end;

+       /*
        if (!(status & ACPI_EVENT_FLAG_HAS_HANDLER)) {
                printk(KERN_WARNING PREFIX
                       "Can not change Invalid GPE/Fixed Event status\n");
                return -EINVAL;
        }
+       */

        if (index < num_gpes) {
                if (!strcmp(buf, "disable\n") &&

When the issue happened:
gpe07:       0     STS invalid      unmasked
gpe08:       0         enabled      unmasked
gpe09:       0         enabled      unmasked

Clear gpe07:
# echo clear > gpe07
gpe07:       0         invalid      unmasked
gpe08:       0  EN     enabled      unmasked
gpe09:       0  EN     enabled      unmasked

Plug RJ45:
gpe07:       0     STS invalid      unmasked
gpe08:       0  EN     enabled      unmasked
gpe09:       0  EN     enabled      unmasked

Feels like the GPE shifted to GPE07?

-- 
You are receiving this mail because:
You are watching the assignee of the bug.

_______________________________________________
acpi-bugzilla mailing list
acpi-bugzilla@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/acpi-bugzilla

Reply via email to