lkml.org 
[lkml]   [2020]   [Jun]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: [PATCH v4] platform: x86: Add ACPI driver for ChromeOS
Date
> -----Original Message-----
> From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
> Sent: Wednesday, June 10, 2020 4:41 PM
> To: Limonciello, Mario
> Cc: enric.balletbo@collabora.com; rjw@rjwysocki.net; rafael@kernel.org;
> linux-kernel@vger.kernel.org; linux-acpi@vger.kernel.org; lenb@kernel.org;
> kernel@collabora.com; groeck@chromium.org; bleung@chromium.org;
> dtor@chromium.org; gwendal@chromium.org; vbendeb@chromium.org;
> andy@infradead.org; ayman.bagabas@gmail.com; benjamin.tissoires@redhat.com;
> blaz@mxxn.io; dvhart@infradead.org; gregkh@linuxfoundation.org;
> hdegoede@redhat.com; jeremy@system76.com; 2pi@mok.nu;
> mchehab+samsung@kernel.org; rajatja@google.com;
> srinivas.pandruvada@linux.intel.com; platform-driver-x86@vger.kernel.org
> Subject: Re: [PATCH v4] platform: x86: Add ACPI driver for ChromeOS
>
>
> [EXTERNAL EMAIL]
>
> On Wed, Jun 10, 2020 at 09:28:36PM +0000, Mario.Limonciello@dell.com wrote:
> > >
> > > To give you some references, if I'm not wrong, this prefix is used in
> all
> > > or
> > > almost all Intel Chromebook devices (auron, cyan, eve, fizz, hatch,
> > > octopus,
> > > poppy, strago ...) The ACPI source for this device can be found here
> [1],
> > > and,
> > > if not all, almost all Intel based Chromebooks are shipped with the
> > > firmware
> > > that supports this.
> >
> > You can potentially carry a small patch in your downstream kernel for the
> > legacy stuff until it reaches EOL. At least for the new stuff you could
> > enact a process that properly reserves unique numbers and changes the
> driver
> > when the interface provided by the ACPI device has changed.
>
> If we use this prefix for hatch EOL is ~7 years from now.
>

Isn't the whole point of the ACPI registry and choosing an ID? You know internally
if you need to change the interface that a new ID is needed and a new driver will
be needed that comprehends that ID change. So if you can't guarantee that 0001 is
the same driver interface in every firmware implementation google used then that is
where this falls apart.

I know there is a long support lifecycle but you're talking about rebasing
to new LTS kernels a handful of times between now and then. If the interface really
is stable the patch should be small and it shouldn't be a large amount of technical
debt to carry downstream until EOL.


\
 
 \ /
  Last update: 2020-06-10 23:53    [W:0.060 / U:0.196 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site