[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aWdklo0u1g0oHn3z@smile.fi.intel.com>
Date: Wed, 14 Jan 2026 11:40:38 +0200
From: Andy Shevchenko <andriy.shevchenko@...el.com>
To: AngeloGioacchino Del Regno <angelogioacchino.delregno@...labora.com>
Cc: jic23@...nel.org, dlechner@...libre.com, nuno.sa@...log.com,
andy@...nel.org, arnd@...db.de, gregkh@...uxfoundation.org,
srini@...nel.org, vkoul@...nel.org, neil.armstrong@...aro.org,
sre@...nel.org, sboyd@...nel.org, krzk@...nel.org,
dmitry.baryshkov@....qualcomm.com, quic_wcheng@...cinc.com,
melody.olvera@....qualcomm.com, quic_nsekar@...cinc.com,
ivo.ivanov.ivanov1@...il.com, abelvesa@...nel.org,
luca.weiss@...rphone.com, konrad.dybcio@....qualcomm.com,
mitltlatltl@...il.com, krishna.kurapati@....qualcomm.com,
linux-arm-msm@...r.kernel.org, linux-iio@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-phy@...ts.infradead.org,
linux-pm@...r.kernel.org, kernel@...labora.com,
Abel Vesa <abel.vesa@...aro.org>
Subject: Re: [PATCH v7 07/10] phy: qualcomm: eusb2-repeater: Migrate to
devm_spmi_subdevice_alloc_and_add()
On Wed, Jan 14, 2026 at 10:26:42AM +0100, AngeloGioacchino Del Regno wrote:
> Il 14/01/26 09:59, Andy Shevchenko ha scritto:
> > On Wed, Jan 14, 2026 at 09:39:54AM +0100, AngeloGioacchino Del Regno wrote:
...
> > > + struct regmap_config eusb2_regmap_config = {
> > > + .reg_bits = 16,
> > > + .val_bits = 8,
> > > + .max_register = 0x100,
> > > + .fast_io = true,
> > > + };
> >
> > This is third time of the same. Make it part of SPMI core and export to
> > the users. Or are they semantically different like different slices?
> > In that case you can export it under generic name like
> >
> > spmi_default_slice_regmap_config
>
> There are more complicated devices around that I didn't port to the new
> spmi subdevices, and I really don't want to make a default for now.
>
> At least some of those need different params (including some MediaTek ones
> that are not upstream yet).
>
> Can we please let this in and *then* see how much can be commonized after
> the majority of more complicated drivers are migrated in the future?
Sure, but it looks like a pattern currently...
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists