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: <20230228080619.412820-1-jindong.yue@nxp.com>
Date:   Tue, 28 Feb 2023 16:06:19 +0800
From:   Jindong Yue <jindong.yue@....com>
To:     rafael@...nel.org, khilman@...nel.org, ulf.hansson@...aro.org,
        pavel@....cz, len.brown@...el.com, gregkh@...uxfoundation.org,
        shawnguo@...nel.org, s.hauer@...gutronix.de
Cc:     peng.fan@....com, linux-pm@...r.kernel.org,
        linux-kernel@...r.kernel.org, jindong.yue@....com
Subject: [PATCH 4/6] PM: domains: Export genpd_dev_pm_attach_by_name()

The genpd_dev_pm_attach_by_name() allows a device to be associated with
its PM domain by name.

Export it for use by kernel modules, such as the i.MX8M blk-ctrl drivers:
imx8m-blk-ctrl and imx8mp-blk-ctrl.

Signed-off-by: Jindong Yue <jindong.yue@....com>
---
 drivers/base/power/domain.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c
index 32084e38b73d..6d66b6b14863 100644
--- a/drivers/base/power/domain.c
+++ b/drivers/base/power/domain.c
@@ -2908,6 +2908,7 @@ struct device *genpd_dev_pm_attach_by_name(struct device *dev, const char *name)
 
 	return genpd_dev_pm_attach_by_id(dev, index);
 }
+EXPORT_SYMBOL_GPL(genpd_dev_pm_attach_by_name);
 
 static const struct of_device_id idle_state_match[] = {
 	{ .compatible = "domain-idle-state", },
-- 
2.36.0

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ