aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2022-02-18 22:16:57 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2022-02-27 23:41:54 +0000
commit6bbd9be62dfe9ef17f2fb77d9317cab1c58fa0c3 (patch)
tree663a387d51990e3de0c8bed0ef540ba34408a221
parent4b26b63371e767d9c39e139a4df434e18986290e (diff)
downloadsrc-6bbd9be62dfe9ef17f2fb77d9317cab1c58fa0c3.tar.gz
src-6bbd9be62dfe9ef17f2fb77d9317cab1c58fa0c3.zip
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 Differential Revision: https://reviews.freebsd.org/D34317 (cherry picked from commit 810ca5629aae1c525f29fae5498a64b596736094)
-rw-r--r--sys/compat/linuxkpi/common/src/linux_usb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/compat/linuxkpi/common/src/linux_usb.c b/sys/compat/linuxkpi/common/src/linux_usb.c
index 72aa561fcfbb..9474aa6be9ea 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;
}
}