Re: linux-next: manual merge of the drivers-x86 tree with the pm tree
From: Rafael J. Wysocki (Intel)
Date: Fri Dec 04 2026 - 16:06:30 EST
On Fri, Dec 4, 2026 at 9:52 PM Armin Wolf <W_Armin@xxxxxx> wrote:
>
> Am 04.12.26 um 16:50 schrieb Rafael J. Wysocki (Intel):
> > On Fri, Dec 4, 2026 at 4:45 PM Mark Brown <broonie@xxxxxxxxxx> wrote:
> >>
> >> Hi all,
> >>
> >> Today's linux-next merge of the drivers-x86 tree got a conflict in:
> >>
> >> drivers/platform/x86/uniwill/uniwill-acpi.c
> >>
> >> between commit:
> >>
> >> e8303c339ce44 ("ACPI: battery: add acpi_ prefix to the battery hook API")
> >>
> >> from the pm tree and commit:
> >>
> >> 006fc2bb612d6 ("platform/x86: uniwill-laptop: Expose raw battery capacity to userspace")
> >>
> >> from the drivers-x86 tree.
> >>
> >> I fixed it up (see below) and can carry the fix as necessary. This
> >> is now fixed as far as linux-next is concerned, but any non trivial
> >> conflicts should be mentioned to your upstream maintainer when your tree
> >> is submitted for merging. You may also want to consider cooperating
> >> with the maintainer of the conflicting tree to minimise any particularly
> >> complex conflicts.
> >>
> >> diff --cc drivers/platform/x86/uniwill/uniwill-acpi.c
> >> index 0aee0219cf0e1,e2a6a704e942e..0000000000000
> >> --- a/drivers/platform/x86/uniwill/uniwill-acpi.c
> >> +++ b/drivers/platform/x86/uniwill/uniwill-acpi.c
> >> @@@ -2224,7 -2269,12 +2269,12 @@@ static int uniwill_battery_init(struct
> >> data->hook.add_battery = uniwill_add_battery;
> >> data->hook.remove_battery = uniwill_remove_battery;
> >>
> >> + sysfs_attr_init(&data->charge_full_raw_attr.attr);
> >> + data->charge_full_raw_attr.attr.name = "charge_full_raw";
> >> + data->charge_full_raw_attr.attr.mode = 0444;
> >> + data->charge_full_raw_attr.show_const = charge_full_raw_show;
> >> +
> >> - return devm_battery_hook_register(data->dev, &data->hook);
> >> + return devm_acpi_battery_hook_register(data->dev, &data->hook);
> >> }
> >>
> >> static int uniwill_notifier_call(struct notifier_block *nb, unsigned long action, void *dummy)
> >
> > Thanks for taking care of this, the conflict resolution looks good to me.
>
> Why does the rename operation add partial support for charge_full_raw?
It doesn't, the other one does though:
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=006fc2bb612d6265eecc704b4c57d6a1242ada63
And now it depends on which way you do the merge. Or have I missed anything?