[PATCH] pinctrl: pinconf-generic: check error value EOPNOTSUPP

From: Peng Fan (OSS)
Date: Mon Apr 01 2024 - 10:02:39 EST


From: Peng Fan <peng.fan@xxxxxxx>

The SCMI error value SCMI_ERR_SUPPORT maps to linux error value
'-EOPNOTSUPP', so when dump configs, need check the error value
EOPNOTSUPP, otherwise there will be log "ERROR READING CONFIG SETTING".

Signed-off-by: Peng Fan <peng.fan@xxxxxxx>
---
drivers/pinctrl/pinconf-generic.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pinctrl/pinconf-generic.c b/drivers/pinctrl/pinconf-generic.c
index cada5d18ffae..541c2ac9ffcb 100644
--- a/drivers/pinctrl/pinconf-generic.c
+++ b/drivers/pinctrl/pinconf-generic.c
@@ -75,7 +75,7 @@ static void pinconf_generic_dump_one(struct pinctrl_dev *pctldev,
else
ret = pin_config_get_for_pin(pctldev, pin, &config);
/* These are legal errors */
- if (ret == -EINVAL || ret == -ENOTSUPP)
+ if (ret == -EINVAL || ret == -ENOTSUPP || ret == -EOPNOTSUPP)
continue;
if (ret) {
seq_printf(s, "ERROR READING CONFIG SETTING %d ", i);
--
2.37.1