Set and clear the DF_SUSPENDED flag on the child device being manipulated

rather than on the parent.
This commit is contained in:
John Baldwin 2015-02-05 22:24:22 +00:00
parent 39914d6656
commit a1324315e3

View File

@ -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);
}