linux-next: semantic conflict between the hid and pm trees
Subsystems (2)
Hi Mark,
Once you take the current hid tree again, it has a conflict with the pm tree that doesn't break the build.
d220bf485598 ("HID: asus: Cycle the platform profile from the Zenbook Duo profile key") in the hid tree checks IS_REACHABLE(CONFIG_ACPI_PLATFORM_PROFILE), and 699041135f75 ("platform
profile: Extract the core from ACPI") in the pm tree renames that symbol to PLATFORM_PROFILE. With both, the check is always false and the profile key does nothing.
It's the same rename you already fix up in drivers/platform/asus/Kconfig in the pdx86 merge. The fix for the merge:
drivers/hid/hid-asus.c +2 -2
@@ -438,7 +438,7 @@ static int asus_platform_profile_cycle(struct asus_drvdata *drvdata)struct asus_worker *worker = drvdata->worker;struct asus_work_action *action, *pending; -if (!IS_REACHABLE (CONFIG_ACPI_PLATFORM_PROFILE )) +if (!IS_REACHABLE (CONFIG_PLATFORM_PROFILE ))return 0 ;guard (spinlock_irqsave)(&worker->lock);
@@ -870,7 +870,7 @@ static void asus_work(struct work_struct *work)asus_kbd_wmi_fan (worker->hdev, &action->data.fan_hid_data);break ;case PLATFORM_PROFILE_CYCLE : -if (!IS_REACHABLE (CONFIG_ACPI_PLATFORM_PROFILE )) +if (!IS_REACHABLE (CONFIG_PLATFORM_PROFILE ))break ; ret =platform_profile_cycle ();if (ret)
Signature · 2 lines
Thanks, Sasha
Quoted 6 lines · Sasha Levin
d220bf485598("HID: asus: Cycle the platform profile from the Zenbook Duo profile key") in the hid tree checksIS_REACHABLE(CONFIG_ACPI_PLATFORM_PROFILE), and699041135f75("platform
profile: Extract the core from ACPI") in the pm tree renames that symbol toPLATFORM_PROFILE. With both, the check is always false and the profile key does nothing.
Ping. next-20261123 has the hid tree again, and hid-asus.c still checks CONFIG_ACPI_PLATFORM_PROFILE in both places. The fix in my first mail still applies.
Signature · 2 lines
Thanks, Sasha
Quoted 9 lines · Sasha Levin
Quoted 6 lines · Sasha Levin
d220bf485598("HID: asus: Cycle the platform profile from the Zenbook Duo profile key") in the hid tree checksIS_REACHABLE(CONFIG_ACPI_PLATFORM_PROFILE), and699041135f75("platform
profile: Extract the core from ACPI") in the pm tree renames that symbol toPLATFORM_PROFILE. With both, the check is always false and the profile key does nothing.
Quoted 3 lines
Ping. next-20261123 has the hid tree again, and
hid-asus.cstill checksCONFIG_ACPI_PLATFORM_PROFILEin both places. The fix in my first mail still applies.
I think I'll create an immutable branch with platform profile changes, so that the hid-asus can be rebased on it.
Will that work?
Quoted 4 lines · Rafael J. Wysocki (Intel)
I think I'll create an immutable branch with platform profile changes, so that the hid-asus can be rebased on it.
Will that work?
Yes. Once the hid tree is on top of that branch, the two CONFIG_ACPI_PLATFORM_PROFILE checks in hid-asus.c can become CONFIG_PLATFORM_PROFILE there, and linux-next won't need a fixup.
Signature · 2 lines
Thanks, Sasha
Quoted 10 lines · Sasha Levin
Quoted 4 lines · Rafael J. Wysocki (Intel)
I think I'll create an immutable branch with platform profile changes, so that the hid-asus can be rebased on it.
Will that work?
Yes. Once the hid tree is on top of that branch, the two
CONFIG_ACPI_PLATFORM_PROFILEchecks inhid-asus.ccan becomeCONFIG_PLATFORM_PROFILEthere, and linux-next won't need a fixup.
Done.
Jiri,
git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \
acpi-platform-profile
which is an immutable branch, can be pulled into the hid tree which will allow the conflict to be resolved locally via a follow-up patch.
Thanks!