Authentication-Results: name.execsw.org; dkim=pass (1024-bit key) header.d=netbsd.org header.i=@netbsd.org header.b=rDNSYaEW; dkim=fail reason="signature verification failed" (1024-bit key) header.d=netbsd.org header.i=@netbsd.org header.b=YQkCo8Pg Received: by mail.netbsd.org (Postfix, from userid 605) id 7872384EC5; Tue, 16 Apr 2024 18:45:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netbsd.org; s=20240131; t=1713293141; bh=YfJK/ItBnhcQZ7RJZ3/vpPQAJGtj1XvJp7Mdhx47pPY=; h=Date:From:Subject:To:List-Id:Reply-To:List-Unsubscribe; b=rDNSYaEW5f1hqTBFyIOMk3H3KaGfcGM55aKfkiUpsWQxGtGyMwx3D3zuJY2RyW4eS unWllB7u/PnZeMyFSgBamTu9BQ8gw0HvZZ/u2v0PMhXlDEPv35W8Npt5GmYp5yXBXG NVm7kKk0g5N+RBEfwcQo+tZ5I7rOiFjzbkzRfWTI= Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 6062C84EC4 for ; Tue, 16 Apr 2024 18:45:40 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Authentication-Results: mail.netbsd.org (amavisd-new); dkim=pass (1024-bit key) header.d=netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id biePTqZIu-VJ for ; Tue, 16 Apr 2024 18:45:39 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id 95F3784CC8 for ; Tue, 16 Apr 2024 18:45:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netbsd.org; s=20240131; t=1713293139; bh=YfJK/ItBnhcQZ7RJZ3/vpPQAJGtj1XvJp7Mdhx47pPY=; h=Date:From:Subject:To:Reply-To; b=YQkCo8PgBVPFpLtLASYE7y29KEehO0i2+9pMicZ52LMKSIMGNxROfS8CLs7qjOYHG wqSkqAp4Wy026qfzzMaVhRaODTLgIHJVw/7+MU4MOuRrcGDDwFPUF/V7yAbJzWEf6O nEaWnA/SoPVVXTV/cyJD5A5traU2n9TccxskHCKU= Received: by cvs.NetBSD.org (Postfix, from userid 500) id 8AF6DFA2C; Tue, 16 Apr 2024 18:45:39 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Tue, 16 Apr 2024 18:45:39 +0000 From: "Martin Husemann" Subject: CVS commit: [netbsd-10] src To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20240416184539.8AF6DFA2C@cvs.NetBSD.org> Sender: source-changes-owner@NetBSD.org List-Id: Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Martin Husemann" Mail-Followup-To: source-changes-d@NetBSD.org List-Unsubscribe: Module Name: src Committed By: martin Date: Tue Apr 16 18:45:39 UTC 2024 Modified Files: src/share/man/man4 [netbsd-10]: ugen.4 src/sys/dev/usb [netbsd-10]: uftdi.c ugen.c usbdevices.config Log Message: Pull up following revision(s) (requested by thorpej in ticket #649): sys/dev/usb/uftdi.c: revision 1.77 share/man/man4/ugen.4: revision 1.39 sys/dev/usb/ugen.c: revision 1.176 sys/dev/usb/usbdevices.config: revision 1.43 Define a "flags 1" config directive for ugenif, which is similar to ugen's, but rather forces the ugenif to match at the *lowest* match priority rather than the highest. This allows ugenif to claim only otherwise unclaimed interfaces. Add a "match quirk" mechanism to the uftdi driver that allows it to selectively reject individual interfaces based on the combination of - Vendor ID - Product ID - Interface number - Vendor string - Product string This is necessary[*] to allow some devices that would otherwise match uftdi (and thus instantiate a ucom) to be matched by ugenif instead, which is required to make the device available to libusb1. [*] ...due to a deficiency in the USB stack that does not provide a mechanism for a user-space driver to claim a device from a kernel driver and then return it back at a later time. Use this new match quirk mechanism to reject "interface 1" of the FTDI 2232C-based Tigard debug board; On this board, "interface 0" is brought out to regular TTL-level UART pins, but "interface 1" is brought out to SWD and JTAG headers, and is really only useful when used with something like openocd. Because the FTDI 2232C on this board just uses the standard FTDI vendor and product IDs, it can only be distinguished by the strings, which cannot be specified usbdevices.config, thus necessitating the match quirk entry (that works in combination with the ugenif entry added in usbdevices.config). To generate a diff of this commit: cvs rdiff -u -r1.38 -r1.38.6.1 src/share/man/man4/ugen.4 cvs rdiff -u -r1.76 -r1.76.6.1 src/sys/dev/usb/uftdi.c cvs rdiff -u -r1.171 -r1.171.2.1 src/sys/dev/usb/ugen.c cvs rdiff -u -r1.42 -r1.42.10.1 src/sys/dev/usb/usbdevices.config Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.