svn commit: r305589 - stable/10/sys/dev/usb/controller
Hans Petter Selasky
hselasky at FreeBSD.org
Thu Sep 8 09:50:05 UTC 2016
Author: hselasky
Date: Thu Sep 8 09:50:03 2016
New Revision: 305589
URL: https://svnweb.freebsd.org/changeset/base/305589
Log:
MFC r281499:
Modify the return value of the uhci/ehci/xhci PCI probe routines to
'BUS_PROBE_DEFAULT'. This allows bhyve's 'ppt' driver to claim ownership
of the device and pass it through to the guest.
In the common case where there are no competing drivers for USB controllers
this change is a no-op.
PR: 212256
Modified:
stable/10/sys/dev/usb/controller/ehci_pci.c
stable/10/sys/dev/usb/controller/uhci_pci.c
stable/10/sys/dev/usb/controller/xhci_pci.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/sys/dev/usb/controller/ehci_pci.c
==============================================================================
--- stable/10/sys/dev/usb/controller/ehci_pci.c Thu Sep 8 09:11:13 2016 (r305588)
+++ stable/10/sys/dev/usb/controller/ehci_pci.c Thu Sep 8 09:50:03 2016 (r305589)
@@ -226,7 +226,7 @@ ehci_pci_probe(device_t self)
if (desc) {
device_set_desc(self, desc);
- return (0);
+ return (BUS_PROBE_DEFAULT);
} else {
return (ENXIO);
}
Modified: stable/10/sys/dev/usb/controller/uhci_pci.c
==============================================================================
--- stable/10/sys/dev/usb/controller/uhci_pci.c Thu Sep 8 09:11:13 2016 (r305588)
+++ stable/10/sys/dev/usb/controller/uhci_pci.c Thu Sep 8 09:50:03 2016 (r305589)
@@ -254,7 +254,7 @@ uhci_pci_probe(device_t self)
if (desc) {
device_set_desc(self, desc);
- return (0);
+ return (BUS_PROBE_DEFAULT);
} else {
return (ENXIO);
}
Modified: stable/10/sys/dev/usb/controller/xhci_pci.c
==============================================================================
--- stable/10/sys/dev/usb/controller/xhci_pci.c Thu Sep 8 09:11:13 2016 (r305588)
+++ stable/10/sys/dev/usb/controller/xhci_pci.c Thu Sep 8 09:50:03 2016 (r305589)
@@ -147,7 +147,7 @@ xhci_pci_probe(device_t self)
if (desc) {
device_set_desc(self, desc);
- return (0);
+ return (BUS_PROBE_DEFAULT);
} else {
return (ENXIO);
}
More information about the svn-src-all
mailing list