From nobody@FreeBSD.org Fri Nov 27 05:50:33 2009 Return-Path: Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 207CE1065672 for ; Fri, 27 Nov 2009 05:50:33 +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 E8F2C8FC1E for ; Fri, 27 Nov 2009 05:50:32 +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 nAR5oWFC091402 for ; Fri, 27 Nov 2009 05:50:32 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id nAR5oW63091401; Fri, 27 Nov 2009 05:50:32 GMT (envelope-from nobody) Message-Id: <200911270550.nAR5oW63091401@www.freebsd.org> Date: Fri, 27 Nov 2009 05:50:32 GMT From: Brett Glass To: freebsd-gnats-submit@FreeBSD.org Subject: Add support for new rev of USB Ethernet chip X-Send-Pr-Version: www-3.1 X-GNATS-Notify: >Number: 140923 >Category: usb >Synopsis: [axe] [patch] [usb8] Add support for new rev of USB Ethernet chip >Confidential: no >Severity: non-critical >Priority: medium >Responsible: thompsa >State: closed >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Fri Nov 27 06:00:11 UTC 2009 >Closed-Date: Mon Feb 08 07:08:36 UTC 2010 >Last-Modified: Mon Feb 08 07:08:36 UTC 2010 >Originator: Brett Glass >Release: 8.0-RELEASE >Organization: LARIAT >Environment: >Description: The ASIX AX88772A USB 2.0 Ethernet chip has replaced the ASIC AX88772. Unlike the original, it doesn't tend to corrupt its buffers. I just bought about a dozen inexpensive USB Ethernet adapters that use this chip, and discovered to my dismay that though there was driver support (axe(4)) for the older version, the driver would not recognize the newer one. I managed to get it working by patching two files. Please incorporate the changes into the tree. >How-To-Repeat: Plug in a Sabrent (or similar) USB Ethernet adapter based on the AX88772A. FreeBSD 8.0-RELEASE won't recognize it. >Fix: Patch file attached. I also recommend including options USB_VERBOSE in the GENERIC kernel configuration (it is not there currently). Otherwise, the vendor and device names won't be printed in the boot messages. Patch attached with submission follows: *** /sys/dev/usb/usbdevs.orig Thu Nov 26 17:00:13 2009 --- /sys/dev/usb/usbdevs Thu Nov 26 18:43:33 2009 *************** *** 894,897 **** --- 894,899 ---- product ASIX AX88178 0x1780 AX88178 product ASIX AX88772 0x7720 AX88772 + /* Added by Brett Glass to support ASIX AX88772A, an updated AX88772 */ + product ASIX AX88772A 0x772a AX88772A USB 2.0 10/100 Ethernet /* ASUS products */ *** /sys/dev/usb/net/if_axe.c.orig Thu Nov 26 17:07:25 2009 --- /sys/dev/usb/net/if_axe.c Thu Nov 26 17:13:12 2009 *************** *** 142,145 **** --- 142,147 ---- {USB_VPI(USB_VENDOR_ASIX, USB_PRODUCT_ASIX_AX88178, AXE_FLAG_178)}, {USB_VPI(USB_VENDOR_ASIX, USB_PRODUCT_ASIX_AX88772, AXE_FLAG_772)}, + /* Added by Brett Glass to support ASIX AX88772A, an updated AX88772 */ + {USB_VPI(USB_VENDOR_ASIX, USB_PRODUCT_ASIX_AX88772A, AXE_FLAG_772)}, {USB_VPI(USB_VENDOR_ATEN, USB_PRODUCT_ATEN_UC210T, 0)}, {USB_VPI(USB_VENDOR_BELKIN, USB_PRODUCT_BELKIN_F5D5055, AXE_FLAG_178)}, >Release-Note: >Audit-Trail: From: dfilter@FreeBSD.ORG (dfilter service) To: bug-followup@FreeBSD.org Cc: Subject: Re: usb/140923: commit references a PR Date: Wed, 9 Dec 2009 20:25:06 +0000 (UTC) Author: thompsa Date: Wed Dec 9 20:24:49 2009 New Revision: 200306 URL: http://svn.freebsd.org/changeset/base/200306 Log: Add new device ids. PR: usb/140951, usb/140923 Submitted by: Romain Tartiere, Brett Glass Modified: head/sys/dev/usb/net/if_axe.c head/sys/dev/usb/serial/uftdi.c head/sys/dev/usb/usbdevs Modified: head/sys/dev/usb/net/if_axe.c ============================================================================== --- head/sys/dev/usb/net/if_axe.c Wed Dec 9 20:17:22 2009 (r200305) +++ head/sys/dev/usb/net/if_axe.c Wed Dec 9 20:24:49 2009 (r200306) @@ -141,6 +141,7 @@ static const struct usb_device_id axe_de {USB_VPI(USB_VENDOR_ASIX, USB_PRODUCT_ASIX_AX88172, 0)}, {USB_VPI(USB_VENDOR_ASIX, USB_PRODUCT_ASIX_AX88178, AXE_FLAG_178)}, {USB_VPI(USB_VENDOR_ASIX, USB_PRODUCT_ASIX_AX88772, AXE_FLAG_772)}, + {USB_VPI(USB_VENDOR_ASIX, USB_PRODUCT_ASIX_AX88772A, AXE_FLAG_772)}, {USB_VPI(USB_VENDOR_ATEN, USB_PRODUCT_ATEN_UC210T, 0)}, {USB_VPI(USB_VENDOR_BELKIN, USB_PRODUCT_BELKIN_F5D5055, AXE_FLAG_178)}, {USB_VPI(USB_VENDOR_BILLIONTON, USB_PRODUCT_BILLIONTON_USB2AR, 0)}, Modified: head/sys/dev/usb/serial/uftdi.c ============================================================================== --- head/sys/dev/usb/serial/uftdi.c Wed Dec 9 20:17:22 2009 (r200305) +++ head/sys/dev/usb/serial/uftdi.c Wed Dec 9 20:24:49 2009 (r200306) @@ -221,6 +221,7 @@ static struct usb_device_id uftdi_devs[] {USB_VPI(USB_VENDOR_DRESDENELEKTRONIK, USB_PRODUCT_DRESDENELEKTRONIK_WIRELESSHANDHELDTERMINAL, UFTDI_TYPE_8U232AM)}, {USB_VPI(USB_VENDOR_FTDI, USB_PRODUCT_FTDI_SERIAL_8U100AX, UFTDI_TYPE_SIO)}, {USB_VPI(USB_VENDOR_FTDI, USB_PRODUCT_FTDI_SERIAL_2232C, UFTDI_TYPE_8U232AM)}, + {USB_VPI(USB_VENDOR_FTDI, USB_PRODUCT_FTDI_SERIAL_2232D, UFTDI_TYPE_8U232AM)}, {USB_VPI(USB_VENDOR_FTDI, USB_PRODUCT_FTDI_SERIAL_8U232AM, UFTDI_TYPE_8U232AM)}, {USB_VPI(USB_VENDOR_FTDI, USB_PRODUCT_FTDI_SERIAL_8U232AM4, UFTDI_TYPE_8U232AM)}, {USB_VPI(USB_VENDOR_FTDI, USB_PRODUCT_FTDI_SEMC_DSS20, UFTDI_TYPE_8U232AM)}, Modified: head/sys/dev/usb/usbdevs ============================================================================== --- head/sys/dev/usb/usbdevs Wed Dec 9 20:17:22 2009 (r200305) +++ head/sys/dev/usb/usbdevs Wed Dec 9 20:24:49 2009 (r200306) @@ -904,6 +904,7 @@ product ASANTE EA 0x1427 Ethernet product ASIX AX88172 0x1720 10/100 Ethernet product ASIX AX88178 0x1780 AX88178 product ASIX AX88772 0x7720 AX88772 +product ASIX AX88772A 0x772a AX88772A USB 2.0 10/100 Ethernet /* ASUS products */ product ASUS WL167G 0x1707 WL-167g Wireless Adapter @@ -1320,6 +1321,7 @@ product FTDI SERIAL_8U100AX 0x8372 8U100 product FTDI SERIAL_8U232AM 0x6001 8U232AM Serial product FTDI SERIAL_8U232AM4 0x6004 8U232AM Serial product FTDI SERIAL_2232C 0x6010 FT2232C Dual port Serial +product FTDI SERIAL_2232D 0x9e90 FT2232D Dual port Serial /* Gude Analog- und Digitalsysteme products also uses FTDI's id: */ product FTDI TACTRIX_OPENPORT_13M 0xcc48 OpenPort 1.3 Mitsubishi product FTDI TACTRIX_OPENPORT_13S 0xcc49 OpenPort 1.3 Subaru _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org" State-Changed-From-To: open->patched State-Changed-By: linimon State-Changed-When: Mon Dec 14 02:43:47 UTC 2009 State-Changed-Why: set as MFC reminder. Responsible-Changed-From-To: freebsd-usb->thompsa Responsible-Changed-By: linimon Responsible-Changed-When: Mon Dec 14 02:43:47 UTC 2009 Responsible-Changed-Why: http://www.freebsd.org/cgi/query-pr.cgi?pr=140923 From: dfilter@FreeBSD.ORG (dfilter service) To: bug-followup@FreeBSD.org Cc: Subject: Re: usb/140923: commit references a PR Date: Thu, 31 Dec 2009 00:08:43 +0000 (UTC) Author: thompsa Date: Thu Dec 31 00:06:12 2009 New Revision: 201298 URL: http://svn.freebsd.org/changeset/base/201298 Log: MFC r200306 Add new device ids. PR: usb/140951, usb/140923 Submitted by: Romain Tartiere, Brett Glass Modified: stable/8/sys/dev/usb/net/if_axe.c stable/8/sys/dev/usb/serial/uftdi.c stable/8/sys/dev/usb/usbdevs Directory Properties: stable/8/sys/ (props changed) stable/8/sys/amd64/include/xen/ (props changed) stable/8/sys/cddl/contrib/opensolaris/ (props changed) stable/8/sys/contrib/dev/acpica/ (props changed) stable/8/sys/contrib/pf/ (props changed) stable/8/sys/dev/xen/xenpci/ (props changed) Modified: stable/8/sys/dev/usb/net/if_axe.c ============================================================================== --- stable/8/sys/dev/usb/net/if_axe.c Thu Dec 31 00:05:28 2009 (r201297) +++ stable/8/sys/dev/usb/net/if_axe.c Thu Dec 31 00:06:12 2009 (r201298) @@ -141,6 +141,7 @@ static const struct usb_device_id axe_de {USB_VPI(USB_VENDOR_ASIX, USB_PRODUCT_ASIX_AX88172, 0)}, {USB_VPI(USB_VENDOR_ASIX, USB_PRODUCT_ASIX_AX88178, AXE_FLAG_178)}, {USB_VPI(USB_VENDOR_ASIX, USB_PRODUCT_ASIX_AX88772, AXE_FLAG_772)}, + {USB_VPI(USB_VENDOR_ASIX, USB_PRODUCT_ASIX_AX88772A, AXE_FLAG_772)}, {USB_VPI(USB_VENDOR_ATEN, USB_PRODUCT_ATEN_UC210T, 0)}, {USB_VPI(USB_VENDOR_BELKIN, USB_PRODUCT_BELKIN_F5D5055, AXE_FLAG_178)}, {USB_VPI(USB_VENDOR_BILLIONTON, USB_PRODUCT_BILLIONTON_USB2AR, 0)}, Modified: stable/8/sys/dev/usb/serial/uftdi.c ============================================================================== --- stable/8/sys/dev/usb/serial/uftdi.c Thu Dec 31 00:05:28 2009 (r201297) +++ stable/8/sys/dev/usb/serial/uftdi.c Thu Dec 31 00:06:12 2009 (r201298) @@ -221,6 +221,7 @@ static struct usb_device_id uftdi_devs[] {USB_VPI(USB_VENDOR_DRESDENELEKTRONIK, USB_PRODUCT_DRESDENELEKTRONIK_WIRELESSHANDHELDTERMINAL, UFTDI_TYPE_8U232AM)}, {USB_VPI(USB_VENDOR_FTDI, USB_PRODUCT_FTDI_SERIAL_8U100AX, UFTDI_TYPE_SIO)}, {USB_VPI(USB_VENDOR_FTDI, USB_PRODUCT_FTDI_SERIAL_2232C, UFTDI_TYPE_8U232AM)}, + {USB_VPI(USB_VENDOR_FTDI, USB_PRODUCT_FTDI_SERIAL_2232D, UFTDI_TYPE_8U232AM)}, {USB_VPI(USB_VENDOR_FTDI, USB_PRODUCT_FTDI_SERIAL_8U232AM, UFTDI_TYPE_8U232AM)}, {USB_VPI(USB_VENDOR_FTDI, USB_PRODUCT_FTDI_SERIAL_8U232AM4, UFTDI_TYPE_8U232AM)}, {USB_VPI(USB_VENDOR_FTDI, USB_PRODUCT_FTDI_SEMC_DSS20, UFTDI_TYPE_8U232AM)}, Modified: stable/8/sys/dev/usb/usbdevs ============================================================================== --- stable/8/sys/dev/usb/usbdevs Thu Dec 31 00:05:28 2009 (r201297) +++ stable/8/sys/dev/usb/usbdevs Thu Dec 31 00:06:12 2009 (r201298) @@ -904,6 +904,7 @@ product ASANTE EA 0x1427 Ethernet product ASIX AX88172 0x1720 10/100 Ethernet product ASIX AX88178 0x1780 AX88178 product ASIX AX88772 0x7720 AX88772 +product ASIX AX88772A 0x772a AX88772A USB 2.0 10/100 Ethernet /* ASUS products */ product ASUS WL167G 0x1707 WL-167g Wireless Adapter @@ -1319,6 +1320,7 @@ product FTDI SERIAL_8U100AX 0x8372 8U100 product FTDI SERIAL_8U232AM 0x6001 8U232AM Serial product FTDI SERIAL_8U232AM4 0x6004 8U232AM Serial product FTDI SERIAL_2232C 0x6010 FT2232C Dual port Serial +product FTDI SERIAL_2232D 0x9e90 FT2232D Dual port Serial /* Gude Analog- und Digitalsysteme products also uses FTDI's id: */ product FTDI TACTRIX_OPENPORT_13M 0xcc48 OpenPort 1.3 Mitsubishi product FTDI TACTRIX_OPENPORT_13S 0xcc49 OpenPort 1.3 Subaru _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org" State-Changed-From-To: patched->closed State-Changed-By: linimon State-Changed-When: Mon Feb 8 07:08:22 UTC 2010 State-Changed-Why: Committed and merged to 8. http://www.freebsd.org/cgi/query-pr.cgi?pr=140923 >Unformatted: