git: 6bbd9be62dfe - stable/13 - LinuxKPI: USB change successful probe result to BUS_PROBE_DEFAULT

From: Bjoern A. Zeeb <bz_at_FreeBSD.org>
Date: Sun, 27 Feb 2022 23:43:30 UTC
The branch stable/13 has been updated by bz:

URL: https://cgit.FreeBSD.org/src/commit/?id=6bbd9be62dfe9ef17f2fb77d9317cab1c58fa0c3

commit 6bbd9be62dfe9ef17f2fb77d9317cab1c58fa0c3
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-27 23:41:54 +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
    Differential Revision: https://reviews.freebsd.org/D34317
    
    (cherry picked from commit 810ca5629aae1c525f29fae5498a64b596736094)
---
 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 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;
 		}
 	}