linux-i2c.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 0/2] drivers: provide devm_platform_request_irq()
@ 2020-07-17 16:10 Dejin Zheng
  2020-07-17 16:10 ` [PATCH v4 1/2] " Dejin Zheng
  0 siblings, 1 reply; 3+ messages in thread
From: Dejin Zheng @ 2020-07-17 16:10 UTC (permalink / raw)
  To: corbet, gregkh, rafael, f.fainelli, heiko, linux-doc, linux-i2c
  Cc: linux-kernel, Dejin Zheng

It will call devm_request_irq() after platform_get_irq() function
in many drivers, And sometimes, the error handling of these two functions
is incorrect in some drivers. So this function is provided to simplify
the driver.

the first patch will provide devm_platform_request_irq(), and the
second patch will convert to devm_platform_request_irq() in some
dirver of i2c bus.

v3 -> v4:
	- The patch v3 sent on May 27 may be lost somewhere in the
	  world, so resend it.
	- add Michal's Acked-by tag in the second patch. and Thanks
	  for Michal's help.

v2 -> v3:
	- add devm_platform_request_irq() to devres.rst by Grygorii's
	  suggestion.
	- And also Thanks Michal, Wolfram and Linus's review and
	  comments.
v1 -> v2:
	- I give up this series of patches in v1 version. I resend this
	  patches v2 by that discussion:
	  https://patchwork.ozlabs.org/project/linux-i2c/patch/20200520144821.8069-1-zhengdejin5@gmail.com/
	  The patch content has not changed.

Dejin Zheng (2):
  drivers: provide devm_platform_request_irq()
  i2c: busses: convert to devm_platform_request_irq()

 .../driver-api/driver-model/devres.rst        |  1 +
 drivers/base/platform.c                       | 33 +++++++++++++++++++
 drivers/i2c/busses/i2c-bcm-kona.c             | 16 ++-------
 drivers/i2c/busses/i2c-cadence.c              | 10 ++----
 drivers/i2c/busses/i2c-digicolor.c            | 10 ++----
 drivers/i2c/busses/i2c-emev2.c                |  5 ++-
 drivers/i2c/busses/i2c-jz4780.c               |  5 ++-
 drivers/i2c/busses/i2c-meson.c                | 13 +++-----
 drivers/i2c/busses/i2c-mxs.c                  |  9 ++---
 drivers/i2c/busses/i2c-pnx.c                  |  9 ++---
 drivers/i2c/busses/i2c-rcar.c                 |  9 ++---
 drivers/i2c/busses/i2c-rk3x.c                 | 14 ++------
 drivers/i2c/busses/i2c-sirf.c                 | 10 ++----
 drivers/i2c/busses/i2c-stu300.c               |  4 +--
 drivers/i2c/busses/i2c-synquacer.c            | 12 ++-----
 include/linux/platform_device.h               |  4 +++
 16 files changed, 73 insertions(+), 91 deletions(-)

-- 
2.25.0


^ permalink raw reply	[flat|nested] 3+ messages in thread
* Re: [PATCH v4 1/2] drivers: provide devm_platform_request_irq()
@ 2020-07-17 18:02 Markus Elfring
  0 siblings, 0 replies; 3+ messages in thread
From: Markus Elfring @ 2020-07-17 18:02 UTC (permalink / raw)
  To: Dejin Zheng, kernel-janitors, linux-doc, linux-i2c
  Cc: linux-kernel, Coccinelle, Florian Fainelli, Greg Kroah-Hartman,
	Grygorii Strashko, Heiko Stübner, Jonathan Corbet,
	Linus Walleij, Michal Simek, Rafael J. Wysocki, Wolfram Sang

> v3 -> v4:
> 	- The patch v3 sent on May 27 may be lost somewhere in the
> 	  world, so resend it.

Can previous patch review aspects get any more attention?

https://lore.kernel.org/cocci/5dad9b19-ceb5-1606-9f62-7626e5677971@web.de/
https://lkml.org/lkml/2020/5/27/1326

Regards,
Markus

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

end of thread, other threads:[~2020-07-17 18:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-17 16:10 [PATCH v4 0/2] drivers: provide devm_platform_request_irq() Dejin Zheng
2020-07-17 16:10 ` [PATCH v4 1/2] " Dejin Zheng
2020-07-17 18:02 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).