[PATCH v3 02/10] pinctrl: scmi: refuse an inexact drive strength in milliamperes
Linus Walleij
linusw at kernel.org
Wed Nov 25 10:51:14 PST 2026
On Mon, Nov 23, 2026 at 4:21 PM Clément Le Goffic
<clegoffic at baylibre.com> 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 at linux-m68k.org>
> Closes: https://lore.kernel.org/all/CAMuHMdWwp4RtKnBpFNJPHdigzrQ-wf3yt-pBZGG9QKs9tcd_Ow@mail.gmail.com/
> Signed-off-by: Clément Le Goffic <clegoffic at baylibre.com>
Patch applied for fixes. (Unless Cristian says there is some problem
with it!)
Yours,
Linus Walleij
More information about the linux-arm-kernel
mailing list