lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:   Sun, 21 Jan 2018 22:14:32 +0100
From:   Ladislav Michl <ladis@...ux-mips.org>
To:     Bjorn Helgaas <bhelgaas@...gle.com>,
        Wei Yongjun <weiyongjun1@...wei.com>
Cc:     linux-kernel@...r.kernel.org, linux-pci@...r.kernel.org,
        Dmitry Torokhov <dmitry.torokhov@...il.com>
Subject: [RFC 0/5] Add managed ioremap function for shared resources

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ