linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] pinctrl: pinconf-generic: check error value EOPNOTSUPP
@ 2024-04-01 14:10 Peng Fan (OSS)
  2024-04-04 11:44 ` Linus Walleij
  0 siblings, 1 reply; 18+ messages in thread
From: Peng Fan (OSS) @ 2024-04-01 14:10 UTC (permalink / raw)
  To: linus.walleij, brgl, linux-gpio, linux-kernel
  Cc: cristian.marussi, sudeep.holla, Peng Fan

From: Peng Fan <peng.fan@nxp.com>

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@nxp.com>
---
 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


^ permalink raw reply related	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2024-04-05 16:27 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-01 14:10 [PATCH] pinctrl: pinconf-generic: check error value EOPNOTSUPP Peng Fan (OSS)
2024-04-04 11:44 ` Linus Walleij
2024-04-04 17:05   ` Andy Shevchenko
2024-04-04 19:03     ` Linus Walleij
2024-04-04 19:23       ` Andy Shevchenko
2024-04-05  0:26         ` Peng Fan
2024-04-05  2:13     ` Peng Fan
2024-04-05  9:46       ` Sudeep Holla
2024-04-05 15:39         ` Andy Shevchenko
2024-04-05 15:38       ` Andy Shevchenko
2024-04-05 15:47         ` Sudeep Holla
2024-04-05 15:55           ` Andy Shevchenko
2024-04-05 16:07             ` Sudeep Holla
2024-04-05 16:20               ` Andy Shevchenko
2024-04-05 16:06           ` Cristian Marussi
2024-04-05 16:16             ` Andy Shevchenko
2024-04-05 16:23               ` Cristian Marussi
2024-04-05 16:27                 ` Andy Shevchenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).