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

Configure Feed

Select the types of activity you want to include in your feed.

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: 635a750d958e1 ("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>

authored by

Mario Limonciello and committed by
Linus Walleij
87b549ef ea90ca10

+2 -2
+2 -2
drivers/pinctrl/pinctrl-amd.c
··· 769 769 break; 770 770 771 771 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", 773 773 param); 774 774 return -ENOTSUPP; 775 775 } ··· 822 822 break; 823 823 824 824 default: 825 - dev_err(&gpio_dev->pdev->dev, 825 + dev_dbg(&gpio_dev->pdev->dev, 826 826 "Invalid config param %04x\n", param); 827 827 ret = -ENOTSUPP; 828 828 }