From patchwork Tue Dec 1 01:16:10 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "ASIX_Allan [Office]" X-Patchwork-Id: 550569 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id DDCB71401CD for ; Tue, 1 Dec 2015 12:16:47 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754996AbbLABQb (ORCPT ); Mon, 30 Nov 2015 20:16:31 -0500 Received: from asix.com.tw ([113.196.140.82]:45316 "EHLO freebsd1.asix.com.tw" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751959AbbLABQ3 (ORCPT ); Mon, 30 Nov 2015 20:16:29 -0500 Received: from AllanWin8 ([10.1.4.180]) (authenticated bits=0) by freebsd1.asix.com.tw (8.14.8/8.14.6) with ESMTP id tB11F0Ba062173 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO); Tue, 1 Dec 2015 09:15:01 +0800 (CST) (envelope-from allan@asix.com.tw) X-Authentication-Warning: freebsd1.asix.com.tw: Host [10.1.4.180] claimed to be AllanWin8 Reply-To: From: "ASIX_Allan [Office]" To: Cc: , , "'Grant Grundler'" , "'Eugene'" , =?big5?B?J0FTSVggTG91aXMgW8Ssq8KzsF0n?= , "'Jegannathan Ramanujam'" Subject: [PATCH] drivers/net/usb/ax88179_178a: added Cypress GX3 VID_04b4/PID_3610 Date: Tue, 1 Dec 2015 09:16:10 +0800 Organization: ASIX Message-ID: <00a201d12bd5$e1069b30$a313d190$@asix.com.tw> MIME-Version: 1.0 X-Priority: 1 (Highest) X-MSMail-Priority: High X-Mailer: Microsoft Outlook 14.0 thread-index: AdEr1cFxJVjsu61tQleXKXNn10J6vw== Importance: High Content-Language: zh-tw Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Added to support Cypress GX3 SuperSpeed to Gigabit Ethernet Bridge Controller (VID_04b4/PID_3610). Signed-off-by: Allan Chou Tested-by: Allan Chou --- This patch had been verified on x86 Linux kernel 4.1.6 system with Cypress GX3 SuperSpeed to Gigabit Ethernet Bridge Controller (VID_04b4/PID_3610) dongle. /* ASIX AX88179 10/100/1000 */ @@ -1733,6 +1748,10 @@ /* Lenovo OneLinkDock Gigabit LAN */ USB_DEVICE(0x17ef, 0x304b), .driver_info = (unsigned long)&lenovo_info, +}, { + /* Cypress GX3 SuperSpeed to Gigabit Ethernet Bridge Controller */ + USB_DEVICE(0x04b4, 0x3610), + .driver_info = (unsigned long)&cypress_GX3_info, }, { }, }; --- Best regards, Allan Chou Technical Support Division ASIX Electronics Corporation TEL: 886-3-5799500 ext.228 FAX: 886-3-5799558 E-mail: allan@asix.com.tw http://www.asix.com.tw/ -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff -Naur a/ax88179_178a.c b/ax88179_178a.c --- a/ax88179_178a.c 2015-08-17 11:52:51.000000000 +0800 +++ b/ax88179_178a.c 2015-11-30 16:44:31.311674000 +0800 @@ -1708,6 +1708,21 @@ .tx_fixup = ax88179_tx_fixup, }; +static const struct driver_info cypress_GX3_info = { + .description = "Cypress GX3 SuperSpeed to Gigabit Ethernet Bridge Controller", + .bind = ax88179_bind, + .unbind = ax88179_unbind, + .status = ax88179_status, + .link_reset = ax88179_link_reset, + .reset = ax88179_reset, + .stop = ax88179_stop, + .flags = FLAG_ETHER | FLAG_FRAMING_AX, + .rx_fixup = ax88179_rx_fixup, + .tx_fixup = ax88179_tx_fixup, +}; + + + static const struct usb_device_id products[] = { {