From owner-freebsd-usb@FreeBSD.ORG Mon Aug 23 05:30:07 2010 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2E18C1065679 for ; Mon, 23 Aug 2010 05:30:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 0C5E68FC14 for ; Mon, 23 Aug 2010 05:30:07 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o7N5U6TO024669 for ; Mon, 23 Aug 2010 05:30:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o7N5U6L4024668; Mon, 23 Aug 2010 05:30:06 GMT (envelope-from gnats) Resent-Date: Mon, 23 Aug 2010 05:30:06 GMT Resent-Message-Id: <201008230530.o7N5U6L4024668@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-usb@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, John Wehle Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 211401065672 for ; Mon, 23 Aug 2010 05:21:52 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id B3D488FC19 for ; Mon, 23 Aug 2010 05:21:51 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o7N5Lpbg095508 for ; Mon, 23 Aug 2010 05:21:51 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id o7N5Lpsp095506; Mon, 23 Aug 2010 05:21:51 GMT (envelope-from nobody) Message-Id: <201008230521.o7N5Lpsp095506@www.freebsd.org> Date: Mon, 23 Aug 2010 05:21:51 GMT From: John Wehle To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: usb/149900: FreeBSD 8.1 uftdi patch to support usb-uirt X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Aug 2010 05:30:07 -0000 >Number: 149900 >Category: usb >Synopsis: FreeBSD 8.1 uftdi patch to support usb-uirt >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Aug 23 05:30:06 UTC 2010 >Closed-Date: >Last-Modified: >Originator: John Wehle >Release: 8.1 >Organization: >Environment: FreeBSD wagner 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Wed Aug 18 13:46:05 EDT 2010 root@wagner:/usr/obj/usr/src/sys/CUSTOM i386 >Description: The enclosed lightly tested patch allows uftdi to recognize the usb-uirt which is an universal infrared receiver transmitter (more information is at: http://www.usbuirt.com ). lirc expects it to show up as a com port. I modified a version of lirc so it would build on FreeBSD to verify that I could talk to the usb-uirt once the patch was applied. >How-To-Repeat: Attach a usb-uirt and notice that it doesn't register with uftdi. >Fix: Apply attached patch. Patch attached with submission follows: *** dev/usb/usbdevs.ORIGINAL Sun Jun 13 22:09:06 2010 --- dev/usb/usbdevs Sun Aug 22 01:04:33 2010 *************** product FTDI EMCU2D 0xe88a Expert mouse *** 1520,1525 **** --- 1520,1526 ---- product FTDI PCMSFU 0xe88b Precision Clock MSF USB product FTDI EMCU2H 0xe88c Expert mouseCLOCK USB II HBG product FTDI MAXSTREAM 0xee18 Maxstream PKG-U + product FTDI USB_UIRT 0xf850 USB-UIRT product FTDI USBSERIAL 0xfa00 Matrix Orbital USB Serial product FTDI MX2_3 0xfa01 Matrix Orbital MX2 or MX3 product FTDI MX4_5 0xfa02 Matrix Orbital MX4 or MX5 *** dev/usb/serial/uftdi.c.ORIGINAL Sun Jun 13 22:09:06 2010 --- dev/usb/serial/uftdi.c Sun Aug 22 04:12:00 2010 *************** static struct usb_device_id uftdi_devs[] *** 232,237 **** --- 232,238 ---- UFTDI_DEV(FTDI, CFA_633, 8U232AM), UFTDI_DEV(FTDI, CFA_634, 8U232AM), UFTDI_DEV(FTDI, CFA_635, 8U232AM), + UFTDI_DEV(FTDI, USB_UIRT, 8U232AM), UFTDI_DEV(FTDI, USBSERIAL, 8U232AM), UFTDI_DEV(FTDI, MX2_3, 8U232AM), UFTDI_DEV(FTDI, MX4_5, 8U232AM), >Release-Note: >Audit-Trail: >Unformatted: