From nobody Sun Sep 11 10:24:46 2022 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MQQp70j5hz4cVLd; Sun, 11 Sep 2022 10:24:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MQQp70B90z3b1s; Sun, 11 Sep 2022 10:24:47 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1662891887; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=MDHnxB3WPktFW4LRH+idFAjXGndU9QIdkJ7xu+iUmWw=; b=dRGqT9W9W6jZ96nvRPkKAj0a1OOPDNKBucxuMKmkoz2CAEPIO8VLd8Q92aFUuMgXZNox1G UpMOjmvoUI2iEeCqmMjkND/b1xNXx3ZZTnn6c+nt48y7UJLvAWVSwvCygGB2RBg3V6eMrh aU5E+/r1gG1Mj9/YbAqUzpJ4LmjoEyCGqjSeJy3UzOOTh9TTa+Be5Ouw09diGvlXEgVf+a kliy4OfdGBbIAZr3vkeQ/CRmUtYldXivk3Ek7WiIviticIiwF/ixvLTwf/nhsigh65Htpm qMQJ5n4VA2Rj9D5cTuNQecJIdC5hNmobIZHcJP9RI1BEzUk3C/i9anlRTdyHJQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4MQQp66JXszcd5; Sun, 11 Sep 2022 10:24:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 28BAOk4I028385; Sun, 11 Sep 2022 10:24:46 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 28BAOkBw028384; Sun, 11 Sep 2022 10:24:46 GMT (envelope-from git) Date: Sun, 11 Sep 2022 10:24:46 GMT Message-Id: <202209111024.28BAOkBw028384@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Vladimir Kondratyev Subject: git: 975407b1d8dc - main - usbhid(4): Increase probe priority to BUS_PROBE_DEFAULT + 1 List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: wulf X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 975407b1d8dcceac2b54e2c4df96aadec7dc4c3a Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1662891887; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=MDHnxB3WPktFW4LRH+idFAjXGndU9QIdkJ7xu+iUmWw=; b=yvMb+Rs8ALQeyxoR1LUfEB0hZ/asRnJWUcF7YSdKXJo/BYTiKwupLrLjx9Wvt2/4MIA2bg mRM/6xwrY1Gdwh+8xHHysTyqXH+q7JbXLgj2GwEEN7dw/49tsxAcDYC4phXjvw/FcTOqUX TL5o3OqSD1yZNCkQcUzhzt02hSKLgEt2io28OEyKe7+3k2xQGCEioHAjoGorAY0NkpmmQL s/94Q4SrQYUhH6ITqxg7+Wv1YTCViX5MQUKm+5lm30fKHSStVQ8is4K4AnDAVhweMSbhZw cUVCQm8A9G0FptPFlNPLFwE/TMERypIYYT6AeYPhuEL1dx9JcUIg6WMrWfOMvg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1662891887; a=rsa-sha256; cv=none; b=VQGDz0znIm3b5sTTObSiOfkfVcV67mAySHI7Jvb4S8/y65+YbuaKpYYSj5+1725qmasGS7 djVAv3qWtmleI/NHmKx5jpA3wj4ldPMltq8LHq+2ATWkgP9WK4WrRAovF2OwSVhf3I/lE+ owH3cAQtgwPm8zuuCILSGHd2ZQlJgJMvAPIQ+Lz8MSaFoUrzUPo2Xo0Bi6n7t63FQZFMBa Bb3oYYAnkaaG8K/3iV8AS0MUeKLkekHwxA3CGwm1yE3CEGZuZud5Gi/qFyvSB4RkL8YpNJ ISgKWLx3rNkgYIi0jWgCHNMxFzdy2aofn5lDDg+Sbe9KDjGVGx9oh5Q0B6gyoA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by wulf: URL: https://cgit.FreeBSD.org/src/commit/?id=975407b1d8dcceac2b54e2c4df96aadec7dc4c3a commit 975407b1d8dcceac2b54e2c4df96aadec7dc4c3a Author: Vladimir Kondratyev AuthorDate: 2022-09-11 09:04:34 +0000 Commit: Vladimir Kondratyev CommitDate: 2022-09-11 10:21:16 +0000 usbhid(4): Increase probe priority to BUS_PROBE_DEFAULT + 1 usbhid(4) vs other USB HID drivers precedence is determined by hw.usb.usbhid.enable loader tunable and HID quirk subsystem rather than by device_probe() return value. Raise priority high enough to always give usbhid(4) a possible chance to attach. Fixes usbhid(4) attachment on USB device hotplug. Reported by: Ivan Quitschal MFC after: 1 week --- sys/dev/usb/input/usbhid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/usb/input/usbhid.c b/sys/dev/usb/input/usbhid.c index fe53f11b8f40..174e1c28ae96 100644 --- a/sys/dev/usb/input/usbhid.c +++ b/sys/dev/usb/input/usbhid.c @@ -802,7 +802,7 @@ usbhid_probe(device_t dev) if (hid_test_quirk(&sc->sc_hw, HQ_HID_IGNORE)) return (ENXIO); - return (BUS_PROBE_GENERIC + 1); + return (BUS_PROBE_DEFAULT + 1); } static int