Use device_verbose() to undo device_quiet() when detaching from t[45]iovX.
The device quiet flag is not automatically reset on detach, so it is inherited by other device drivers (e.g. when switching a device driver over to ppt for PCI pass through). Cope with this behavior by explicitly marking the device verbose during detach so that the next driver can make its own decision. Sponsored by: Chelsio Communications
This commit is contained in:
parent
cc85aca9cd
commit
bc32f05443
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=305032
@ -209,10 +209,15 @@ static int
|
||||
t4iov_detach(device_t dev)
|
||||
{
|
||||
struct t4iov_softc *sc;
|
||||
int error;
|
||||
|
||||
sc = device_get_softc(dev);
|
||||
if (sc->sc_attached)
|
||||
return (t4iov_detach_child(dev));
|
||||
if (sc->sc_attached) {
|
||||
error = t4iov_detach_child(dev);
|
||||
if (error)
|
||||
return (error);
|
||||
}
|
||||
device_verbose(dev);
|
||||
return (0);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user