ACPI fixes for 6.2-rc4
- Improve ACPI companion lookup for backlight devices in the cases when there is more than one candidate ACPI device object (Hans de Goede). - Add missing support for manual selection of NVidia-WMI-EC or Apple GMUX backlight in the kernel command line to the ACPI backlight driver (Hans de Goede). - Skip ACPI IRQ override on Asus Expertbook B2402CBA (Tamim Khan). -----BEGIN PGP SIGNATURE----- iQJGBAABCAAwFiEE4fcc61cGeeHD/fCwgsRv/nhiVHEFAmPBNbISHHJqd0Byand5 c29ja2kubmV0AAoJEILEb/54YlRxixkP/3aIp3UZCjMwRqv0KtFGB3+bLiIcrVVb WILER6FwaC9zy1fts2oa23nDT6l+DRdr6nqYA4K4557gK0pETJr/UK6uAFNOVFbA fiVe3saGeHTOd+Oq8xcchX/sMSMneYwJwkByVaYwixLVvXSb4XNHAew5y0L3diod xig1OreiPtEX8FvLCg6GNWBf9ULq1xiRPz2NMfx/FmkmvpQuFNVwlkrO7RJQMiCD 0uIwNqvM4wCgHyi7dwV6XsPebgpEJmwz4PaDkJ8FhpzARqes00Ua6wiBnhptuOsd J1G1MEFeH095+xeSivnLesYhwrwiFGvLAq9pKIJYnuiRz80m2Y7ekhUuP1APPN3Z 5e+o2KqlDYOBZxD1tfDuJiaBwP+nzqKNseaYDeBR+Anj4lPnolCq/XQ4tdR1P+0o hL8Xo8JWzN17r8AewLYN+pLwUceFrv7IL8pkSb+JF4UyZsLqmpYbdsulVSh8BDLt g36lrABcZYqeFLiQD/ep3F39MTMNtkN3F1N6GUq0KHdyh/2f8LUWIpBQD35udaeb GSamDfCIevSBDc6lk9kIvIrsh+uaB+Tk9ziMMZLIm4wB9ZD5ugYov7GrKo9cQuhi 3tIhjwScsGAfRMcvzo4zKkjxq1+nffHL6HJs4y15xsDnxgd09VjNNseBU+8D1y1F 2lcIUduQWUyd =bDXc -----END PGP SIGNATURE----- Merge tag 'acpi-6.2-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm Pull ACPI fixes from Rafael Wysocki: "These add one more ACPI IRQ override quirk, improve ACPI companion lookup for backlight devices and add missing kernel command line option values for backlight detection. Specifics: - Improve ACPI companion lookup for backlight devices in the cases when there is more than one candidate ACPI device object (Hans de Goede) - Add missing support for manual selection of NVidia-WMI-EC or Apple GMUX backlight in the kernel command line to the ACPI backlight driver (Hans de Goede) - Skip ACPI IRQ override on Asus Expertbook B2402CBA (Tamim Khan)" * tag 'acpi-6.2-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: ACPI: Fix selecting wrong ACPI fwnode for the iGPU on some Dell laptops ACPI: video: Allow selecting NVidia-WMI-EC or Apple GMUX backlight from the cmdline ACPI: resource: Skip IRQ override on Asus Expertbook B2402CBA
This commit is contained in:
commit
cdbbca256c
@ -75,7 +75,8 @@ static struct acpi_bus_type *acpi_get_bus_type(struct device *dev)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#define FIND_CHILD_MIN_SCORE 1
|
#define FIND_CHILD_MIN_SCORE 1
|
||||||
#define FIND_CHILD_MAX_SCORE 2
|
#define FIND_CHILD_MID_SCORE 2
|
||||||
|
#define FIND_CHILD_MAX_SCORE 3
|
||||||
|
|
||||||
static int match_any(struct acpi_device *adev, void *not_used)
|
static int match_any(struct acpi_device *adev, void *not_used)
|
||||||
{
|
{
|
||||||
@ -96,8 +97,17 @@ static int find_child_checks(struct acpi_device *adev, bool check_children)
|
|||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
|
|
||||||
status = acpi_evaluate_integer(adev->handle, "_STA", NULL, &sta);
|
status = acpi_evaluate_integer(adev->handle, "_STA", NULL, &sta);
|
||||||
if (status == AE_NOT_FOUND)
|
if (status == AE_NOT_FOUND) {
|
||||||
|
/*
|
||||||
|
* Special case: backlight device objects without _STA are
|
||||||
|
* preferred to other objects with the same _ADR value, because
|
||||||
|
* it is more likely that they are actually useful.
|
||||||
|
*/
|
||||||
|
if (adev->pnp.type.backlight)
|
||||||
|
return FIND_CHILD_MID_SCORE;
|
||||||
|
|
||||||
return FIND_CHILD_MIN_SCORE;
|
return FIND_CHILD_MIN_SCORE;
|
||||||
|
}
|
||||||
|
|
||||||
if (ACPI_FAILURE(status) || !(sta & ACPI_STA_DEVICE_ENABLED))
|
if (ACPI_FAILURE(status) || !(sta & ACPI_STA_DEVICE_ENABLED))
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
|
@ -432,6 +432,13 @@ static const struct dmi_system_id asus_laptop[] = {
|
|||||||
DMI_MATCH(DMI_BOARD_NAME, "S5602ZA"),
|
DMI_MATCH(DMI_BOARD_NAME, "S5602ZA"),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
.ident = "Asus ExpertBook B2402CBA",
|
||||||
|
.matches = {
|
||||||
|
DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
|
||||||
|
DMI_MATCH(DMI_BOARD_NAME, "B2402CBA"),
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
.ident = "Asus ExpertBook B2502",
|
.ident = "Asus ExpertBook B2502",
|
||||||
.matches = {
|
.matches = {
|
||||||
|
@ -1370,9 +1370,12 @@ static void acpi_set_pnp_ids(acpi_handle handle, struct acpi_device_pnp *pnp,
|
|||||||
* Some devices don't reliably have _HIDs & _CIDs, so add
|
* Some devices don't reliably have _HIDs & _CIDs, so add
|
||||||
* synthetic HIDs to make sure drivers can find them.
|
* synthetic HIDs to make sure drivers can find them.
|
||||||
*/
|
*/
|
||||||
if (acpi_is_video_device(handle))
|
if (acpi_is_video_device(handle)) {
|
||||||
acpi_add_id(pnp, ACPI_VIDEO_HID);
|
acpi_add_id(pnp, ACPI_VIDEO_HID);
|
||||||
else if (acpi_bay_match(handle))
|
pnp->type.backlight = 1;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
if (acpi_bay_match(handle))
|
||||||
acpi_add_id(pnp, ACPI_BAY_HID);
|
acpi_add_id(pnp, ACPI_BAY_HID);
|
||||||
else if (acpi_dock_match(handle))
|
else if (acpi_dock_match(handle))
|
||||||
acpi_add_id(pnp, ACPI_DOCK_HID);
|
acpi_add_id(pnp, ACPI_DOCK_HID);
|
||||||
|
@ -50,6 +50,10 @@ static void acpi_video_parse_cmdline(void)
|
|||||||
acpi_backlight_cmdline = acpi_backlight_video;
|
acpi_backlight_cmdline = acpi_backlight_video;
|
||||||
if (!strcmp("native", acpi_video_backlight_string))
|
if (!strcmp("native", acpi_video_backlight_string))
|
||||||
acpi_backlight_cmdline = acpi_backlight_native;
|
acpi_backlight_cmdline = acpi_backlight_native;
|
||||||
|
if (!strcmp("nvidia_wmi_ec", acpi_video_backlight_string))
|
||||||
|
acpi_backlight_cmdline = acpi_backlight_nvidia_wmi_ec;
|
||||||
|
if (!strcmp("apple_gmux", acpi_video_backlight_string))
|
||||||
|
acpi_backlight_cmdline = acpi_backlight_apple_gmux;
|
||||||
if (!strcmp("none", acpi_video_backlight_string))
|
if (!strcmp("none", acpi_video_backlight_string))
|
||||||
acpi_backlight_cmdline = acpi_backlight_none;
|
acpi_backlight_cmdline = acpi_backlight_none;
|
||||||
}
|
}
|
||||||
|
@ -230,7 +230,8 @@ struct acpi_pnp_type {
|
|||||||
u32 hardware_id:1;
|
u32 hardware_id:1;
|
||||||
u32 bus_address:1;
|
u32 bus_address:1;
|
||||||
u32 platform_id:1;
|
u32 platform_id:1;
|
||||||
u32 reserved:29;
|
u32 backlight:1;
|
||||||
|
u32 reserved:28;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct acpi_device_pnp {
|
struct acpi_device_pnp {
|
||||||
|
Loading…
Reference in New Issue
Block a user