[PATCH v3 2/7] pinctrl: scmi: Add SCMI_PIN_INPUT_VALUE

Linus Walleij linusw at kernel.org
Wed Mar 11 14:46:28 PDT 2026


On Wed, Mar 11, 2026 at 8:38 PM Dan Carpenter <dan.carpenter at linaro.org> wrote:

> The PIN_CONFIG_LEVEL parameter represents the value of the pin, whether
> reading or writing to the pin.  In SCMI, the parameter is represented by
> two different values SCMI_PIN_OUTPUT_VALUE for writing to a pin and
> SCMI_PIN_INPUT_VALUE for reading.  The current code translates
> PIN_CONFIG_LEVEL as SCMI_PIN_OUTPUT_VALUE (writing).
>
> Add a function to translate it to either INPUT or OUTPUT depending on
> whether it is called from a _get or _set() operation.
>
> Signed-off-by: Dan Carpenter <dan.carpenter at linaro.org>

I think you nailed it :)
Reviewed-by: Linus Walleij <linusw at kernel.org>

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list