Skip to contentSkip to conversation

pinctrl: amd: Don't show `Invalid config param` errors

PATCH In review Mario Limonciello 2 participants 5 messages Jul 17, 2023 – Aug 7, 2023

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pinctrl: amd: Don't show `Invalid config param` errors

On some systems amd_pinconf_set() is called with parameters 0x8 (PIN_CONFIG_DRIVE_PUSH_PULL) or 0x14 (PIN_CONFIG_PERSIST_STATE) which are not supported by pinctrl-amd.

Don't show an err message when called with an invalid parameter, downgrade this to debug instead.

Fixes 635a750d958e1 ("pinctrl: amd: Use amd_pinconf_set() for all config options")
---
 drivers/pinctrl/pinctrl-amd.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/pinctrl/pinctrl-amd.c +2 -2
index 4a8c1b57a90d6..20bd97a603d9c 100644
@@ -748,7 +748,7 @@ static int amd_pinconf_get(struct pinctrl_dev *pctldev,
 		break;
 
 	default:
-		dev_err(&gpio_dev->pdev->dev, "Invalid config param %04x\n",
+		dev_dbg(&gpio_dev->pdev->dev, "Invalid config param %04x\n",
 			param);
 		return -ENOTSUPP;
 	}
@@ -798,7 +798,7 @@ static int amd_pinconf_set(struct pinctrl_dev *pctldev, unsigned int pin,
 			break;
 
 		default:
-			dev_err(&gpio_dev->pdev->dev,
+			dev_dbg(&gpio_dev->pdev->dev,
 				"Invalid config param %04x\n", param);
 			ret = -ENOTSUPP;
 		}
Signature · 1 line
2.34.1
#1 lore raw
Quoted 10 lines · Mario Limonciello

On some systems amd_pinconf_set() is called with parameters 0x8 (PIN_CONFIG_DRIVE_PUSH_PULL) or 0x14 (PIN_CONFIG_PERSIST_STATE) which are not supported by pinctrl-amd.

Don't show an err message when called with an invalid parameter, downgrade this to debug instead.

Fixes 635a750d958e1 ("pinctrl: amd: Use amd_pinconf_set() for all config options")

Applied for nonurgent fixes.

Yours,
Linus Walleij

#2 lore raw
Quoted 7 lines · Linus Walleij
Quoted 4 lines · Mario Limonciello

On some systems amd_pinconf_set() is called with parameters 0x8 (PIN_CONFIG_DRIVE_PUSH_PULL) or 0x14 (PIN_CONFIG_PERSIST_STATE) which are not supported by pinctrl-amd.

Quoted 9 lines
Quoted 6 lines

Don't show an err message when called with an invalid parameter, downgrade this to debug instead.

Fixes 635a750d958e1 ("pinctrl: amd: Use amd_pinconf_set() for all config options")

Applied for nonurgent fixes.

Just wanted to check if you'll be sending this out for -rc6. It backported to stable and a few bugs cropped up because it's noisy.

#3 lore raw
Quoted 15 lines · Mario Limonciello
Quoted 14 lines · Linus Walleij
Quoted 10 lines · Mario Limonciello

On some systems amd_pinconf_set() is called with parameters 0x8 (PIN_CONFIG_DRIVE_PUSH_PULL) or 0x14 (PIN_CONFIG_PERSIST_STATE) which are not supported by pinctrl-amd.

Don't show an err message when called with an invalid parameter, downgrade this to debug instead.

Fixes 635a750d958e1 ("pinctrl: amd: Use amd_pinconf_set() for all config options")
Quoted 5 lines
Quoted 2 lines

Applied for nonurgent fixes.

Just wanted to check if you'll be sending this out for -rc6. It backported to stable and a few bugs cropped up because it's noisy.

No, nonurgent means I queue it for v6.6. Fear of causing regressions on mainline is the reason to not send fixes unless they are urgent.

Yours,
Linus Walleij

#4 lore raw
Quoted 20 lines · Linus Walleij
Quoted 18 lines · Mario Limonciello
Quoted 16 lines · Linus Walleij
Quoted 10 lines · Mario Limonciello

On some systems amd_pinconf_set() is called with parameters 0x8 (PIN_CONFIG_DRIVE_PUSH_PULL) or 0x14 (PIN_CONFIG_PERSIST_STATE) which are not supported by pinctrl-amd.

Don't show an err message when called with an invalid parameter, downgrade this to debug instead.

Fixes 635a750d958e1 ("pinctrl: amd: Use amd_pinconf_set() for all config options")

Applied for nonurgent fixes.

Quoted 8 lines
Quoted 2 lines

Just wanted to check if you'll be sending this out for -rc6. It backported to stable and a few bugs cropped up because it's noisy.

No, nonurgent means I queue it for v6.6. Fear of causing regressions on mainline is the reason to not send fixes unless they are urgent.

Yours,
Linus Walleij

Understood, thanks. I'll let reporters know to wait until 6.6 then for this particular fix.