[PATCH 04/11] pinctrl: scmi: report an off setting as not set
Andy Shevchenko
andriy.shevchenko at intel.com
Tue Nov 3 03:38:09 PST 2026
On Fri, Oct 30, 2026 at 04:58:35PM +0100, Clément Le Goffic wrote:
> A get of a setting that is on or off, the flags and the pulls, returned
> 0 as a value, so every one of them showed as set on every pin. Return
> -EINVAL when the platform answers 0, which is how pinconf reports a
> setting that is not active.
...
> +static int pinctrl_scmi_map_pinconf_arg_get(enum pin_config_param param,
> + u32 *value)
I would dare to keep it on a single line.
> +{
> + if (pinctrl_scmi_pinconf_inactive_flag(param, *value))
> + return -EINVAL;
> +
> + if (param == PIN_CONFIG_DRIVE_STRENGTH)
> + *value /= MILLI;
> + return 0;
> }
--
With Best Regards,
Andy Shevchenko
More information about the linux-arm-kernel
mailing list