kernel-janitors.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH] spi: spi-ti-qspi: call pm_runtime_put on pm_runtime_get failure
@ 2020-06-02  8:40 Markus Elfring
  2020-06-02  9:49 ` Mark Brown
  0 siblings, 1 reply; 8+ messages in thread
From: Markus Elfring @ 2020-06-02  8:40 UTC (permalink / raw)
  To: Navid Emamdoost, linux-spi
  Cc: Navid Emamdoost, Kangjie Lu, Stephen McCamant, Qiushi Wu,
	Mark Brown, Dinghao Liu, LKML, kernel-janitors

> The counter is incremented via pm_runtime_get even in failure case.
> To correct the counter call pm_runtime_put in case of failure, too.

How do you think about a wording variant like the following?

   Change description:
   The PM runtime reference counter is generally incremented by a call of
   the function “pm_runtime_get_sync”.
   Thus call the function “pm_runtime_put_autosuspend” also in one error case
   to keep the reference counting consistent.


Would you like to add the tag “Fixes” to the commit message?

Regards,
Markus

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

* Re: [PATCH] spi: spi-ti-qspi: call pm_runtime_put on pm_runtime_get failure
  2020-06-02  8:40 [PATCH] spi: spi-ti-qspi: call pm_runtime_put on pm_runtime_get failure Markus Elfring
@ 2020-06-02  9:49 ` Mark Brown
  2020-06-02 10:02   ` Markus Elfring
  0 siblings, 1 reply; 8+ messages in thread
From: Mark Brown @ 2020-06-02  9:49 UTC (permalink / raw)
  To: Markus Elfring
  Cc: Navid Emamdoost, linux-spi, Navid Emamdoost, Kangjie Lu,
	Stephen McCamant, Qiushi Wu, Dinghao Liu, LKML, kernel-janitors

[-- Attachment #1: Type: text/plain, Size: 638 bytes --]

On Tue, Jun 02, 2020 at 10:40:33AM +0200, Markus Elfring wrote:
> > The counter is incremented via pm_runtime_get even in failure case.
> > To correct the counter call pm_runtime_put in case of failure, too.
> 
> How do you think about a wording variant like the following?
> 
>    Change description:
>    The PM runtime reference counter is generally incremented by a call of
>    the function “pm_runtime_get_sync”.
>    Thus call the function “pm_runtime_put_autosuspend” also in one error case
>    to keep the reference counting consistent.

The original changelog is perfectly fine, please stop sending these.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

* Re: [PATCH] spi: spi-ti-qspi: call pm_runtime_put on pm_runtime_get failure
  2020-06-02  9:49 ` Mark Brown
@ 2020-06-02 10:02   ` Markus Elfring
  2020-06-02 14:13     ` Mark Brown
  0 siblings, 1 reply; 8+ messages in thread
From: Markus Elfring @ 2020-06-02 10:02 UTC (permalink / raw)
  To: Mark Brown, Navid Emamdoost, linux-spi
  Cc: Navid Emamdoost, Kangjie Lu, Stephen McCamant, Qiushi Wu,
	Dinghao Liu, LKML, kernel-janitors

> The original changelog is perfectly fine, please stop sending these.

I find this commit message improvable also according to Linux software
development documentation.

Regards,
Markus

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

* Re: [PATCH] spi: spi-ti-qspi: call pm_runtime_put on pm_runtime_get failure
  2020-06-02 10:02   ` Markus Elfring
@ 2020-06-02 14:13     ` Mark Brown
  2020-06-02 15:05       ` Markus Elfring
  0 siblings, 1 reply; 8+ messages in thread
From: Mark Brown @ 2020-06-02 14:13 UTC (permalink / raw)
  To: Markus Elfring
  Cc: Navid Emamdoost, linux-spi, Navid Emamdoost, Kangjie Lu,
	Stephen McCamant, Qiushi Wu, Dinghao Liu, LKML, kernel-janitors

[-- Attachment #1: Type: text/plain, Size: 516 bytes --]

On Tue, Jun 02, 2020 at 12:02:11PM +0200, Markus Elfring wrote:

> > The original changelog is perfectly fine, please stop sending these.

> I find this commit message improvable also according to Linux software
> development documentation.

Causing people to send out new versions of things for tweaks to the
commit log consumes time for them and everyone they're sending changes
to.  Pushing people to make trivial rewordings of their commit logs to
match your particular taste is not a good use of people's time.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

* Re: spi: spi-ti-qspi: call pm_runtime_put on pm_runtime_get failure
  2020-06-02 14:13     ` Mark Brown
@ 2020-06-02 15:05       ` Markus Elfring
  2020-06-02 18:36         ` Mark Brown
  0 siblings, 1 reply; 8+ messages in thread
From: Markus Elfring @ 2020-06-02 15:05 UTC (permalink / raw)
  To: Mark Brown, Navid Emamdoost, linux-spi
  Cc: Navid Emamdoost, Kangjie Lu, Stephen McCamant, Qiushi Wu,
	Dinghao Liu, LKML, kernel-janitors

>> I find this commit message improvable also according to Linux software
>> development documentation.
>
> Causing people to send out new versions of things for tweaks to the
> commit log consumes time for them and everyone they're sending changes to.

Improving patches (besides source code adjustments) is an usual software
development activity, isn't it?


> Pushing people to make trivial rewordings of their commit logs to
> match your particular taste is not a good use of people's time.

Corresponding tweaks can be combined with recommended tags.
It can be that only “trivial” items were left over for another bit
of fine-tuning. Subsequent description variants can reduce
the probability for additional patch review iterations, can't they?

Regards,
Markus

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

* Re: spi: spi-ti-qspi: call pm_runtime_put on pm_runtime_get failure
  2020-06-02 15:05       ` Markus Elfring
@ 2020-06-02 18:36         ` Mark Brown
  2020-06-02 19:35           ` Navid Emamdoost
  2020-06-02 19:54           ` Markus Elfring
  0 siblings, 2 replies; 8+ messages in thread
From: Mark Brown @ 2020-06-02 18:36 UTC (permalink / raw)
  To: Markus Elfring
  Cc: Navid Emamdoost, linux-spi, Navid Emamdoost, Kangjie Lu,
	Stephen McCamant, Qiushi Wu, Dinghao Liu, LKML, kernel-janitors

[-- Attachment #1: Type: text/plain, Size: 770 bytes --]

On Tue, Jun 02, 2020 at 05:05:18PM +0200, Markus Elfring wrote:
> >> I find this commit message improvable also according to Linux software
> >> development documentation.

> > Causing people to send out new versions of things for tweaks to the
> > commit log consumes time for them and everyone they're sending changes to.

> Improving patches (besides source code adjustments) is an usual software
> development activity, isn't it?

Your updates were not improvements.  The formatting was worse and to my
native speaker eyes the grammar was worse.  With this sort of stylistic
thing it's especially important that any review aligns with the needs
and practices of the subsystem, there is opinion in there and multiple
opinions just makes things harder for submitters.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

* Re: spi: spi-ti-qspi: call pm_runtime_put on pm_runtime_get failure
  2020-06-02 18:36         ` Mark Brown
@ 2020-06-02 19:35           ` Navid Emamdoost
  2020-06-02 19:54           ` Markus Elfring
  1 sibling, 0 replies; 8+ messages in thread
From: Navid Emamdoost @ 2020-06-02 19:35 UTC (permalink / raw)
  To: Mark Brown
  Cc: Markus Elfring, linux-spi, Navid Emamdoost, Kangjie Lu,
	Stephen McCamant, Qiushi Wu, Dinghao Liu, LKML, kernel-janitors

On Tue, Jun 2, 2020 at 1:36 PM Mark Brown <broonie@kernel.org> wrote:
>
> On Tue, Jun 02, 2020 at 05:05:18PM +0200, Markus Elfring wrote:
> > >> I find this commit message improvable also according to Linux software
> > >> development documentation.
>
> > > Causing people to send out new versions of things for tweaks to the
> > > commit log consumes time for them and everyone they're sending changes to.
>
> > Improving patches (besides source code adjustments) is an usual software
> > development activity, isn't it?
>
> Your updates were not improvements.  The formatting was worse and to my
> native speaker eyes the grammar was worse.  With this sort of stylistic
> thing it's especially important that any review aligns with the needs
> and practices of the subsystem, there is opinion in there and multiple
> opinions just makes things harder for submitters.

Thanks Mark for your constructive opinion,
In most cases, such stylistic comments become confusing and
discouraging to those who are trying to chip in. Personally I think as
long as the patch does not contain typo and is not ambiguous from the
maintainer's perspective, it should be fine to let it go forward.



-- 
Navid.

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

* Re: spi: spi-ti-qspi: call pm_runtime_put on pm_runtime_get failure
  2020-06-02 18:36         ` Mark Brown
  2020-06-02 19:35           ` Navid Emamdoost
@ 2020-06-02 19:54           ` Markus Elfring
  1 sibling, 0 replies; 8+ messages in thread
From: Markus Elfring @ 2020-06-02 19:54 UTC (permalink / raw)
  To: Mark Brown, Navid Emamdoost, linux-spi
  Cc: Navid Emamdoost, Kangjie Lu, Stephen McCamant, Qiushi Wu,
	Dinghao Liu, LKML, kernel-janitors

> Your updates were not improvements.

I find your view interesting.

Do you refer to a specific wording suggestion here?
https://lore.kernel.org/linux-spi/26028f50-3fb8-eb08-3c9f-08ada018bf9e@web.de/
https://lkml.org/lkml/2020/6/2/210

You pointed another programming alternative out.
https://lore.kernel.org/patchwork/comment/1447149/
https://lore.kernel.org/linux-spi/20200602095411.GB5684@sirena.org.uk/


> The formatting was worse

Do you prefer an other quotation style for function names?


> and to my native speaker eyes the grammar was worse.

I am curious if a more pleasing wording variant will be found.


> With this sort of stylistic thing it's especially important
> that any review aligns with the needs and practices of the subsystem,

Such an expectation is reasonable to some degree.


> there is opinion in there and multiple opinions just makes things harder
> for submitters.

Do any of such views deviate from the Linux development documentation?

Regards,
Markus

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

end of thread, other threads:[~2020-06-02 19:54 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-02  8:40 [PATCH] spi: spi-ti-qspi: call pm_runtime_put on pm_runtime_get failure Markus Elfring
2020-06-02  9:49 ` Mark Brown
2020-06-02 10:02   ` Markus Elfring
2020-06-02 14:13     ` Mark Brown
2020-06-02 15:05       ` Markus Elfring
2020-06-02 18:36         ` Mark Brown
2020-06-02 19:35           ` Navid Emamdoost
2020-06-02 19:54           ` Markus Elfring

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