ACPI / osi: Add acpi_osi=!! to allow reverting acpi_osi=!
authorLv Zheng <lv.zheng@intel.com>
Tue, 3 May 2016 08:48:32 +0000 (16:48 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 4 May 2016 22:13:52 +0000 (00:13 +0200)
This patch introduces acpi_osi=!! so that quirks may use it to revert
acpi_osi=!.

Tested-by: Lukas Wunner <lukas@wunner.de>
Tested-by: Chen Yu <yu.c.chen@intel.com>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Documentation/kernel-parameters.txt
drivers/acpi/osl.c

index 0b3de80ec8f69c1aef9dfaa59fb86c14395ba43e..c48f387109e8f06884c5782e80cbc7e7e55b2e47 100644 (file)
@@ -312,6 +312,8 @@ bytes respectively. Such letter suffixes can also be entirely omitted.
                        acpi_osi=!*             # remove all strings
                        acpi_osi=!              # disable all built-in OS vendor
                                                  strings
+                       acpi_osi=!!             # enable all built-in OS vendor
+                                                 strings
                        acpi_osi=               # disable all strings
 
                        'acpi_osi=!' can be used in combination with single or
index 9f59dd1a0af78303e0d7237cb15b1f9ca5502247..f801b59f2a94085640ec1c2969c721ed1cc785bf 100644 (file)
@@ -1763,6 +1763,9 @@ void __init acpi_osi_setup(char *str)
                                osi->enable = false;
                        }
                        return;
+               } else if (*str == '!') {
+                       osi_config.default_disabling = 0;
+                       return;
                }
                enable = false;
        }