Skip to content

Commit 87b549e

Browse files
superm1Linus Walleij
authored andcommitted
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. Cc: stable@vger.kernel.org # 6.1 Fixes: 635a750 ("pinctrl: amd: Use amd_pinconf_set() for all config options") Signed-off-by: Mario Limonciello <mario.limonciello@amd.com> Link: https://lore.kernel.org/r/20230717201652.17168-1-mario.limonciello@amd.com Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
1 parent ea90ca1 commit 87b549e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/pinctrl/pinctrl-amd.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,7 @@ static int amd_pinconf_get(struct pinctrl_dev *pctldev,
769769
break;
770770

771771
default:
772-
dev_err(&gpio_dev->pdev->dev, "Invalid config param %04x\n",
772+
dev_dbg(&gpio_dev->pdev->dev, "Invalid config param %04x\n",
773773
param);
774774
return -ENOTSUPP;
775775
}
@@ -822,7 +822,7 @@ static int amd_pinconf_set(struct pinctrl_dev *pctldev, unsigned int pin,
822822
break;
823823

824824
default:
825-
dev_err(&gpio_dev->pdev->dev,
825+
dev_dbg(&gpio_dev->pdev->dev,
826826
"Invalid config param %04x\n", param);
827827
ret = -ENOTSUPP;
828828
}

0 commit comments

Comments
 (0)