Linux kernel -stable discussions
 help / color / mirror / Atom feed
* Re: Patch "hwmon: (pmbus) Use dev_err_probe() to filter -EPROBE_DEFER error messages" has been added to the 5.10-stable tree
       [not found] <20220915124557.591485-1-sashal@kernel.org>
@ 2022-09-15 18:48 ` Marion & Christophe JAILLET
  2022-09-16 10:47   ` Guenter Roeck
  0 siblings, 1 reply; 3+ messages in thread
From: Marion & Christophe JAILLET @ 2022-09-15 18:48 UTC (permalink / raw)
  To: Sasha Levin, stable-commits, stable@vger.kernel.org
  Cc: Guenter Roeck, Jean Delvare


Le 15/09/2022 à 14:45, Sasha Levin a écrit :
> This is a note to let you know that I've just added the patch titled
>
>      hwmon: (pmbus) Use dev_err_probe() to filter -EPROBE_DEFER error messages
>
> to the 5.10-stable tree which can be found at:
>      http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
>
> The filename of the patch is:
>       hwmon-pmbus-use-dev_err_probe-to-filter-eprobe_defer.patch
> and it can be found in the queue-5.10 subdirectory.
>
> If you, or anyone else, feels it should not be added to the stable tree,
> please let <stable@vger.kernel.org> know about it.
>
Hi,

I'm not sure that this one makes a real sense for backport.

It can't hurt, but it does not fix a real issue, it just voids a 
potential spurious message.

In my original mail, there is no "stable@" or "fix" or "bug" keywords or 
"Fixes:" tag.
There is also apparently no patch in this backport serie that relies on 
this patch.

Why has it been selected?

(same for 5.15 and 5.19)

CJ


>
> commit d20abd39a7843f50e07b6487c205d775f3361ac1
> Author: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
> Date:   Wed Aug 17 15:04:00 2022 +0200
>
>      hwmon: (pmbus) Use dev_err_probe() to filter -EPROBE_DEFER error messages
>      
>      [ Upstream commit 09e52d17b72d3a4bf6951a90ccd8c97fae04e5cf ]
>      
>      devm_regulator_register() can return -EPROBE_DEFER, so better use
>      dev_err_probe() instead of dev_err(), it is less verbose in such a case.
>      
>      It is also more informative, which can't hurt.
>      
>      Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
>      Link: https://lore.kernel.org/r/3adf1cea6e32e54c0f71f4604b4e98d992beaa71.1660741419.git.christophe.jaillet@wanadoo.fr
>      Signed-off-by: Guenter Roeck <linux@roeck-us.net>
>      Signed-off-by: Sasha Levin <sashal@kernel.org>
>
> diff --git a/drivers/hwmon/pmbus/pmbus_core.c b/drivers/hwmon/pmbus/pmbus_core.c
> index 117e3ce9c76ad..6d8ace96b0a73 100644
> --- a/drivers/hwmon/pmbus/pmbus_core.c
> +++ b/drivers/hwmon/pmbus/pmbus_core.c
> @@ -2322,11 +2322,10 @@ static int pmbus_regulator_register(struct pmbus_data *data)
>   
>   		rdev = devm_regulator_register(dev, &info->reg_desc[i],
>   					       &config);
> -		if (IS_ERR(rdev)) {
> -			dev_err(dev, "Failed to register %s regulator\n",
> -				info->reg_desc[i].name);
> -			return PTR_ERR(rdev);
> -		}
> +		if (IS_ERR(rdev))
> +			return dev_err_probe(dev, PTR_ERR(rdev),
> +					     "Failed to register %s regulator\n",
> +					     info->reg_desc[i].name);
>   	}
>   
>   	return 0;

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

* Re: Patch "hwmon: (pmbus) Use dev_err_probe() to filter -EPROBE_DEFER error messages" has been added to the 5.10-stable tree
  2022-09-15 18:48 ` Patch "hwmon: (pmbus) Use dev_err_probe() to filter -EPROBE_DEFER error messages" has been added to the 5.10-stable tree Marion & Christophe JAILLET
@ 2022-09-16 10:47   ` Guenter Roeck
  2022-09-16 10:53     ` Sasha Levin
  0 siblings, 1 reply; 3+ messages in thread
From: Guenter Roeck @ 2022-09-16 10:47 UTC (permalink / raw)
  To: Marion & Christophe JAILLET
  Cc: Sasha Levin, stable-commits, stable@vger.kernel.org, Jean Delvare

On Thu, Sep 15, 2022 at 08:48:05PM +0200, Marion & Christophe JAILLET wrote:
> 
> Le 15/09/2022 à 14:45, Sasha Levin a écrit :
> > This is a note to let you know that I've just added the patch titled
> > 
> >      hwmon: (pmbus) Use dev_err_probe() to filter -EPROBE_DEFER error messages
> > 
> > to the 5.10-stable tree which can be found at:
> >      http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
> > 
> > The filename of the patch is:
> >       hwmon-pmbus-use-dev_err_probe-to-filter-eprobe_defer.patch
> > and it can be found in the queue-5.10 subdirectory.
> > 
> > If you, or anyone else, feels it should not be added to the stable tree,
> > please let <stable@vger.kernel.org> know about it.
> > 
> Hi,
> 
> I'm not sure that this one makes a real sense for backport.
> 
> It can't hurt, but it does not fix a real issue, it just voids a potential
> spurious message.
> 
> In my original mail, there is no "stable@" or "fix" or "bug" keywords or
> "Fixes:" tag.
> There is also apparently no patch in this backport serie that relies on this
> patch.
> 
> Why has it been selected?
> 
That is essentially how AUTOSEL works. It picks patches based on keywords.
I am sure Sasha can provide details.

Guenter

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

* Re: Patch "hwmon: (pmbus) Use dev_err_probe() to filter -EPROBE_DEFER error messages" has been added to the 5.10-stable tree
  2022-09-16 10:47   ` Guenter Roeck
@ 2022-09-16 10:53     ` Sasha Levin
  0 siblings, 0 replies; 3+ messages in thread
From: Sasha Levin @ 2022-09-16 10:53 UTC (permalink / raw)
  To: Guenter Roeck
  Cc: Marion & Christophe JAILLET, stable-commits,
	stable@vger.kernel.org, Jean Delvare

On Fri, Sep 16, 2022 at 03:47:25AM -0700, Guenter Roeck wrote:
>On Thu, Sep 15, 2022 at 08:48:05PM +0200, Marion & Christophe JAILLET wrote:
>>
>> Le 15/09/2022 à 14:45, Sasha Levin a écrit :
>> > This is a note to let you know that I've just added the patch titled
>> >
>> >      hwmon: (pmbus) Use dev_err_probe() to filter -EPROBE_DEFER error messages
>> >
>> > to the 5.10-stable tree which can be found at:
>> >      http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
>> >
>> > The filename of the patch is:
>> >       hwmon-pmbus-use-dev_err_probe-to-filter-eprobe_defer.patch
>> > and it can be found in the queue-5.10 subdirectory.
>> >
>> > If you, or anyone else, feels it should not be added to the stable tree,
>> > please let <stable@vger.kernel.org> know about it.
>> >
>> Hi,
>>
>> I'm not sure that this one makes a real sense for backport.
>>
>> It can't hurt, but it does not fix a real issue, it just voids a potential
>> spurious message.
>>
>> In my original mail, there is no "stable@" or "fix" or "bug" keywords or
>> "Fixes:" tag.
>> There is also apparently no patch in this backport serie that relies on this
>> patch.
>>
>> Why has it been selected?
>>
>That is essentially how AUTOSEL works. It picks patches based on keywords.
>I am sure Sasha can provide details.

Likely because of how many issues existed in this area (deferred
probing), that it got selected automatically. I'll go drop it.

-- 
Thanks,
Sasha

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

end of thread, other threads:[~2022-09-16 11:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20220915124557.591485-1-sashal@kernel.org>
2022-09-15 18:48 ` Patch "hwmon: (pmbus) Use dev_err_probe() to filter -EPROBE_DEFER error messages" has been added to the 5.10-stable tree Marion & Christophe JAILLET
2022-09-16 10:47   ` Guenter Roeck
2022-09-16 10:53     ` Sasha Levin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox