Re: [PATCH v3 02/10] pinctrl: scmi: refuse an inexact drive strength in milliamperes
From: Linus Walleij
Date: Wed Nov 25 2026 - 13:51:32 EST
On Mon, Nov 23, 2026 at 4:21 PM Clément Le Goffic
<clegoffic@xxxxxxxxxxxx> wrote:
> A get of PIN_CONFIG_DRIVE_STRENGTH truncated a value that is not a whole
> milliampere, and a set did not check the conversion to microamperes for
> an overflow.
> Return -EINVAL in both cases instead of truncating or wrapping.
> PIN_CONFIG_DRIVE_STRENGTH_UA still reads the exact value.
>
> Fixes: cc2f90768e97 ("pinctrl: scmi: send the drive strength in microamperes")
> Reported-by: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx>
> Closes: https://lore.kernel.org/all/CAMuHMdWwp4RtKnBpFNJPHdigzrQ-wf3yt-pBZGG9QKs9tcd_Ow@xxxxxxxxxxxxxx/
> Signed-off-by: Clément Le Goffic <clegoffic@xxxxxxxxxxxx>
Patch applied for fixes. (Unless Cristian says there is some problem
with it!)
Yours,
Linus Walleij