[PATCH] mtd: physmap_of_gemini: Fix disabled pinctrl state check
Linus Walleij
linusw at kernel.org
Fri Feb 27 00:59:51 PST 2026
On Fri, Feb 27, 2026 at 2:44 AM Chen Ni <nichen at iscas.ac.cn> wrote:
> The condition for checking the disabled pinctrl state incorrectly checks
> gf->enabled_state instead of gf->disabled_state. This causes misleading
> error messages and could lead to incorrect behavior when only one of the
> pinctrl states is defined.
>
> Fix the condition to properly check gf->disabled_state.
>
> Fixes: 9d3b5086f6d4 ("mtd: physmap_of_gemini: Handle pin control")
> Signed-off-by: Chen Ni <nichen at iscas.ac.cn>
Ooops! Thanks for finding this Chen!
Reviewed-by: Linus Walleij <linusw at kernel.org>
Yours,
Linus Walleij
More information about the linux-mtd
mailing list