From owner-freebsd-usb@FreeBSD.ORG Fri Nov 27 06:00:13 2009 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 A3ECA106566B for ; Fri, 27 Nov 2009 06:00:13 +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 6630D8FC13 for ; Fri, 27 Nov 2009 06:00:13 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id nAR60B4X092675 for ; Fri, 27 Nov 2009 06:00:11 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id nAR60Bdb092674; Fri, 27 Nov 2009 06:00:11 GMT (envelope-from gnats) Resent-Date: Fri, 27 Nov 2009 06:00:11 GMT Resent-Message-Id: <200911270600.nAR60Bdb092674@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, Brett Glass 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 X-Send-Pr-Version: www-3.1 Cc: Subject: usb/140923: Add support for new rev of USB Ethernet chip 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: Fri, 27 Nov 2009 06:00:13 -0000 >Number: 140923 >Category: usb >Synopsis: Add support for new rev of USB Ethernet chip >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Fri Nov 27 06:00:11 UTC 2009 >Closed-Date: >Last-Modified: >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: >Unformatted: