Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

pinctrl: scmi: add blocklist

i.MX95 will have its own pinctrl scmi driver, so need block
pinctrl-scmi driver for i.MX95, otherwise there will be two pinctrl
devices for a single scmi protocol@19.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Acked-by: Sudeep Holla <sudeep.holla@arm.com>
Reviewed-by: Dong Aisheng <aisheng.dong@nxp.com>
Link: https://lore.kernel.org/r/20240521-pinctrl-scmi-imx95-v1-2-9a1175d735fd@nxp.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Peng Fan and committed by
Linus Walleij
dbd47012 997f2cde

+9
+9
drivers/pinctrl/pinctrl-scmi.c
··· 11 11 #include <linux/errno.h> 12 12 #include <linux/module.h> 13 13 #include <linux/mod_devicetable.h> 14 + #include <linux/of.h> 14 15 #include <linux/scmi_protocol.h> 15 16 #include <linux/slab.h> 16 17 #include <linux/types.h> ··· 505 504 return 0; 506 505 } 507 506 507 + static const char * const scmi_pinctrl_blocklist[] = { 508 + "fsl,imx95", 509 + NULL 510 + }; 511 + 508 512 static int scmi_pinctrl_probe(struct scmi_device *sdev) 509 513 { 510 514 int ret; ··· 520 514 521 515 if (!sdev->handle) 522 516 return -EINVAL; 517 + 518 + if (of_machine_compatible_match(scmi_pinctrl_blocklist)) 519 + return -ENODEV; 523 520 524 521 handle = sdev->handle; 525 522