|
38 | 38 | struct quirk_entry {
|
39 | 39 | bool touchpad_led;
|
40 | 40 | bool kbd_led_levels_off_1;
|
| 41 | + bool kbd_missing_ac_tag; |
41 | 42 |
|
42 | 43 | bool needs_kbd_timeouts;
|
43 | 44 | /*
|
@@ -68,6 +69,10 @@ static struct quirk_entry quirk_dell_xps13_9333 = {
|
68 | 69 | .kbd_timeouts = { 0, 5, 15, 60, 5 * 60, 15 * 60, -1 },
|
69 | 70 | };
|
70 | 71 |
|
| 72 | +static struct quirk_entry quirk_dell_xps13_9370 = { |
| 73 | + .kbd_missing_ac_tag = true, |
| 74 | +}; |
| 75 | + |
71 | 76 | static struct quirk_entry quirk_dell_latitude_e6410 = {
|
72 | 77 | .kbd_led_levels_off_1 = true,
|
73 | 78 | };
|
@@ -291,6 +296,15 @@ static const struct dmi_system_id dell_quirks[] __initconst = {
|
291 | 296 | },
|
292 | 297 | .driver_data = &quirk_dell_xps13_9333,
|
293 | 298 | },
|
| 299 | + { |
| 300 | + .callback = dmi_matched, |
| 301 | + .ident = "Dell XPS 13 9370", |
| 302 | + .matches = { |
| 303 | + DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."), |
| 304 | + DMI_MATCH(DMI_PRODUCT_NAME, "XPS 13 9370"), |
| 305 | + }, |
| 306 | + .driver_data = &quirk_dell_xps13_9370, |
| 307 | + }, |
294 | 308 | {
|
295 | 309 | .callback = dmi_matched,
|
296 | 310 | .ident = "Dell Latitude E6410",
|
@@ -1401,7 +1415,8 @@ static inline int kbd_init_info(void)
|
1401 | 1415 | * timeout value which is shared for both battery and AC power
|
1402 | 1416 | * settings. So do not try to set AC values on old models.
|
1403 | 1417 | */
|
1404 |
| - if (dell_smbios_find_token(KBD_LED_AC_TOKEN)) |
| 1418 | + if ((quirks && quirks->kbd_missing_ac_tag) || |
| 1419 | + dell_smbios_find_token(KBD_LED_AC_TOKEN)) |
1405 | 1420 | kbd_timeout_ac_supported = true;
|
1406 | 1421 |
|
1407 | 1422 | kbd_get_state(&state);
|
|
0 commit comments