[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <d945ddc0-06e9-4ca3-a9c3-c19dd9457d15@roeck-us.net>
Date: Tue, 21 Jan 2025 09:37:52 -0800
From: Guenter Roeck <linux@...ck-us.net>
To: "Russell King (Oracle)" <linux@...linux.org.uk>
Cc: Armin Wolf <W_Armin@....de>, Huisong Li <lihuisong@...wei.com>,
linux-hwmon@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-media@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
arm-scmi@...r.kernel.org, netdev@...r.kernel.org, linux-rtc@...r.kernel.org,
oss-drivers@...igine.com, linux-rdma@...r.kernel.org,
platform-driver-x86@...r.kernel.org, linuxarm@...wei.com, jdelvare@...e.com,
kernel@...davale.org, pauk.denis@...il.com, james@...iv.tech,
sudeep.holla@....com, cristian.marussi@....com, matt@...ostay.sg,
mchehab@...nel.org, irusskikh@...vell.com, andrew+netdev@...n.ch,
davem@...emloft.net, edumazet@...gle.com, kuba@...nel.org,
pabeni@...hat.com, saeedm@...dia.com, leon@...nel.org, tariqt@...dia.com,
louis.peens@...igine.com, hkallweit1@...il.com, kabel@...nel.org,
hdegoede@...hat.com, ilpo.jarvinen@...ux.intel.com,
alexandre.belloni@...tlin.com, krzk@...nel.org, jonathan.cameron@...wei.com,
zhanjie9@...ilicon.com, zhenglifeng1@...wei.com, liuyonglong@...wei.com
Subject: Re: [PATCH v1 00/21] hwmon: Fix the type of 'config' in struct
hwmon_channel_info to u64
On 1/21/25 09:20, Russell King (Oracle) wrote:
[ ... ]
>
> 1. convert *all* drivers that defines a config array to be defined by
> their own macro in hwmon.h, and then switch that macro to make the
> definitions be a u64 array at the same time as switching struct
> hwmon_channel_info.config
>
> 2. convert *all* drivers to use HWMON_CHANNEL_INFO() unconditionally,
> and switch that along with struct hwmon_channel_info.config.
>
> 3. add a new member to struct hwmon_channel_info such as
> "const u64 *config64" and then gradually convert drivers to use it.
> Once everyone is converted over, then remove "const u32 *config",
> optionally rename "config64" back to "config" and then re-patch all
> drivers. That'll be joyful, with multiple patches to drivers that
> need to be merged in sync with hwmon changes - and last over several
> kernel release cycles.
>
Alternatively, add another sensor type for the overflowing field, such as
hwmon_power_2 (or whatever), and use it for the additional attributes.
> This is not going to be an easy change!
>
Neither is it necessary at this time.
Guenter
Powered by blists - more mailing lists