linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/5] drivers: new helper for ioremapping memory resources
@ 2020-03-15 14:05 Dejin Zheng
  2020-03-15 14:05 ` [PATCH v3 1/5] drivers: provide devm_platform_get_and_ioremap_resource() Dejin Zheng
                   ` (4 more replies)
  0 siblings, 5 replies; 18+ messages in thread
From: Dejin Zheng @ 2020-03-15 14:05 UTC (permalink / raw)
  To: gregkh, rafael, hminas, mathias.nyman, bgolaszewski, arnd,
	jeffrey.t.kirsher, hdegoede, treding, tglx, tomas.winkler,
	suzuki.poulose, sergei.shtylyov, geert, linux-usb
  Cc: linux-kernel, Dejin Zheng

Since commit "drivers: provide devm_platform_ioremap_resource()",
It was wrap platform_get_resource() and devm_ioremap_resource() as
single helper devm_platform_ioremap_resource(). but now, many drivers
still used platform_get_resource() and devm_ioremap_resource()
together in the kernel tree. The reason can not be replaced is they
still need use the resource variables obtained by platform_get_resource().
so provide this helper.

The first patch in this series adds a wrapper for these two calls and
the other uses it in a driver.

v2 -> v3:
	- rename the function to
	  devm_platform_get_and_ioremap_resource() by Sergei's suggestion.
	- make the last parameter res as optional by Geert's suggestion.
	- Reimplement devm_platform_ioremap_resource by calling
	  devm_platform_get_and_ioremap_resource() by Geert's suggestion.

v1 -> v2:
	- add some real users of this function (Thanks for greg k-h's reminder)

Dejin Zheng (5):
  drivers: provide devm_platform_get_and_ioremap_resource()
  usb: host: xhci-plat: convert to
    devm_platform_get_and_ioremap_resource
  usb: host: hisilicon: convert to
    devm_platform_get_and_ioremap_resource
  usb: dwc2: convert to devm_platform_get_and_ioremap_resource
  driver core: platform: Reimplement devm_platform_ioremap_resource

 drivers/base/platform.c         | 27 +++++++++++++++++++++++----
 drivers/usb/dwc2/platform.c     |  3 +--
 drivers/usb/host/xhci-histb.c   |  3 +--
 drivers/usb/host/xhci-plat.c    |  3 +--
 include/linux/platform_device.h |  3 +++
 5 files changed, 29 insertions(+), 10 deletions(-)

-- 
2.25.0


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

end of thread, other threads:[~2020-03-23 12:48 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-15 14:05 [PATCH v3 0/5] drivers: new helper for ioremapping memory resources Dejin Zheng
2020-03-15 14:05 ` [PATCH v3 1/5] drivers: provide devm_platform_get_and_ioremap_resource() Dejin Zheng
2020-03-17 19:20   ` Greg KH
2020-03-17 19:35     ` Geert Uytterhoeven
2020-03-18 10:10       ` Greg KH
2020-03-20 14:06         ` Dejin Zheng
2020-03-23 12:44   ` Geert Uytterhoeven
2020-03-15 14:05 ` [PATCH v3 2/5] usb: host: xhci-plat: convert to devm_platform_get_and_ioremap_resource Dejin Zheng
2020-03-18 11:33   ` Mathias Nyman
2020-03-23 12:45   ` Geert Uytterhoeven
2020-03-15 14:05 ` [PATCH v3 3/5] usb: host: hisilicon: " Dejin Zheng
2020-03-18 11:35   ` Mathias Nyman
2020-03-23 12:45   ` Geert Uytterhoeven
2020-03-15 14:05 ` [PATCH v3 4/5] usb: dwc2: " Dejin Zheng
2020-03-18 10:40   ` Minas Harutyunyan
2020-03-23 12:47   ` Geert Uytterhoeven
2020-03-15 14:05 ` [PATCH v3 5/5] driver core: platform: Reimplement devm_platform_ioremap_resource Dejin Zheng
2020-03-23 12:47   ` Geert Uytterhoeven

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