diff options
| author | James Morris <[email protected]> | 2018-09-04 11:35:54 -0700 | 
|---|---|---|
| committer | James Morris <[email protected]> | 2018-09-04 11:35:54 -0700 | 
| commit | e42f6f9be4f83c537aa81b4c6239ea94ff5b29ce (patch) | |
| tree | f956a5ea0e83fc6d0df3e64681e7bbc1f201f3ee /drivers/acpi/x86/utils.c | |
| parent | 4408e300a67ab2ce2505087986a9fe922c800ffd (diff) | |
| parent | 57361846b52bc686112da6ca5368d11210796804 (diff) | |
Merge tag 'v4.19-rc2' into next-general
Sync to Linux 4.19-rc2 for downstream developers.
Diffstat (limited to 'drivers/acpi/x86/utils.c')
| -rw-r--r-- | drivers/acpi/x86/utils.c | 22 | 
1 files changed, 9 insertions, 13 deletions
diff --git a/drivers/acpi/x86/utils.c b/drivers/acpi/x86/utils.c index ec5b0f190231..06c31ec3cc70 100644 --- a/drivers/acpi/x86/utils.c +++ b/drivers/acpi/x86/utils.c @@ -62,14 +62,20 @@ static const struct always_present_id always_present_ids[] = {  	 */  	ENTRY("INT0002", "1", ICPU(INTEL_FAM6_ATOM_AIRMONT), {}),  	/* -	 * On the Dell Venue 11 Pro 7130 the DSDT hides the touchscreen ACPI -	 * device until a certain time after _SB.PCI0.GFX0.LCD.LCD1._ON gets -	 * called has passed *and* _STA has been called at least 3 times since. +	 * On the Dell Venue 11 Pro 7130 and 7139, the DSDT hides +	 * the touchscreen ACPI device until a certain time +	 * after _SB.PCI0.GFX0.LCD.LCD1._ON gets called has passed +	 * *and* _STA has been called at least 3 times since.  	 */  	ENTRY("SYNA7500", "1", ICPU(INTEL_FAM6_HASWELL_ULT), {  		DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),  		DMI_MATCH(DMI_PRODUCT_NAME, "Venue 11 Pro 7130"),  	      }), +	ENTRY("SYNA7500", "1", ICPU(INTEL_FAM6_HASWELL_ULT), { +		DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."), +		DMI_MATCH(DMI_PRODUCT_NAME, "Venue 11 Pro 7139"), +	      }), +  	/*  	 * The GPD win BIOS dated 20170221 has disabled the accelerometer, the  	 * drivers sometimes cause crashes under Windows and this is how the @@ -103,13 +109,9 @@ static const struct always_present_id always_present_ids[] = {  bool acpi_device_always_present(struct acpi_device *adev)  { -	u32 *status = (u32 *)&adev->status; -	u32 old_status = *status;  	bool ret = false;  	unsigned int i; -	/* acpi_match_device_ids checks status, so set it to default */ -	*status = ACPI_STA_DEFAULT;  	for (i = 0; i < ARRAY_SIZE(always_present_ids); i++) {  		if (acpi_match_device_ids(adev, always_present_ids[i].hid))  			continue; @@ -125,15 +127,9 @@ bool acpi_device_always_present(struct acpi_device *adev)  		    !dmi_check_system(always_present_ids[i].dmi_ids))  			continue; -		if (old_status != ACPI_STA_DEFAULT) /* Log only once */ -			dev_info(&adev->dev, -				 "Device [%s] is in always present list\n", -				 adev->pnp.bus_id); -  		ret = true;  		break;  	} -	*status = old_status;  	return ret;  }  |