Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
David Runge
linux-rt
Commits
7ee5fd12
Commit
7ee5fd12
authored
Aug 27, 2021
by
Rafael J. Wysocki
Browse files
Merge branch 'pm-opp'
* pm-opp: opp: core: Check for pending links before reading required_opp pointers
parents
3c5a2722
1f8b66d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
drivers/opp/core.c
View file @
7ee5fd12
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment