platform/x86: wmi: Do not instantiate older WMI drivers multiple timesMany older WMI drivers cannot be instantiated multiple times fortwo reasons:- they are using the legacy GUID-based WMI API-
platform/x86: wmi: Do not instantiate older WMI drivers multiple timesMany older WMI drivers cannot be instantiated multiple times fortwo reasons:- they are using the legacy GUID-based WMI API- they are singletons (with global state)Prevent such WMI drivers from binding to WMI devices with a duplicatedGUID, as this would mean that the WMI driver will be instantiated atleast two times (one for the original GUID and one for the duplicatedGUID).WMI drivers which can be instantiated multiple times can signal thisby setting a flag inside struct wmi_driver.Tested on a ASUS Prime B650-Plus.Signed-off-by: Armin Wolf <W_Armin@gmx.de>Link: https://lore.kernel.org/r/20240226193557.2888-2-W_Armin@gmx.deReviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
show more ...
platform/x86: intel-wmi-sbl-fw-update: Fix function name in error messageSince when the driver was converted to use the bus-based WMIinterface, the old GUID-based WMI functions are not used anymor
platform/x86: intel-wmi-sbl-fw-update: Fix function name in error messageSince when the driver was converted to use the bus-based WMIinterface, the old GUID-based WMI functions are not used anymore.Update the error message to avoid confusing users.Compile-tested only.Fixes: 75c487fcb69c ("platform/x86: intel-wmi-sbl-fw-update: Use bus-based WMI interface")Signed-off-by: Armin Wolf <W_Armin@gmx.de>Acked-by: Randy Dunlap <rdunlap@infradead.org>Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>Link: https://lore.kernel.org/r/20240106224126.13803-1-W_Armin@gmx.deReviewed-by: Hans de Goede <hdegoede@redhat.com>Signed-off-by: Hans de Goede <hdegoede@redhat.com>
platform/x86/intel/wmi: thunderbolt: Use bus-based WMI interfaceCurrently, the driver still uses the legacy GUID-based interfaceto invoke WMI methods. Use the modern bus-based interface instead.
platform/x86/intel/wmi: thunderbolt: Use bus-based WMI interfaceCurrently, the driver still uses the legacy GUID-based interfaceto invoke WMI methods. Use the modern bus-based interface instead.Tested on a Lenovo E51-80.Signed-off-by: Armin Wolf <W_Armin@gmx.de>Link: https://lore.kernel.org/r/20231103182526.3524-4-W_Armin@gmx.deReviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>Reviewed-by: Hans de Goede <hdegoede@redhat.com>Signed-off-by: Hans de Goede <hdegoede@redhat.com>
platform/x86: intel-wmi-sbl-fw-update: Use bus-based WMI interfaceCurrently, the driver was still using the deprecated GUID-basedinterface to query/set data blocks. Use the modern bus-basedinterf
platform/x86: intel-wmi-sbl-fw-update: Use bus-based WMI interfaceCurrently, the driver was still using the deprecated GUID-basedinterface to query/set data blocks. Use the modern bus-basedinterface for this.Tested with a custom SSDT from the Intel Slim Bootloader project.Reviewed-by: Jithu Joseph <jithu.joseph@intel.com>Signed-off-by: Armin Wolf <W_Armin@gmx.de>Link: https://lore.kernel.org/r/20231103182526.3524-3-W_Armin@gmx.deReviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>Reviewed-by: Hans de Goede <hdegoede@redhat.com>Signed-off-by: Hans de Goede <hdegoede@redhat.com>
platform/x86/intel/wmi: thunderbolt: Use dev_groups callbackUse .dev_groups callback instead of manual sysfs registration.Remove .probe and .remove callbacks as they become dummy afterusing .dev_
platform/x86/intel/wmi: thunderbolt: Use dev_groups callbackUse .dev_groups callback instead of manual sysfs registration.Remove .probe and .remove callbacks as they become dummy afterusing .dev_groups.Signed-off-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>Link: https://lore.kernel.org/r/20220927135612.1602491-1-Shyam-sundar.S-k@amd.comReviewed-by: Hans de Goede <hdegoede@redhat.com>Signed-off-by: Hans de Goede <hdegoede@redhat.com>
platform/x86: intel-wmi-thunderbolt: Move to intel sub-directoryMove Intel WMI Thunderbolt driver to intel sub-directoryto improve readability.Signed-off-by: Kate Hsuan <hpa@redhat.com>Reviewed
platform/x86: intel-wmi-thunderbolt: Move to intel sub-directoryMove Intel WMI Thunderbolt driver to intel sub-directoryto improve readability.Signed-off-by: Kate Hsuan <hpa@redhat.com>Reviewed-by: Hans de Goede <hdegoede@redhat.com>Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>Link: https://lore.kernel.org/r/20210820110458.73018-21-andriy.shevchenko@linux.intel.comSigned-off-by: Hans de Goede <hdegoede@redhat.com>
platform/x86: intel-wmi-sbl-fw-update: Move to intel sub-directoryMove Intel WMI Slim Bootloader FW update driver to intel sub-directoryto improve readability.Signed-off-by: Kate Hsuan <hpa@redh
platform/x86: intel-wmi-sbl-fw-update: Move to intel sub-directoryMove Intel WMI Slim Bootloader FW update driver to intel sub-directoryto improve readability.Signed-off-by: Kate Hsuan <hpa@redhat.com>Reviewed-by: Hans de Goede <hdegoede@redhat.com>Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>Link: https://lore.kernel.org/r/20210820110458.73018-20-andriy.shevchenko@linux.intel.comSigned-off-by: Hans de Goede <hdegoede@redhat.com>