Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
57780028
Commit
57780028
authored
Aug 25, 2008
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sparc: Propagate SBUS iommu archdata into real of_device objects.
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
e0039348
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
4 deletions
+20
-4
drivers/sbus/sbus.c
drivers/sbus/sbus.c
+20
-4
No files found.
drivers/sbus/sbus.c
View file @
57780028
...
...
@@ -30,6 +30,24 @@ static DEVICE_ATTR(obppath, S_IRUSR | S_IRGRP | S_IROTH, show_sbusobppath_attr,
struct
sbus_bus
*
sbus_root
;
static
void
__init
fill_sbus_device_iommu
(
struct
sbus_dev
*
sdev
)
{
struct
of_device
*
op
=
of_find_device_by_node
(
sdev
->
ofdev
.
node
);
struct
dev_archdata
*
sd
,
*
bus_sd
;
struct
sbus_bus
*
sbus
;
sbus
=
sdev
->
bus
;
bus_sd
=
&
sbus
->
ofdev
.
dev
.
archdata
;
sd
=
&
sdev
->
ofdev
.
dev
.
archdata
;
sd
->
iommu
=
bus_sd
->
iommu
;
sd
->
stc
=
bus_sd
->
stc
;
sd
=
&
op
->
dev
.
archdata
;
sd
->
iommu
=
bus_sd
->
iommu
;
sd
->
stc
=
bus_sd
->
stc
;
}
static
void
__init
fill_sbus_device
(
struct
device_node
*
dp
,
struct
sbus_dev
*
sdev
)
{
struct
dev_archdata
*
sd
;
...
...
@@ -85,6 +103,8 @@ static void __init fill_sbus_device(struct device_node *dp, struct sbus_dev *sde
/* WE HAVE BEEN INVADED BY ALIENS! */
err
=
sysfs_create_file
(
&
sdev
->
ofdev
.
dev
.
kobj
,
&
dev_attr_obppath
.
attr
);
fill_sbus_device_iommu
(
sdev
);
}
static
void
__init
sbus_bus_ranges_init
(
struct
device_node
*
dp
,
struct
sbus_bus
*
sbus
)
...
...
@@ -209,10 +229,6 @@ static void __init walk_children(struct device_node *dp, struct sbus_dev *parent
sdev
->
bus
=
sbus
;
sdev
->
parent
=
parent
;
sdev
->
ofdev
.
dev
.
archdata
.
iommu
=
sbus
->
ofdev
.
dev
.
archdata
.
iommu
;
sdev
->
ofdev
.
dev
.
archdata
.
stc
=
sbus
->
ofdev
.
dev
.
archdata
.
stc
;
fill_sbus_device
(
dp
,
sdev
);
...
...
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