diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2021-08-27 20:27:01 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2021-08-27 20:27:01 +0200 |
commit | 7ee5fd12e8cac91bdec6de8417b030ed05d5d7ee (patch) | |
tree | 4a96846b554e972d79c14545ab553d5c64a1f960 /drivers | |
parent | PM: domains: Improve runtime PM performance state handling (diff) | |
parent | Merge branch 'opp/fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/vir... (diff) | |
download | linux-7ee5fd12e8cac91bdec6de8417b030ed05d5d7ee.tar.xz linux-7ee5fd12e8cac91bdec6de8417b030ed05d5d7ee.zip |
Merge branch 'pm-opp'
* pm-opp:
opp: core: Check for pending links before reading required_opp pointers
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/opp/core.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/opp/core.c b/drivers/opp/core.c index 5543c54dacc5..04b4691a8aac 100644 --- a/drivers/opp/core.c +++ b/drivers/opp/core.c @@ -893,6 +893,10 @@ static int _set_required_opps(struct device *dev, if (!required_opp_tables) return 0; + /* required-opps not fully initialized yet */ + if (lazy_linking_pending(opp_table)) + return -EBUSY; + /* * We only support genpd's OPPs in the "required-opps" for now, as we * don't know much about other use cases. Error out if the required OPP @@ -903,10 +907,6 @@ static int _set_required_opps(struct device *dev, return -ENOENT; } - /* required-opps not fully initialized yet */ - if (lazy_linking_pending(opp_table)) - return -EBUSY; - /* Single genpd case */ if (!genpd_virt_devs) return _set_required_opp(dev, dev, opp, 0); |