Re: [PATCH 1/2] hwmon: (cgbc-hwmon): Fix current sensors ID lookup

From: Guenter Roeck

Date: Thu Sep 10 2026 - 20:58:53 EST


On Thu, Sep 10, 2026 at 03:28:21PM +0200, Thomas Richard (congatec GmbH) wrote:
> Current sensors on the Congatec Board Controller don't use consecutive IDs,
> unlike other sensor types (voltage, temperature, fan). The driver assumed
> consecutive IDs and performed a simple lookup, which caused an unknown
> sensor warning. Define current sensor IDs explicitly.
>
> Changes the warning on conga-SA7 (type and channel are correct now).
> Before:
> Board Controller returned an unknown sensor (type=2, channel=17), ignore it
> After:
> Board Controller returned an unknown sensor (bc_type=1, bc_id=11), ignore it
>
> Cc: stable@xxxxxxxxxx
> Fixes: 08ebc9def79f ("hwmon: Add Congatec Board Controller monitoring driver")
> Signed-off-by: Thomas Richard (congatec GmbH) <thomas.richard@xxxxxxxxxxx>

Applied.

Thanks,
Guenter