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
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
Show 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)
...
@@ -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
hpsb_protocol_driver
*
pdrv
;
struct
class
*
class
=
&
nodemgr_ud_class
;
struct
class_device
*
cdev
;
if
(
!
get_device
(
&
ud
->
device
))
down_read
(
&
class
->
subsys
.
rwsem
);
return
;
list_for_each_entry
(
cdev
,
&
class
->
children
,
node
)
{
ud
=
container_of
(
cdev
,
struct
unit_directory
,
class_dev
);
list_for_each_entry
(
dev
,
&
ud
->
device
.
children
,
node
)
if
(
ud
->
ne
!=
ne
||
!
ud
->
device
.
driver
)
nodemgr_ud_update_pdrv
(
container_of
(
dev
,
struct
unit_directory
,
device
))
;
continue
;
if
(
ud
->
device
.
driver
)
{
pdrv
=
container_of
(
ud
->
device
.
driver
,
struct
hpsb_protocol_driver
,
driver
);
pdrv
=
container_of
(
ud
->
device
.
driver
,
struct
hpsb_protocol_driver
,
driver
);
if
(
pdrv
->
update
&&
pdrv
->
update
(
ud
))
{
if
(
pdrv
->
update
&&
pdrv
->
update
(
ud
))
{
...
@@ -1306,14 +1307,13 @@ static void nodemgr_ud_update_pdrv(struct unit_directory *ud)
...
@@ -1306,14 +1307,13 @@ static void nodemgr_ud_update_pdrv(struct unit_directory *ud)
up_write
(
&
ud
->
device
.
bus
->
subsys
.
rwsem
);
up_write
(
&
ud
->
device
.
bus
->
subsys
.
rwsem
);
}
}
}
}
up_read
(
&
class
->
subsys
.
rwsem
);
put_device
(
&
ud
->
device
);
}
}
static
void
nodemgr_probe_ne
(
struct
host_info
*
hi
,
struct
node_entry
*
ne
,
int
generation
)
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
)
if
(
ne
->
host
!=
hi
->
host
||
ne
->
in_limbo
)
return
;
return
;
...
@@ -1330,8 +1330,7 @@ static void nodemgr_probe_ne(struct host_info *hi, struct node_entry *ne, int ge
...
@@ -1330,8 +1330,7 @@ static void nodemgr_probe_ne(struct host_info *hi, struct node_entry *ne, int ge
if
(
ne
->
needs_probe
)
if
(
ne
->
needs_probe
)
nodemgr_process_root_directory
(
hi
,
ne
);
nodemgr_process_root_directory
(
hi
,
ne
);
else
if
(
ne
->
generation
==
generation
)
else
if
(
ne
->
generation
==
generation
)
list_for_each_entry
(
udev
,
&
dev
->
children
,
node
)
nodemgr_update_pdrv
(
ne
);
nodemgr_ud_update_pdrv
(
container_of
(
udev
,
struct
unit_directory
,
device
));
else
else
nodemgr_suspend_ne
(
ne
);
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