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
46fa84e9
Commit
46fa84e9
authored
Mar 01, 2004
by
Ben Collins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
IEEE1394(r1180): Fix pdrv update call to use ud class list. Fixes an oops.
parent
8193fa33
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
13 deletions
+12
-13
drivers/ieee1394/nodemgr.c
drivers/ieee1394/nodemgr.c
+12
-13
No files found.
drivers/ieee1394/nodemgr.c
View file @
46fa84e9
...
...
@@ -1286,18 +1286,19 @@ static void nodemgr_resume_ne(struct node_entry *ne)
}
static
void
nodemgr_u
d_update_pdrv
(
struct
unit_directory
*
ud
)
static
void
nodemgr_u
pdate_pdrv
(
struct
node_entry
*
ne
)
{
struct
device
*
dev
;
struct
unit_directory
*
ud
;
struct
hpsb_protocol_driver
*
pdrv
;
struct
class
*
class
=
&
nodemgr_ud_class
;
struct
class_device
*
cdev
;
if
(
!
get_device
(
&
ud
->
device
))
return
;
list_for_each_entry
(
dev
,
&
ud
->
device
.
children
,
node
)
nodemgr_ud_update_pdrv
(
container_of
(
dev
,
struct
unit_directory
,
device
))
;
down_read
(
&
class
->
subsys
.
rwsem
);
list_for_each_entry
(
cdev
,
&
class
->
children
,
node
)
{
ud
=
container_of
(
cdev
,
struct
unit_directory
,
class_dev
);
if
(
ud
->
ne
!=
ne
||
!
ud
->
device
.
driver
)
continue
;
if
(
ud
->
device
.
driver
)
{
pdrv
=
container_of
(
ud
->
device
.
driver
,
struct
hpsb_protocol_driver
,
driver
);
if
(
pdrv
->
update
&&
pdrv
->
update
(
ud
))
{
...
...
@@ -1306,14 +1307,13 @@ static void nodemgr_ud_update_pdrv(struct unit_directory *ud)
up_write
(
&
ud
->
device
.
bus
->
subsys
.
rwsem
);
}
}
put_device
(
&
ud
->
device
);
up_read
(
&
class
->
subsys
.
rwsem
);
}
static
void
nodemgr_probe_ne
(
struct
host_info
*
hi
,
struct
node_entry
*
ne
,
int
generation
)
{
struct
device
*
dev
,
*
udev
;
struct
device
*
dev
;
if
(
ne
->
host
!=
hi
->
host
||
ne
->
in_limbo
)
return
;
...
...
@@ -1330,8 +1330,7 @@ static void nodemgr_probe_ne(struct host_info *hi, struct node_entry *ne, int ge
if
(
ne
->
needs_probe
)
nodemgr_process_root_directory
(
hi
,
ne
);
else
if
(
ne
->
generation
==
generation
)
list_for_each_entry
(
udev
,
&
dev
->
children
,
node
)
nodemgr_ud_update_pdrv
(
container_of
(
udev
,
struct
unit_directory
,
device
));
nodemgr_update_pdrv
(
ne
);
else
nodemgr_suspend_ne
(
ne
);
...
...
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