--- /dev/null
+From 87b549efcb0f7934b0916d2a00607a878b6f1e0f Mon Sep 17 00:00:00 2001
+From: Mario Limonciello <mario.limonciello@amd.com>
+Date: Mon, 17 Jul 2023 15:16:52 -0500
+Subject: pinctrl: amd: Don't show `Invalid config param` errors
+
+From: Mario Limonciello <mario.limonciello@amd.com>
+
+commit 87b549efcb0f7934b0916d2a00607a878b6f1e0f upstream.
+
+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>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ drivers/pinctrl/pinctrl-amd.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+--- a/drivers/pinctrl/pinctrl-amd.c
++++ b/drivers/pinctrl/pinctrl-amd.c
+@@ -653,7 +653,7 @@ static int amd_pinconf_get(struct pinctr
+ 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;
+ }
+@@ -706,7 +706,7 @@ static int amd_pinconf_set(struct pinctr
+ break;
+
+ default:
+- dev_err(&gpio_dev->pdev->dev,
++ dev_dbg(&gpio_dev->pdev->dev,
+ "Invalid config param %04x\n", param);
+ ret = -ENOTSUPP;
+ }