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
nexedi
linux
Commits
73616d0d
Commit
73616d0d
authored
Nov 11, 2019
by
Thierry Reding
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'for-5.5/clk-core' into for-5.5/clk
parents
ed1a2459
d9b86cc4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
drivers/clk/clk.c
drivers/clk/clk.c
+18
-0
include/linux/clk-provider.h
include/linux/clk-provider.h
+1
-0
No files found.
drivers/clk/clk.c
View file @
73616d0d
...
...
@@ -1674,6 +1674,24 @@ static int clk_fetch_parent_index(struct clk_core *core,
return
i
;
}
/**
* clk_hw_get_parent_index - return the index of the parent clock
* @hw: clk_hw associated with the clk being consumed
*
* Fetches and returns the index of parent clock. Returns -EINVAL if the given
* clock does not have a current parent.
*/
int
clk_hw_get_parent_index
(
struct
clk_hw
*
hw
)
{
struct
clk_hw
*
parent
=
clk_hw_get_parent
(
hw
);
if
(
WARN_ON
(
parent
==
NULL
))
return
-
EINVAL
;
return
clk_fetch_parent_index
(
hw
->
core
,
parent
->
core
);
}
EXPORT_SYMBOL_GPL
(
clk_hw_get_parent_index
);
/*
* Update the orphan status of @core and all its children.
*/
...
...
include/linux/clk-provider.h
View file @
73616d0d
...
...
@@ -818,6 +818,7 @@ unsigned int clk_hw_get_num_parents(const struct clk_hw *hw);
struct
clk_hw
*
clk_hw_get_parent
(
const
struct
clk_hw
*
hw
);
struct
clk_hw
*
clk_hw_get_parent_by_index
(
const
struct
clk_hw
*
hw
,
unsigned
int
index
);
int
clk_hw_get_parent_index
(
struct
clk_hw
*
hw
);
int
clk_hw_set_parent
(
struct
clk_hw
*
hw
,
struct
clk_hw
*
new_parent
);
unsigned
int
__clk_get_enable_count
(
struct
clk
*
clk
);
unsigned
long
clk_hw_get_rate
(
const
struct
clk_hw
*
hw
);
...
...
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