From nobody Sun Oct 20 13:20:58 2024 X-Original-To: usb@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 4XWfG23rfJz5Z38J for ; Sun, 20 Oct 2024 13:20:58 +0000 (UTC) (envelope-from bugzilla-noreply@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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XWfG21SQZz4sF4 for ; Sun, 20 Oct 2024 13:20:58 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729430458; 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: in-reply-to:in-reply-to:references:references; bh=O3yVHaVj6tjBeVbbwGr9hB+pum5+RxXjtA7P33Vthw8=; b=qq4MRHol3VFaKzN+la+ulKVNG4B0TAyT9vJFuLTb7zzTrWeXvGtxqXG5rIvZI3oiv966+j b+yaS69ti6ZYa+VP3yVaD7nG0I4tUeN2Yqfa+2DTwwc9qBSPoNcO+E6d9nRsZA8s0X/k88 dMOW1CRSc36NGg2egzT5rQ2REkOUA0JK42EEUDCs+XI+W9KXUaqPklyoi5NsKFVwmUSRnq rh9Ahk7SgmetRmvO77yVdRNs+bjxw7AaJhs0utWu9AE/us2KTcaSSOZMjqOMlTvmO0bvfH 4+Uckv1FBYmr7L2tVxBtvZR1CC3bHn5m/ihC3fP+uduPNR1qBeYnFCC5ohUHhg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1729430458; a=rsa-sha256; cv=none; b=L9qcEX73xhoBnMWVomQ7lvKpZB7gyAwjfbXKpYG/FZ+IJ4DXjVZA9eefIedVo6tUuXCs2y 8A4hMUeuTRG2jx4+4Hwj0qx8dxwSc7LZb7G1Vx4GOwf+7poIU/4Clhk93eF6FxdPOiRoge 8+3SwNoxJoc+GoNOJMWyhoKsyiegampeij/Bc5wq4JeDst05Af1yCG85eG88HaGvsq9oeG V7VdGrYjzUwE4Ue7QDMVPgXmhHyUp5Xh1dBkkPrNXfvBv/2Ym5C9LHqHcJwNdpnHXa+wKP vCDAsyiPKLfLpuh6jrmEMro0H2kGOojs8AW2uRGAHPePTVqfKzLntXbwLS5f+A== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 4XWfG20xKqz1315 for ; Sun, 20 Oct 2024 13:20:58 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 49KDKvnd022859 for ; Sun, 20 Oct 2024 13:20:57 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 49KDKv70022858 for usb@FreeBSD.org; Sun, 20 Oct 2024 13:20:57 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: usb@FreeBSD.org Subject: [Bug 282144] usb mouse incorrectly attaches to keyboard driver Date: Sun, 20 Oct 2024 13:20:58 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 14.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: fjpavon@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-usb List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-usb@freebsd.org Sender: owner-freebsd-usb@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D282144 --- Comment #6 from fjpavon --- I was investigating and i thin that the issue is related to the value of the field bInterfaceProtocol I get the value running the command usbconfig -d dump_all_desc From a usb mouse that is working and using the ums driver bInterfaceProtocol =3D 0x0002 From the mouse with the kbd driver bInterfaceProtocol =3D 0x0001 In the ums.c file the function ums_prove has the following check if ((uaa->info.bInterfaceSubClass =3D=3D UISUBCLASS_BOOT) && (uaa->info.bInterfaceProtocol =3D=3D UIPROTO_MOUSE)) return (BUS_PROBE_DEFAULT); It comparing the value of uaa->info.bInterfaceProtocol with the constant UIPROTO_MOUSE.=20 The contstant is defined in usb.h=20 #define UIPROTO_MOUSE 2 Can be the reason of the wrong assignment of the driver? Thanks and kind regards --=20 You are receiving this mail because: You are the assignee for the bug.=