Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
linux
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Container Registry
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Linaro
qcomlt
demos
linux
Commits
b26523c8
Commit
b26523c8
authored
1 year ago
by
Stephen Rothwell
Browse files
Options
Downloads
Plain Diff
Merge branch 'for-next' of
https://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux-mem-ctrl.git
parents
90a8d127
0d6c9180
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
drivers/memory/tegra/tegra186.c
+17
-0
17 additions, 0 deletions
drivers/memory/tegra/tegra186.c
include/soc/tegra/mc.h
+1
-0
1 addition, 0 deletions
include/soc/tegra/mc.h
with
18 additions
and
0 deletions
drivers/memory/tegra/tegra186.c
+
17
−
0
View file @
b26523c8
...
...
@@ -75,6 +75,9 @@ static void tegra186_mc_client_sid_override(struct tegra_mc *mc,
{
u32
value
,
old
;
if
(
client
->
regs
.
sid
.
security
==
0
&&
client
->
regs
.
sid
.
override
==
0
)
return
;
value
=
readl
(
mc
->
regs
+
client
->
regs
.
sid
.
security
);
if
((
value
&
MC_SID_STREAMID_SECURITY_OVERRIDE
)
==
0
)
{
/*
...
...
@@ -136,9 +139,23 @@ static int tegra186_mc_probe_device(struct tegra_mc *mc, struct device *dev)
return
0
;
}
static
int
tegra186_mc_resume
(
struct
tegra_mc
*
mc
)
{
unsigned
int
i
;
for
(
i
=
0
;
i
<
mc
->
soc
->
num_clients
;
i
++
)
{
const
struct
tegra_mc_client
*
client
=
&
mc
->
soc
->
clients
[
i
];
tegra186_mc_client_sid_override
(
mc
,
client
,
client
->
sid
);
}
return
0
;
}
const
struct
tegra_mc_ops
tegra186_mc_ops
=
{
.
probe
=
tegra186_mc_probe
,
.
remove
=
tegra186_mc_remove
,
.
resume
=
tegra186_mc_resume
,
.
probe_device
=
tegra186_mc_probe_device
,
.
handle_irq
=
tegra30_mc_handle_irq
,
};
...
...
This diff is collapsed.
Click to expand it.
include/soc/tegra/mc.h
+
1
−
0
View file @
b26523c8
...
...
@@ -162,6 +162,7 @@ struct tegra_mc_ops {
*/
int
(
*
probe
)(
struct
tegra_mc
*
mc
);
void
(
*
remove
)(
struct
tegra_mc
*
mc
);
int
(
*
resume
)(
struct
tegra_mc
*
mc
);
irqreturn_t
(
*
handle_irq
)(
int
irq
,
void
*
data
);
int
(
*
probe_device
)(
struct
tegra_mc
*
mc
,
struct
device
*
dev
);
};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment