Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
18e70efe
Commit
18e70efe
authored
9 years ago
by
Stephen Boyd
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'clk-fixes' into clk-next
parents
c542a54f
d2a5d46b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
drivers/clk/clk.c
drivers/clk/clk.c
+8
-0
No files found.
drivers/clk/clk.c
View file @
18e70efe
...
...
@@ -1097,8 +1097,10 @@ static struct clk_core *__clk_set_parent_before(struct clk_core *core,
*/
if
(
core
->
prepare_count
)
{
clk_core_prepare
(
parent
);
flags
=
clk_enable_lock
();
clk_core_enable
(
parent
);
clk_core_enable
(
core
);
clk_enable_unlock
(
flags
);
}
/* update the clk tree topology */
...
...
@@ -1113,13 +1115,17 @@ static void __clk_set_parent_after(struct clk_core *core,
struct
clk_core
*
parent
,
struct
clk_core
*
old_parent
)
{
unsigned
long
flags
;
/*
* Finish the migration of prepare state and undo the changes done
* for preventing a race with clk_enable().
*/
if
(
core
->
prepare_count
)
{
flags
=
clk_enable_lock
();
clk_core_disable
(
core
);
clk_core_disable
(
old_parent
);
clk_enable_unlock
(
flags
);
clk_core_unprepare
(
old_parent
);
}
}
...
...
@@ -1147,8 +1153,10 @@ static int __clk_set_parent(struct clk_core *core, struct clk_core *parent,
clk_enable_unlock
(
flags
);
if
(
core
->
prepare_count
)
{
flags
=
clk_enable_lock
();
clk_core_disable
(
core
);
clk_core_disable
(
parent
);
clk_enable_unlock
(
flags
);
clk_core_unprepare
(
parent
);
}
return
ret
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
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