platform-drivers-x86 for v6.10-5
Highlights: - Fix regression in toshiba_acpi introduced in 6.10-rc1 The following is an automated git shortlog grouped by driver: toshiba_acpi: - Fix quickstart quirk handling -----BEGIN PGP SIGNATURE----- iQFIBAABCAAyFiEEuvA7XScYQRpenhd+kuxHeUQDJ9wFAmaGnVYUHGhkZWdvZWRl QHJlZGhhdC5jb20ACgkQkuxHeUQDJ9yPPQgAtkWNY+KUZZFNbt3wH0vcTABuutHd OatQ3H8icyGZz/vrcXf+mdYevAAcPCYwxbcjvzV3Z2p2kPVvh4Vl8SfRIb8KZ73P APluQsu4nWlA4FmnKUmYw5uVgCh+6apnvAmN2qGuxlFCXRrQ5EOEvet89C3oGN9e 0eCWvM2P/bLjh0QhPiJsEE/iw6Z7VppgJiKkz/z8r6xBOmTshPSme2u9izzsjrdG InZ3AW1rwbvb2sgsIPhgs3pxhbP7KrgeJ9whiXdXPnX8yXuljicEbMAyTmWxrZu7 Iret8s/P3XPXBEjpx2JKnTeLFnqy0h/J+9dpFF7x2YWaJjyQnNpVawo+Jg== =a7zY -----END PGP SIGNATURE----- Merge tag 'platform-drivers-x86-v6.10-5' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86 Pull x86 platform driver fix from Hans de Goede: - Fix regression in toshiba_acpi introduced in 6.10-rc1 * tag 'platform-drivers-x86-v6.10-5' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86: platform/x86: toshiba_acpi: Fix quickstart quirk handling
This commit is contained in:
commit
2d19be0952
@ -3271,7 +3271,7 @@ static const char *find_hci_method(acpi_handle handle)
|
||||
*/
|
||||
#define QUIRK_HCI_HOTKEY_QUICKSTART BIT(1)
|
||||
|
||||
static const struct dmi_system_id toshiba_dmi_quirks[] = {
|
||||
static const struct dmi_system_id toshiba_dmi_quirks[] __initconst = {
|
||||
{
|
||||
/* Toshiba Portégé R700 */
|
||||
/* https://bugzilla.kernel.org/show_bug.cgi?id=21012 */
|
||||
@ -3306,8 +3306,6 @@ static int toshiba_acpi_add(struct acpi_device *acpi_dev)
|
||||
struct toshiba_acpi_dev *dev;
|
||||
const char *hci_method;
|
||||
u32 dummy;
|
||||
const struct dmi_system_id *dmi_id;
|
||||
long quirks = 0;
|
||||
int ret = 0;
|
||||
|
||||
if (toshiba_acpi)
|
||||
@ -3460,16 +3458,6 @@ iio_error:
|
||||
}
|
||||
#endif
|
||||
|
||||
dmi_id = dmi_first_match(toshiba_dmi_quirks);
|
||||
if (dmi_id)
|
||||
quirks = (long)dmi_id->driver_data;
|
||||
|
||||
if (turn_on_panel_on_resume == -1)
|
||||
turn_on_panel_on_resume = !!(quirks & QUIRK_TURN_ON_PANEL_ON_RESUME);
|
||||
|
||||
if (hci_hotkey_quickstart == -1)
|
||||
hci_hotkey_quickstart = !!(quirks & QUIRK_HCI_HOTKEY_QUICKSTART);
|
||||
|
||||
toshiba_wwan_available(dev);
|
||||
if (dev->wwan_supported)
|
||||
toshiba_acpi_setup_wwan_rfkill(dev);
|
||||
@ -3618,10 +3606,27 @@ static struct acpi_driver toshiba_acpi_driver = {
|
||||
.drv.pm = &toshiba_acpi_pm,
|
||||
};
|
||||
|
||||
static void __init toshiba_dmi_init(void)
|
||||
{
|
||||
const struct dmi_system_id *dmi_id;
|
||||
long quirks = 0;
|
||||
|
||||
dmi_id = dmi_first_match(toshiba_dmi_quirks);
|
||||
if (dmi_id)
|
||||
quirks = (long)dmi_id->driver_data;
|
||||
|
||||
if (turn_on_panel_on_resume == -1)
|
||||
turn_on_panel_on_resume = !!(quirks & QUIRK_TURN_ON_PANEL_ON_RESUME);
|
||||
|
||||
if (hci_hotkey_quickstart == -1)
|
||||
hci_hotkey_quickstart = !!(quirks & QUIRK_HCI_HOTKEY_QUICKSTART);
|
||||
}
|
||||
|
||||
static int __init toshiba_acpi_init(void)
|
||||
{
|
||||
int ret;
|
||||
|
||||
toshiba_dmi_init();
|
||||
toshiba_proc_dir = proc_mkdir(PROC_TOSHIBA, acpi_root_dir);
|
||||
if (!toshiba_proc_dir) {
|
||||
pr_err("Unable to create proc dir " PROC_TOSHIBA "\n");
|
||||
|
Loading…
x
Reference in New Issue
Block a user