]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
pinctrl: aspeed: g5: Constrain LPC binding revision workaround to AST2500
authorAndrew Jeffery <andrew@codeconstruct.com.au>
Thu, 11 Dec 2025 08:45:44 +0000 (17:45 +0900)
committerLinus Walleij <linusw@kernel.org>
Fri, 9 Jan 2026 13:33:37 +0000 (14:33 +0100)
Discovering a phandle to an AST2400 or AST2600 LPC node indicates an
error for the purpose of the AST2500 pinctrl driver.

Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
Reviewed-by: Linus Walleij <linusw@kernel.org>
Signed-off-by: Linus Walleij <linusw@kernel.org>
drivers/pinctrl/aspeed/pinctrl-aspeed-g5.c

index 792089628362a1ed1c3eccd4e46c41a3ac7a79f6..d4c364d19d641d8acd4723051f04b5e5d8b4dfb0 100644 (file)
@@ -2654,9 +2654,7 @@ static struct regmap *aspeed_g5_acquire_regmap(struct aspeed_pinmux_data *ctx,
                np = of_parse_phandle(ctx->dev->of_node,
                                        "aspeed,external-nodes", 1);
                if (np) {
-                       if (!of_device_is_compatible(np->parent, "aspeed,ast2400-lpc-v2") &&
-                           !of_device_is_compatible(np->parent, "aspeed,ast2500-lpc-v2") &&
-                           !of_device_is_compatible(np->parent, "aspeed,ast2600-lpc-v2"))
+                       if (!of_device_is_compatible(np->parent, "aspeed,ast2500-lpc-v2"))
                                return ERR_PTR(-ENODEV);
 
                        map = syscon_node_to_regmap(np->parent);