[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CACKFLi=o9g8iBeJHzhCYHXBQvdwT+sy6PKCDRGaqATZL0jMurA@mail.gmail.com>
Date: Wed, 16 Aug 2023 23:28:07 -0700
From: Michael Chan <michael.chan@...adcom.com>
To: Guenter Roeck <linux@...ck-us.net>
Cc: Kalesh Anakkur Purayil <kalesh-anakkur.purayil@...adcom.com>, davem@...emloft.net,
netdev@...r.kernel.org, edumazet@...gle.com, kuba@...nel.org,
pabeni@...hat.com, gospo@...adcom.com, Jean Delvare <jdelvare@...e.com>,
linux-hwmon@...r.kernel.org
Subject: Re: [PATCH net-next 11/12] bnxt_en: Expose threshold temperatures
through hwmon
On Wed, Aug 16, 2023 at 12:25 PM Guenter Roeck <linux@...ck-us.net> wrote:
>
> On Wed, Aug 16, 2023 at 09:42:17PM +0530, Kalesh Anakkur Purayil wrote:
> > [Kalesh]: Sorry, I don't quite get this part. I was looking at the kernel
> > hwmon code, but could not find any reference.
> >
>
> It would be non-standard attributes, so, correct, there is no reference.
>
> > Can we add new attributes "shutdown" and "shutdown_alarm" for tempX? For
> > example:
> >
> > #define HWMON_T_SHUTDOWN BIT(hwmon_temp_shutdown)
> >
>
> Not for a single driver. You can implement the sysfs attributes
> directly in the driver and pass an extra attribute group to the
> hwmon core when registering the hwmon device.
Thanks for the review. I will drop these hwmon patches for now and
respin the others for v2. Kalesh will rework these hwmon patches.
Download attachment "smime.p7s" of type "application/pkcs7-signature" (4209 bytes)
Powered by blists - more mailing lists