All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/4] drivers: new helper for ioremapping memory resources
@ 2020-03-14  5:26 Dejin Zheng
  2020-03-14  5:26 ` [PATCH v2 1/4] drivers: provide devm_platform_ioremap_and_get_resource() Dejin Zheng
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Dejin Zheng @ 2020-03-14  5:26 UTC (permalink / raw)
  To: gregkh, rafael, hminas, mathias.nyman, bgolaszewski, arnd, geert,
	mchehab+samsung, treding, tglx, suzuki.poulose, hdegoede,
	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.

Since V1:
	- add some real users of this function (Thanks for greg k-h's reminder)

Dejin Zheng (4):
  drivers: provide devm_platform_ioremap_and_get_resource()
  usb: host: xhci-plat: convert to
    devm_platform_ioremap_and_get_resource
  usb: host: hisilicon: convert to
    devm_platform_ioremap_and_get_resource
  usb: dwc2: convert to devm_platform_ioremap_and_get_resource

 drivers/base/platform.c         | 18 ++++++++++++++++++
 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, 24 insertions(+), 6 deletions(-)

-- 
2.25.0


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

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

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-14  5:26 [PATCH v2 0/4] drivers: new helper for ioremapping memory resources Dejin Zheng
2020-03-14  5:26 ` [PATCH v2 1/4] drivers: provide devm_platform_ioremap_and_get_resource() Dejin Zheng
2020-03-15  9:47   ` Geert Uytterhoeven
2020-03-15 10:01   ` Sergei Shtylyov
2020-03-15 12:38     ` Dejin Zheng
2020-03-14  5:26 ` [PATCH v2 2/4] usb: host: xhci-plat: convert to devm_platform_ioremap_and_get_resource Dejin Zheng
2020-03-14  5:26 ` [PATCH v2 3/4] usb: host: hisilicon: " Dejin Zheng
2020-03-14  5:26 ` [PATCH v2 4/4] usb: dwc2: " 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.