Date: Thu, 8 Sep 2016 09:50:04 +0000 (UTC) From: Hans Petter Selasky <hselasky@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r305589 - stable/10/sys/dev/usb/controller Message-ID: <201609080950.u889o4HZ064279@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201609080950.u889o4HZ064279>