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]
Message-ID: <20210902063702.32066-1-caihuoqing@baidu.com>
Date:   Thu, 2 Sep 2021 14:36:59 +0800
From:   Cai Huoqing <caihuoqing@...du.com>
To:     <gregkh@...uxfoundation.org>, <rafael@...nel.org>,
        <patrice.chotard@...s.st.com>, <mchehab@...nel.org>,
        <ryder.lee@...iatek.com>, <jianjun.wang@...iatek.com>,
        <lorenzo.pieralisi@....com>, <robh@...nel.org>, <kw@...ux.com>,
        <bhelgaas@...gle.com>, <matthias.bgg@...il.com>
CC:     <linux-kernel@...r.kernel.org>,
        <linux-arm-kernel@...ts.infradead.org>,
        <linux-media@...r.kernel.org>, <linux-pci@...r.kernel.org>,
        <linux-mediatek@...ts.infradead.org>,
        Cai Huoqing <caihuoqing@...du.com>
Subject: [PATCH v2 0/3] drivers: Add the helper function devm_platform_get_and_ioremap_resource_byname()

Since provide the helper function devm_platform_ioremap_resource_byname()
which is wrap platform_get_resource_byname() and devm_ioremap_resource().
But sometimes, many drivers still need to use the resource variables obtained
by platform_get_resource(). In these case, provide this helper function
devm_platform_get_and_ioremap_resource_byname().

devm_platform_get_and_ioremap_resource_byname will be used:
 .../platform/sti/c8sectpfe/c8sectpfe-core.c   |  7 ++---
 drivers/pci/controller/pcie-mediatek-gen3.c   |  5 +---


Cai Huoqing (3):
  driver core: platform: Add the helper function
    devm_platform_get_and_ioremap_resource_byname()
  media: sti/c8sectpfe: Make use of the helper function
    devm_platform_get_and_ioremap_resource_byname()
  PCI: mediatek-gen3: Make use of the helper function
    devm_platform_get_and_ioremap_resource_byname()

 drivers/base/platform.c                       | 30 ++++++++++++++++---
 .../platform/sti/c8sectpfe/c8sectpfe-core.c   |  7 ++---
 drivers/pci/controller/pcie-mediatek-gen3.c   |  5 +---
 include/linux/platform_device.h               |  3 ++
 4 files changed, 32 insertions(+), 13 deletions(-)

-- 
2.25.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ