linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC 0/5] Add managed ioremap function for shared resources
@ 2018-01-21 21:14 Ladislav Michl
  2018-01-21 21:15 ` [PATCH 1/5] devres: Move managed io function declarations into device.h Ladislav Michl
                   ` (4 more replies)
  0 siblings, 5 replies; 16+ messages in thread
From: Ladislav Michl @ 2018-01-21 21:14 UTC (permalink / raw)
  To: Bjorn Helgaas, Wei Yongjun; +Cc: linux-kernel, linux-pci, Dmitry Torokhov

Many drivers can simplified by using devm_ioremap_resource()
instead of open coding its functionality. However, as pointed
by Wei Yongjun, that function cannot be used when memory region
is already taken. See previous discussion here:
https://www.spinics.net/lists/linux-pci/msg68495.html

To ease job of driver developers, new function for that
purpose is implemented and its usage shown.

Also, there are few cleanup patches, which may bring some
controversy, but seemed usefull to do along the way.

Feel free to object or suggest something else. Thank you.

Ladislav Michl (5):
  devres: Move managed io function declarations into device.h
  PCI: Move managed resource alloc to devres
  devres: Make devm_ioremap_release() static
  devres: Add devm_ioremap_shared_resource()
  mtd: nand: davinci: Use devm_ioremap_shared_resource()

 drivers/mtd/nand/davinci_nand.c |  24 +++------
 drivers/pci/pci.c               |  82 -------------------------------
 include/linux/device.h          |  65 +++++++++++++++++++++++-
 include/linux/io.h              |  39 ---------------
 include/linux/ioport.h          |  23 ---------
 lib/devres.c                    | 106 ++++++++++++++++++++++++++++++++++++----
 6 files changed, 168 insertions(+), 171 deletions(-)

-- 
2.15.1

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

end of thread, other threads:[~2018-01-23  6:58 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-21 21:14 [RFC 0/5] Add managed ioremap function for shared resources Ladislav Michl
2018-01-21 21:15 ` [PATCH 1/5] devres: Move managed io function declarations into device.h Ladislav Michl
2018-01-22  9:30   ` kbuild test robot
2018-01-22 11:50     ` Ladislav Michl
2018-01-22 12:32       ` Linus Walleij
2018-01-22 10:08   ` kbuild test robot
2018-01-22 12:58     ` Ladislav Michl
2018-01-22 17:49   ` Dmitry Torokhov
2018-01-22 21:50     ` Ladislav Michl
2018-01-22 23:21       ` Dmitry Torokhov
2018-01-21 21:15 ` [PATCH 2/5] PCI: Move managed resource alloc to devres Ladislav Michl
2018-01-22 23:33   ` Dmitry Torokhov
2018-01-23  6:58     ` Ladislav Michl
2018-01-21 21:16 ` [PATCH 3/5] devres: Make devm_ioremap_release() static Ladislav Michl
2018-01-21 21:16 ` [PATCH 4/5] devres: Add devm_ioremap_shared_resource() Ladislav Michl
2018-01-21 21:17 ` [PATCH 5/5] mtd: nand: davinci: Use devm_ioremap_shared_resource() Ladislav Michl

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