Linux-Next discussions
 help / color / mirror / Atom feed
* linux-next: semantic conflict between the hid and pm trees
@ 2026-11-20 19:45 Sasha Levin
  2026-11-23 21:26 ` Sasha Levin
  0 siblings, 1 reply; 5+ messages in thread
From: Sasha Levin @ 2026-11-20 19:45 UTC (permalink / raw)
  To: Mark Brown
  Cc: Jiri Kosina, Benjamin Tissoires, Rafael J. Wysocki,
	Joshua Leivenzon, linux-input, linux-pm, Linux Next Mailing List,
	Linux Kernel Mailing List

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:

diff --git a/drivers/hid/hid-asus.c b/drivers/hid/hid-asus.c
--- a/drivers/hid/hid-asus.c
+++ b/drivers/hid/hid-asus.c
@@ -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)

-- 
Thanks,
Sasha

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: linux-next: semantic conflict between the hid and pm trees
  2026-11-20 19:45 linux-next: semantic conflict between the hid and pm trees Sasha Levin
@ 2026-11-23 21:26 ` Sasha Levin
  2026-11-24 11:31   ` Rafael J. Wysocki (Intel)
  0 siblings, 1 reply; 5+ messages in thread
From: Sasha Levin @ 2026-11-23 21:26 UTC (permalink / raw)
  To: Mark Brown
  Cc: Jiri Kosina, Benjamin Tissoires, Rafael J. Wysocki,
	Joshua Leivenzon, linux-input, linux-pm, Linux Next Mailing List,
	Linux Kernel Mailing List

On Fri, Nov 20, 2026 at 02:45:07PM -0500, Sasha Levin wrote:
> 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.

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.

-- 
Thanks,
Sasha

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: linux-next: semantic conflict between the hid and pm trees
  2026-11-23 21:26 ` Sasha Levin
@ 2026-11-24 11:31   ` Rafael J. Wysocki (Intel)
  2026-11-24 13:59     ` Sasha Levin
  0 siblings, 1 reply; 5+ messages in thread
From: Rafael J. Wysocki (Intel) @ 2026-11-24 11:31 UTC (permalink / raw)
  To: Sasha Levin, Jiri Kosina
  Cc: Mark Brown, Benjamin Tissoires, Rafael J. Wysocki,
	Joshua Leivenzon, linux-input, linux-pm, Linux Next Mailing List,
	Linux Kernel Mailing List

On Mon, Nov 23, 2026 at 10:26 PM Sasha Levin <sashal@kernel.org> wrote:
>
> On Fri, Nov 20, 2026 at 02:45:07PM -0500, Sasha Levin wrote:
> > 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.
>
> 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.

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?

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: linux-next: semantic conflict between the hid and pm trees
  2026-11-24 11:31   ` Rafael J. Wysocki (Intel)
@ 2026-11-24 13:59     ` Sasha Levin
  2026-11-24 14:26       ` Rafael J. Wysocki (Intel)
  0 siblings, 1 reply; 5+ messages in thread
From: Sasha Levin @ 2026-11-24 13:59 UTC (permalink / raw)
  To: Rafael J. Wysocki (Intel)
  Cc: Jiri Kosina, Mark Brown, Benjamin Tissoires, Joshua Leivenzon,
	linux-input, linux-pm, Linux Next Mailing List,
	Linux Kernel Mailing List

On Tue, Nov 24, 2026 at 12:31:17PM +0100, Rafael J. Wysocki (Intel) wrote:
>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.

-- 
Thanks,
Sasha

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: linux-next: semantic conflict between the hid and pm trees
  2026-11-24 13:59     ` Sasha Levin
@ 2026-11-24 14:26       ` Rafael J. Wysocki (Intel)
  0 siblings, 0 replies; 5+ messages in thread
From: Rafael J. Wysocki (Intel) @ 2026-11-24 14:26 UTC (permalink / raw)
  To: Sasha Levin, Jiri Kosina
  Cc: Mark Brown, Benjamin Tissoires, Joshua Leivenzon, linux-input,
	linux-pm, Linux Next Mailing List, Linux Kernel Mailing List

On Tue, Nov 24, 2026 at 2:59 PM Sasha Levin <sashal@kernel.org> wrote:
>
> On Tue, Nov 24, 2026 at 12:31:17PM +0100, Rafael J. Wysocki (Intel) wrote:
> >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.

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!

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-11-24 14:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-20 19:45 linux-next: semantic conflict between the hid and pm trees Sasha Levin
2026-11-23 21:26 ` Sasha Levin
2026-11-24 11:31   ` Rafael J. Wysocki (Intel)
2026-11-24 13:59     ` Sasha Levin
2026-11-24 14:26       ` Rafael J. Wysocki (Intel)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox