Set and clear the DF_SUSPENDED flag on the child device being manipulated
rather than on the parent.
This commit is contained in:
parent
39914d6656
commit
a1324315e3
@ -3653,7 +3653,7 @@ bus_generic_suspend_child(device_t dev, device_t child)
|
||||
error = DEVICE_SUSPEND(child);
|
||||
|
||||
if (error == 0)
|
||||
dev->flags |= DF_SUSPENDED;
|
||||
child->flags |= DF_SUSPENDED;
|
||||
|
||||
return (error);
|
||||
}
|
||||
@ -3668,7 +3668,7 @@ bus_generic_resume_child(device_t dev, device_t child)
|
||||
{
|
||||
|
||||
DEVICE_RESUME(child);
|
||||
dev->flags &= ~DF_SUSPENDED;
|
||||
child->flags &= ~DF_SUSPENDED;
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user