From nobody Tue Oct 22 15:51:00 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 4XXxVD64Wgz5PcVx for ; Tue, 22 Oct 2024 15:51:00 +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 4XXxVD4lF5z4MWC for ; Tue, 22 Oct 2024 15:51:00 +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=1729612260; 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=iSrWXq28C7sLWrWp6FwIdutaGBpDscgK/tgoPOW6XwY=; b=BJIU4g4Nj2GE/f3RaCgWEgTw/voQJ7fsh95wi6ROQh+npeRTzeOloMFxgILREMljDswhXy 2vXltXH3Fbe2kY32JpbFsbFIqXETrHG1fMFoQ/UtkbBwK1L57+XL/vEInu+tcGmn3NuYh8 4C6TAHHfGIO5IREgyeslOyrIjwytr7C+eBYhQcDWV3WMa8j47B4M70YyUORQNlsObjp9Q5 kYLGcfLYEAH4MAMqHfA/JfcgxXFmoYJ1N2LntbnfM1EohJsLlS7J28JzhIhVquPrwXQCTm ycpresZssd/drk/bOB2H57nsbNs1Vsd1RMgL3mKo3vX9rzzuZDSbXtSZNQ27wA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1729612260; a=rsa-sha256; cv=none; b=bW6DRT/ZQpEw1gwyX37F88BZuEEfqdPqhQAmWaRTPAEgKcrtxGbWG7Svr5c/KityXt8F7H ZiPXEfBbtqF/ly/77+WtHgLi/SLY6pDgrm6t+dICdbO3ovseyfjkvXnWShMBV8lJHF0EvQ cUXjY9239YYWTXvo5FM0tv2sO+DcuYnDA4c6C8DkQ+MN2wYTjv4RJxYrX+2fgBFowFz2qY e16JKxrEC0X0R3BO1+znKa0b8jfZAbWJ25prjS/yGsnIvC5LSyjyeI41HEY9DLtPFZL7DK JJPpTqWFLFo6GJPjeOHnTIlQREZKPZXezlUK3Vo5A+J//o3NCvo2Dk5KL0bPJg== 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 4XXxVD4GlkzKqG for ; Tue, 22 Oct 2024 15:51:00 +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 49MFp0DC051494 for ; Tue, 22 Oct 2024 15:51:00 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 49MFp026051459 for usb@FreeBSD.org; Tue, 22 Oct 2024 15:51:00 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: Tue, 22 Oct 2024 15:51:00 +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: gljennjohn@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 #9 from Gary Jennejohn --- (In reply to fjpavon from comment #8) In /sys/dev/usb/quirk/usb_quirk.h there's this quirk: UQ_KBD_IGNORE, /* device should be ignored by kbd class */ so you could try using that quirk with the mouse. The problem is, of course, that ums.c uses this code: /* A match on these entries will load ums */ static const STRUCT_USB_HOST_ID __used ums_devs[] =3D { {USB_IFACE_CLASS(UICLASS_HID), USB_IFACE_SUBCLASS(UISUBCLASS_BOOT), USB_IFACE_PROTOCOL(UIPROTO_MOUSE),}, }; in the ums_probe(device_t dev) function and UIPROTO_MOUSE is 2. The only solution I can see would be to add some code to ums_probe() to use= the idVendor =3D 0x12c9 and the idProduct =3D 0x1021 values to change USB_IFACE_PROTOCOL for the mouse to be temporarily set to 1 rather than 2. However, this would mean having to maintain a patch to ums.c. Personally I'd send this mouse back and inform Newmen Tech.,LTD that they're using the wrong bInterfaceProtocol for a mouse. --=20 You are receiving this mail because: You are the assignee for the bug.=