Re: [PATCH net-next 3/4] ionic: add an auxiliary device for hardware monitoring
From: Simon Horman
Date: Mon Nov 09 2026 - 14:29:31 EST
On Tue, Nov 03, 2026 at 06:14:48PM +0000, Nikhil P. Rao wrote:
> When the firmware sets IONIC_DEV_CAP_HWMON, create an "hwmon" auxiliary
> device so the adapter's sensors can be exposed by a driver in
> drivers/hwmon/ rather than by the Ethernet driver.
>
> The GETCAPS response buffer belongs to ionic for the life of the device,
> not to the hwmon driver, so a command abandoned on timeout or unbind can
> only write into that buffer, never into freed memory.
>
> Reviewed-by: Brett Creeley <brett.creeley@xxxxxxx>
> Signed-off-by: Nikhil P. Rao <nikhil.rao@xxxxxxx>
Reviewed-by: Simon Horman <horms@xxxxxxxxxx>