Skip to content

Commit

Permalink
pinctrl: amd: Don't show Invalid config param errors
Browse files Browse the repository at this point in the history
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: [email protected] # 6.1
Fixes: 635a750 ("pinctrl: amd: Use amd_pinconf_set() for all config options")
Signed-off-by: Mario Limonciello <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Linus Walleij <[email protected]>
  • Loading branch information
superm1 authored and linusw committed Jul 23, 2023
1 parent ea90ca1 commit 87b549e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/pinctrl/pinctrl-amd.c
Original file line number Diff line number Diff line change
Expand Up @@ -769,7 +769,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;
}
Expand Down Expand Up @@ -822,7 +822,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;
}
Expand Down

0 comments on commit 87b549e

Please sign in to comment.