All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH v1] i2c: img-scb: remove duplicate dev_err()
@ 2020-04-14 15:48 Markus Elfring
  2020-04-15  2:54 ` Dejin Zheng
  0 siblings, 1 reply; 8+ messages in thread
From: Markus Elfring @ 2020-04-14 15:48 UTC (permalink / raw)
  To: Dejin Zheng, linux-i2c
  Cc: linux-kernel, Allison Randal, Andy Shevchenko, Linus Walleij,
	Patrice Chotard, Shah Nehal-Bakulchandra, Tang Bin,
	Thomas Gleixner

> it will print an error message by itself when platform_get_irq()
> goes wrong. so don't need dev_err() in here again.

I suggest to improve the change description.
Can you get any further inspiration by previous patches from
other contributors according to the presented transformation pattern?

Would you like to adjust any more source files in the mentioned
software area?

Regards,
Markus

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

* Re: [PATCH v1] i2c: img-scb: remove duplicate dev_err()
  2020-04-14 15:48 [PATCH v1] i2c: img-scb: remove duplicate dev_err() Markus Elfring
@ 2020-04-15  2:54 ` Dejin Zheng
  2020-04-15  5:47   ` Markus Elfring
  0 siblings, 1 reply; 8+ messages in thread
From: Dejin Zheng @ 2020-04-15  2:54 UTC (permalink / raw)
  To: Markus Elfring
  Cc: linux-i2c, linux-kernel, Allison Randal, Andy Shevchenko,
	Linus Walleij, Patrice Chotard, Shah Nehal-Bakulchandra,
	Tang Bin, Thomas Gleixner

On Tue, Apr 14, 2020 at 05:48:41PM +0200, Markus Elfring wrote:
> > it will print an error message by itself when platform_get_irq()
> > goes wrong. so don't need dev_err() in here again.
> 
> I suggest to improve the change description.
> Can you get any further inspiration by previous patches from
> other contributors according to the presented transformation pattern?
> 
> Would you like to adjust any more source files in the mentioned
> software area?
>
Hi Markus:

Thanks for your comments, and maybe we can use coccinelle tools for
more source files do this change in the mentioned software area.

BR,
Dejin
> Regards,
> Markus

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

* Re: i2c: img-scb: remove duplicate dev_err()
  2020-04-15  2:54 ` Dejin Zheng
@ 2020-04-15  5:47   ` Markus Elfring
  2020-04-15 15:21     ` Dejin Zheng
  0 siblings, 1 reply; 8+ messages in thread
From: Markus Elfring @ 2020-04-15  5:47 UTC (permalink / raw)
  To: Dejin Zheng, linux-i2c
  Cc: linux-kernel, Allison Randal, Andy Shevchenko, Linus Walleij,
	Patrice Chotard, Shah Nehal-Bakulchandra, Tang Bin,
	Thomas Gleixner

> Thanks for your comments, and maybe we can use coccinelle tools for
> more source files do this change in the mentioned software area.

I found 19 source files (for example in the directory “drivers/i2c”
of the software “Linux next-20200408”) which seem to contain similar
update candidates according to a known transformation pattern.
Would you like to take another look at corresponding change possibilities?

Regards,
Markus

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

* Re: i2c: img-scb: remove duplicate dev_err()
  2020-04-15  5:47   ` Markus Elfring
@ 2020-04-15 15:21     ` Dejin Zheng
  2020-04-15 16:24       ` Markus Elfring
  0 siblings, 1 reply; 8+ messages in thread
From: Dejin Zheng @ 2020-04-15 15:21 UTC (permalink / raw)
  To: Markus Elfring
  Cc: linux-i2c, linux-kernel, Allison Randal, Andy Shevchenko,
	Linus Walleij, Patrice Chotard, Shah Nehal-Bakulchandra,
	Tang Bin, Thomas Gleixner

On Wed, Apr 15, 2020 at 07:47:41AM +0200, Markus Elfring wrote:
> > Thanks for your comments, and maybe we can use coccinelle tools for
> > more source files do this change in the mentioned software area.
> 
> I found 19 source files (for example in the directory “drivers/i2c”
> of the software “Linux next-20200408”) which seem to contain similar
> update candidates according to a known transformation pattern.
> Would you like to take another look at corresponding change possibilities?
>
yes, I want to do it and thanks for your info.

BR,
Dejin

> Regards,
> Markus

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

* Re: i2c: img-scb: remove duplicate dev_err()
  2020-04-15 15:21     ` Dejin Zheng
@ 2020-04-15 16:24       ` Markus Elfring
  2020-04-16  9:46           ` Markus Elfring
  2020-04-16 15:34         ` Dejin Zheng
  0 siblings, 2 replies; 8+ messages in thread
From: Markus Elfring @ 2020-04-15 16:24 UTC (permalink / raw)
  To: Dejin Zheng, linux-i2c
  Cc: linux-kernel, Allison Randal, Andy Shevchenko, Linus Walleij,
	Patrice Chotard, Shah Nehal-Bakulchandra, Tang Bin,
	Thomas Gleixner

>> Would you like to take another look at corresponding change possibilities?
>>
> yes, I want to do it and thanks for your info.

This positive feedback can lead to corresponding software development opportunities.
Which directions would you like try out next?

Regards,
Markus

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

* Re: i2c: img-scb: remove duplicate dev_err()
  2020-04-15 16:24       ` Markus Elfring
@ 2020-04-16  9:46           ` Markus Elfring
  2020-04-16 15:34         ` Dejin Zheng
  1 sibling, 0 replies; 8+ messages in thread
From: Markus Elfring @ 2020-04-16  9:46 UTC (permalink / raw)
  To: Dejin Zheng, linux-i2c
  Cc: linux-kernel, Allison Randal, Andy Shevchenko, Linus Walleij,
	Patrice Chotard, Shah Nehal-Bakulchandra, Tang Bin,
	Thomas Gleixner, Wolfram Sang, Thor Thayer, Robert Richter,
	Manivannan Sadhasivam, Bartosz Golaszewski, Barry Song,
	kernel-janitors

>>> Would you like to take another look at corresponding change possibilities?
>>>
>> yes, I want to do it and thanks for your info.

How do you think about to improve the clarification around potentially
“odd fixes” (because of collateral evolution)?


I noticed your update suggestion “i2c: busses: convert to devm_platform_ioremap_resource”.
https://lore.kernel.org/linux-i2c/20200409135224.7426-1-zhengdejin5@gmail.com/
https://lore.kernel.org/patchwork/patch/1222122/
https://lkml.org/lkml/2020/4/9/431

It seems that you got encouraged to contribute changes according to another
transformation approach by a single patch for a directory hierarchy.
How likely is it that such adjustments touch source code places
where related error messages would be found for further software
development considerations?
Would you like to wait until the integration of this update succeeded?

Will it be interesting in the meantime to become more familiar with
applications around scripts for the semantic patch language?
Can the Coccinelle software make the discussed transformations more convenient
also for your needs?

Regards,
Markus

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

* Re: i2c: img-scb: remove duplicate dev_err()
@ 2020-04-16  9:46           ` Markus Elfring
  0 siblings, 0 replies; 8+ messages in thread
From: Markus Elfring @ 2020-04-16  9:46 UTC (permalink / raw)
  To: Dejin Zheng, linux-i2c
  Cc: linux-kernel, Allison Randal, Andy Shevchenko, Linus Walleij,
	Patrice Chotard, Shah Nehal-Bakulchandra, Tang Bin,
	Thomas Gleixner, Wolfram Sang, Thor Thayer, Robert Richter,
	Manivannan Sadhasivam, Bartosz Golaszewski, Barry Song,
	kernel-janitors

>>> Would you like to take another look at corresponding change possibilities?
>>>
>> yes, I want to do it and thanks for your info.

How do you think about to improve the clarification around potentially
“odd fixes” (because of collateral evolution)?


I noticed your update suggestion “i2c: busses: convert to devm_platform_ioremap_resource”.
https://lore.kernel.org/linux-i2c/20200409135224.7426-1-zhengdejin5@gmail.com/
https://lore.kernel.org/patchwork/patch/1222122/
https://lkml.org/lkml/2020/4/9/431

It seems that you got encouraged to contribute changes according to another
transformation approach by a single patch for a directory hierarchy.
How likely is it that such adjustments touch source code places
where related error messages would be found for further software
development considerations?
Would you like to wait until the integration of this update succeeded?

Will it be interesting in the meantime to become more familiar with
applications around scripts for the semantic patch language?
Can the Coccinelle software make the discussed transformations more convenient
also for your needs?

Regards,
Markus

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

* Re: i2c: img-scb: remove duplicate dev_err()
  2020-04-15 16:24       ` Markus Elfring
  2020-04-16  9:46           ` Markus Elfring
@ 2020-04-16 15:34         ` Dejin Zheng
  1 sibling, 0 replies; 8+ messages in thread
From: Dejin Zheng @ 2020-04-16 15:34 UTC (permalink / raw)
  To: Markus Elfring
  Cc: linux-i2c, linux-kernel, Allison Randal, Andy Shevchenko,
	Linus Walleij, Patrice Chotard, Shah Nehal-Bakulchandra,
	Tang Bin, Thomas Gleixner

On Wed, Apr 15, 2020 at 06:24:09PM +0200, Markus Elfring wrote:
> >> Would you like to take another look at corresponding change possibilities?
> >>
> > yes, I want to do it and thanks for your info.
> 
> This positive feedback can lead to corresponding software development opportunities.
> Which directions would you like try out next?
>
May be related to usb, ethernet and pcie. My current job is related to
these. Thanks!

BR,
Dejin

> Regards,
> Markus

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

end of thread, other threads:[~2020-04-16 15:34 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-14 15:48 [PATCH v1] i2c: img-scb: remove duplicate dev_err() Markus Elfring
2020-04-15  2:54 ` Dejin Zheng
2020-04-15  5:47   ` Markus Elfring
2020-04-15 15:21     ` Dejin Zheng
2020-04-15 16:24       ` Markus Elfring
2020-04-16  9:46         ` Markus Elfring
2020-04-16  9:46           ` Markus Elfring
2020-04-16 15:34         ` Dejin Zheng

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.