Re: [PATCH 08/13] platform/x86: lenovo: Move TLMI helper functions into wmi-helpers
From: Mark Pearson
Date: Fri Dec 04 2026 - 12:27:56 EST
On Fri, Dec 4, 2026, at 12:19 PM, Rong Zhang wrote:
> Hi Mark,
>
> On Fri, 2026-12-04 at 10:50 -0500, Mark Pearson wrote:
>>
>> On Fri, Dec 4, 2026, at 8:49 AM, Rong Zhang wrote:
>> > Hi Mark,
>> >
>> > On Thu, 2026-12-03 at 21:20 -0500, Mark Pearson wrote:
>> > > The tlmi_populate_string_buffer and tlmi_request are going to be
>> > > needed in the upcoming tlmi-auth module, as well as the current
>> > > tlmi-config module.
>> > >
>> > > As we can't have circular dependencies they need to move out of
>> > > tlmi-config.
>> > >
>> > > The wmi-helpers module already provides helper functions for the
>> > > Lenovo Legion platforms, and seems a logical place for these to
>> > > move too.
>> > >
>> > > Signed-off-by: Mark Pearson <mpearson-lenovo@xxxxxxxxx>
>> > > ---
>> > > drivers/platform/x86/lenovo/Kconfig | 1 +
>> > > drivers/platform/x86/lenovo/tlmi-config.c | 59 +-------------------
>> > > drivers/platform/x86/lenovo/wmi-helpers.c | 65 ++++++++++++++++++++++-
>> > > drivers/platform/x86/lenovo/wmi-helpers.h | 5 ++
>> > > 4 files changed, 72 insertions(+), 58 deletions(-)
>> > >
>> > > diff --git a/drivers/platform/x86/lenovo/Kconfig b/drivers/platform/x86/lenovo/Kconfig
>> > > index 16569406c946..c59461cf5f4a 100644
>> > > --- a/drivers/platform/x86/lenovo/Kconfig
>> > > +++ b/drivers/platform/x86/lenovo/Kconfig
>> > > @@ -218,6 +218,7 @@ config THINKPAD_LMI
>> > > depends on ACPI_WMI
>> > > depends on DMI
>> > > select FW_ATTR_CLASS
>> > > + select LENOVO_WMI_HELPERS
>> >
>> > Ba aware of
>> > https://msgid.link/f8815e94ddc161495ca80b04d7e3388549edafeb.camel@xxxxxxxx
>> > if you'd need to rebase on top of David's series.
>> >
>> Ack - I figured the review process was going to be a rough ride for this series. I'm sure I'll be rebasing a few times before we're done.
>> I actually wonder if I'll need to move this whole driver....
>
> It's up to Lenovo's production plan.
>
> If any ARM64 devices will use the thinklmi interface in the future, I'd
> suggest that we should move it. Otherwise we should leave them as they
> as.
>
It's likely....
Mark