Date: Thu, 24 Feb 2022 19:56:53 GMT From: "Bjoern A. Zeeb" <bz@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 810ca5629aae - main - LinuxKPI: USB change successful probe result to BUS_PROBE_DEFAULT Message-ID: <202202241956.21OJurGu095295@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=810ca5629aae1c525f29fae5498a64b596736094 commit 810ca5629aae1c525f29fae5498a64b596736094 Author: Bjoern A. Zeeb <bz@FreeBSD.org> AuthorDate: 2022-02-18 22:16:57 +0000 Commit: Bjoern A. Zeeb <bz@FreeBSD.org> CommitDate: 2022-02-24 19:55:19 +0000 LinuxKPI: USB change successful probe result to BUS_PROBE_DEFAULT Rather than returning 0 (which is BUS_PROBE_SPECIFIC) return BUS_PROBE_DEFAULT to give other drivers a possible chance too to attach. Reported by: jhb Reviewed by: hselasky, jhb, imp MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D34317 --- sys/compat/linuxkpi/common/src/linux_usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/compat/linuxkpi/common/src/linux_usb.c b/sys/compat/linuxkpi/common/src/linux_usb.c index fec5936e7640..05fb63b93142 100644 --- a/sys/compat/linuxkpi/common/src/linux_usb.c +++ b/sys/compat/linuxkpi/common/src/linux_usb.c @@ -221,7 +221,7 @@ usb_linux_probe(device_t dev) mtx_lock(&Giant); LIST_FOREACH(udrv, &usb_linux_driver_list, linux_driver_list) { if (usb_linux_lookup_id(udrv->id_table, uaa)) { - err = 0; + err = BUS_PROBE_DEFAULT; break; } }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202202241956.21OJurGu095295>