linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] pinctrl: amd: Don't show `Invalid config param` errors
@ 2023-07-17 20:16 Mario Limonciello
  2023-07-23 19:41 ` Linus Walleij
  0 siblings, 1 reply; 5+ messages in thread
From: Mario Limonciello @ 2023-07-17 20:16 UTC (permalink / raw)
  To: linus.walleij
  Cc: Basavaraj.Natikar, Shyam-sundar.S-k, linux-gpio, linux-kernel,
	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.

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>
---
 drivers/pinctrl/pinctrl-amd.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/pinctrl/pinctrl-amd.c b/drivers/pinctrl/pinctrl-amd.c
index 4a8c1b57a90d6..20bd97a603d9c 100644
--- a/drivers/pinctrl/pinctrl-amd.c
+++ b/drivers/pinctrl/pinctrl-amd.c
@@ -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;
 		}
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] pinctrl: amd: Don't show `Invalid config param` errors
  2023-07-17 20:16 [PATCH] pinctrl: amd: Don't show `Invalid config param` errors Mario Limonciello
@ 2023-07-23 19:41 ` Linus Walleij
  2023-08-07 18:17   ` Mario Limonciello
  0 siblings, 1 reply; 5+ messages in thread
From: Linus Walleij @ 2023-07-23 19:41 UTC (permalink / raw)
  To: Mario Limonciello
  Cc: Basavaraj.Natikar, Shyam-sundar.S-k, linux-gpio, linux-kernel

On Mon, Jul 17, 2023 at 10:17 PM Mario Limonciello
<mario.limonciello@amd.com> wrote:

> 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>

Applied for nonurgent fixes.

Yours,
Linus Walleij

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] pinctrl: amd: Don't show `Invalid config param` errors
  2023-07-23 19:41 ` Linus Walleij
@ 2023-08-07 18:17   ` Mario Limonciello
  2023-08-07 20:45     ` Linus Walleij
  0 siblings, 1 reply; 5+ messages in thread
From: Mario Limonciello @ 2023-08-07 18:17 UTC (permalink / raw)
  To: Linus Walleij
  Cc: Basavaraj.Natikar, Shyam-sundar.S-k, linux-gpio, linux-kernel

On 7/23/2023 14:41, Linus Walleij wrote:
> On Mon, Jul 17, 2023 at 10:17 PM Mario Limonciello
> <mario.limonciello@amd.com> wrote:
> 
>> 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>
> 
> 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.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] pinctrl: amd: Don't show `Invalid config param` errors
  2023-08-07 18:17   ` Mario Limonciello
@ 2023-08-07 20:45     ` Linus Walleij
  2023-08-07 20:47       ` Mario Limonciello
  0 siblings, 1 reply; 5+ messages in thread
From: Linus Walleij @ 2023-08-07 20:45 UTC (permalink / raw)
  To: Mario Limonciello
  Cc: Basavaraj.Natikar, Shyam-sundar.S-k, linux-gpio, linux-kernel

On Mon, Aug 7, 2023 at 8:17 PM Mario Limonciello
<mario.limonciello@amd.com> wrote:
> On 7/23/2023 14:41, Linus Walleij wrote:
> > On Mon, Jul 17, 2023 at 10:17 PM Mario Limonciello
> > <mario.limonciello@amd.com> wrote:
> >
> >> 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>
> >
> > 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] pinctrl: amd: Don't show `Invalid config param` errors
  2023-08-07 20:45     ` Linus Walleij
@ 2023-08-07 20:47       ` Mario Limonciello
  0 siblings, 0 replies; 5+ messages in thread
From: Mario Limonciello @ 2023-08-07 20:47 UTC (permalink / raw)
  To: Linus Walleij
  Cc: Basavaraj.Natikar, Shyam-sundar.S-k, linux-gpio, linux-kernel

On 8/7/2023 15:45, Linus Walleij wrote:
> On Mon, Aug 7, 2023 at 8:17 PM Mario Limonciello
> <mario.limonciello@amd.com> wrote:
>> On 7/23/2023 14:41, Linus Walleij wrote:
>>> On Mon, Jul 17, 2023 at 10:17 PM Mario Limonciello
>>> <mario.limonciello@amd.com> wrote:
>>>
>>>> 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>
>>>
>>> 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

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-08-07 20:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-17 20:16 [PATCH] pinctrl: amd: Don't show `Invalid config param` errors Mario Limonciello
2023-07-23 19:41 ` Linus Walleij
2023-08-07 18:17   ` Mario Limonciello
2023-08-07 20:45     ` Linus Walleij
2023-08-07 20:47       ` Mario Limonciello

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).