aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/fpga-mgr.c
diff options
context:
space:
mode:
authorUlf Hansson <[email protected]>2019-04-18 10:27:57 +0000
committerRafael J. Wysocki <[email protected]>2019-04-25 07:38:25 +0000
commit3ccf3f0cd1971e007680114ff732e8a717aafbf8 (patch)
treebf806664f456cd98f12f2076860e64ab4ce6eabf /drivers/fpga/fpga-mgr.c
parentPM / Domains: Allow OF lookup for multi PM domain case from ->attach_dev() (diff)
downloadkernel-3ccf3f0cd1971e007680114ff732e8a717aafbf8.tar.gz
kernel-3ccf3f0cd1971e007680114ff732e8a717aafbf8.zip
PM / Domains: Enable genpd_dev_pm_attach_by_id|name() for single PM domain
If a call to dev_pm_domain_attach() succeeds to attach a device to its single PM domain, the important point is to prevent subsequent dev_pm_domain_attach_by_name|id() calls from failing. That is done by checking the dev->pm_domain pointer and then returning -EEXIST, rather than continuing to call genpd_dev_pm_attach_by_id|name(). For this reason, enable genpd_dev_pm_attach_by_id|name() to be used for single PM domains too. This simplifies future users, so they only need to use dev_pm_domain_attach_by_id|name() instead of having to combine it with dev_pm_domain_attach(). Signed-off-by: Ulf Hansson <[email protected]> Acked-by: Viresh Kumar <[email protected]> Acked-by: Niklas Cassel <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions