Skip to content

Commit 4dc12f3

Browse files
committed
Merge tag 'platform-drivers-x86-v6.1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86
Pull x86 platform driver fixes from Hans de Goede: "The only thing which stands out is a fix for a backlight regression on Chromebooks (under drivers/acpi, with ack from Rafael). Other then that nothing special to report just various small fixes and hardware-id additions" * tag 'platform-drivers-x86-v6.1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86: ACPI: video: Fix missing native backlight on Chromebooks platform/x86/intel: pmc/core: Add Raptor Lake support to pmc core driver leds: simatic-ipc-leds-gpio: fix incorrect LED to GPIO mapping platform/x86/amd: pmc: Read SMU version during suspend on Cezanne systems platform/x86: thinkpad_acpi: Fix reporting a non present second fan on some models platform/x86: asus-wmi: Add support for ROG X16 tablet mode
2 parents 1a2dcbd + e9cf4d9 commit 4dc12f3

File tree

6 files changed

+39
-7
lines changed

6 files changed

+39
-7
lines changed

drivers/acpi/video_detect.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -668,6 +668,11 @@ static const struct dmi_system_id video_detect_dmi_table[] = {
668668
{ },
669669
};
670670

671+
static bool google_cros_ec_present(void)
672+
{
673+
return acpi_dev_found("GOOG0004");
674+
}
675+
671676
/*
672677
* Determine which type of backlight interface to use on this system,
673678
* First check cmdline, then dmi quirks, then do autodetect.
@@ -730,6 +735,13 @@ static enum acpi_backlight_type __acpi_video_get_backlight_type(bool native)
730735
return acpi_backlight_video;
731736
}
732737

738+
/*
739+
* Chromebooks that don't have backlight handle in ACPI table
740+
* are supposed to use native backlight if it's available.
741+
*/
742+
if (google_cros_ec_present() && native_available)
743+
return acpi_backlight_native;
744+
733745
/* No ACPI video (old hw), use vendor specific fw methods. */
734746
return acpi_backlight_vendor;
735747
}

drivers/leds/simple/simatic-ipc-leds-gpio.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ static struct gpiod_lookup_table *simatic_ipc_led_gpio_table;
2020
static struct gpiod_lookup_table simatic_ipc_led_gpio_table_127e = {
2121
.dev_id = "leds-gpio",
2222
.table = {
23-
GPIO_LOOKUP_IDX("apollolake-pinctrl.0", 52, NULL, 1, GPIO_ACTIVE_LOW),
24-
GPIO_LOOKUP_IDX("apollolake-pinctrl.0", 53, NULL, 2, GPIO_ACTIVE_LOW),
25-
GPIO_LOOKUP_IDX("apollolake-pinctrl.0", 57, NULL, 3, GPIO_ACTIVE_LOW),
26-
GPIO_LOOKUP_IDX("apollolake-pinctrl.0", 58, NULL, 4, GPIO_ACTIVE_LOW),
27-
GPIO_LOOKUP_IDX("apollolake-pinctrl.0", 60, NULL, 5, GPIO_ACTIVE_LOW),
28-
GPIO_LOOKUP_IDX("apollolake-pinctrl.0", 51, NULL, 0, GPIO_ACTIVE_LOW),
23+
GPIO_LOOKUP_IDX("apollolake-pinctrl.0", 52, NULL, 0, GPIO_ACTIVE_LOW),
24+
GPIO_LOOKUP_IDX("apollolake-pinctrl.0", 53, NULL, 1, GPIO_ACTIVE_LOW),
25+
GPIO_LOOKUP_IDX("apollolake-pinctrl.0", 57, NULL, 2, GPIO_ACTIVE_LOW),
26+
GPIO_LOOKUP_IDX("apollolake-pinctrl.0", 58, NULL, 3, GPIO_ACTIVE_LOW),
27+
GPIO_LOOKUP_IDX("apollolake-pinctrl.0", 60, NULL, 4, GPIO_ACTIVE_LOW),
28+
GPIO_LOOKUP_IDX("apollolake-pinctrl.0", 51, NULL, 5, GPIO_ACTIVE_LOW),
2929
GPIO_LOOKUP_IDX("apollolake-pinctrl.0", 56, NULL, 6, GPIO_ACTIVE_LOW),
3030
GPIO_LOOKUP_IDX("apollolake-pinctrl.0", 59, NULL, 7, GPIO_ACTIVE_HIGH),
3131
},

drivers/platform/x86/amd/pmc.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -663,6 +663,13 @@ static int amd_pmc_verify_czn_rtc(struct amd_pmc_dev *pdev, u32 *arg)
663663
struct rtc_time tm;
664664
int rc;
665665

666+
/* we haven't yet read SMU version */
667+
if (!pdev->major) {
668+
rc = amd_pmc_get_smu_version(pdev);
669+
if (rc)
670+
return rc;
671+
}
672+
666673
if (pdev->major < 64 || (pdev->major == 64 && pdev->minor < 53))
667674
return 0;
668675

drivers/platform/x86/asus-nb-wmi.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,15 @@ static const struct dmi_system_id asus_quirks[] = {
464464
},
465465
.driver_data = &quirk_asus_tablet_mode,
466466
},
467+
{
468+
.callback = dmi_matched,
469+
.ident = "ASUS ROG FLOW X16",
470+
.matches = {
471+
DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
472+
DMI_MATCH(DMI_PRODUCT_NAME, "GV601R"),
473+
},
474+
.driver_data = &quirk_asus_tablet_mode,
475+
},
467476
{},
468477
};
469478

drivers/platform/x86/intel/pmc/core.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1914,6 +1914,8 @@ static const struct x86_cpu_id intel_pmc_core_ids[] = {
19141914
X86_MATCH_INTEL_FAM6_MODEL(ALDERLAKE_N, &tgl_reg_map),
19151915
X86_MATCH_INTEL_FAM6_MODEL(ALDERLAKE, &adl_reg_map),
19161916
X86_MATCH_INTEL_FAM6_MODEL(RAPTORLAKE_P, &tgl_reg_map),
1917+
X86_MATCH_INTEL_FAM6_MODEL(RAPTORLAKE, &adl_reg_map),
1918+
X86_MATCH_INTEL_FAM6_MODEL(RAPTORLAKE_S, &adl_reg_map),
19171919
{}
19181920
};
19191921

drivers/platform/x86/thinkpad_acpi.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,8 @@ enum tpacpi_hkey_event_t {
263263
#define TPACPI_DBG_BRGHT 0x0020
264264
#define TPACPI_DBG_MIXER 0x0040
265265

266+
#define FAN_NOT_PRESENT 65535
267+
266268
#define strlencmp(a, b) (strncmp((a), (b), strlen(b)))
267269

268270

@@ -8876,7 +8878,7 @@ static int __init fan_init(struct ibm_init_struct *iibm)
88768878
/* Try and probe the 2nd fan */
88778879
tp_features.second_fan = 1; /* needed for get_speed to work */
88788880
res = fan2_get_speed(&speed);
8879-
if (res >= 0) {
8881+
if (res >= 0 && speed != FAN_NOT_PRESENT) {
88808882
/* It responded - so let's assume it's there */
88818883
tp_features.second_fan = 1;
88828884
tp_features.second_fan_ctl = 1;

0 commit comments

Comments
 (0)