From patchwork Mon Jun 26 17:41:20 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Davis X-Patchwork-Id: 780812 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 3wxGZM06V8z9s7m for ; Tue, 27 Jun 2017 03:41:31 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=ti.com header.i=@ti.com header.b="uyNM41Xu"; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751440AbdFZRl3 (ORCPT ); Mon, 26 Jun 2017 13:41:29 -0400 Received: from lelnx194.ext.ti.com ([198.47.27.80]:65100 "EHLO lelnx194.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751101AbdFZRl0 (ORCPT ); Mon, 26 Jun 2017 13:41:26 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by lelnx194.ext.ti.com (8.15.1/8.15.1) with ESMTP id v5QHfLfP021385; Mon, 26 Jun 2017 12:41:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1498498881; bh=wYgmDyEpTrle9CzqPYi2NhdZpjp1UbkOW/0DSowjXlU=; h=From:To:CC:Subject:Date; b=uyNM41XuM9Y658YXG78tWm7l1Gj7cINPuMmaQFFPJsAddRwTl9wv3vSxZPSabothc CjP52YwXvpmXplys74e/g6FBO4K8hwEPHA9bpzh8+t2kAoPapI2XUcFIkrAWjlHyy8 e2eM+C9CTLvzfIvVObk2amLm1By40CBJFfpxbXZQ= Received: from DLEE71.ent.ti.com (dlee71.ent.ti.com [157.170.170.114]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id v5QHfKNa022128; Mon, 26 Jun 2017 12:41:20 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DLEE71.ent.ti.com (157.170.170.114) with Microsoft SMTP Server id 14.3.294.0; Mon, 26 Jun 2017 12:41:20 -0500 Received: from legion.dal.design.ti.com (legion.dal.design.ti.com [128.247.22.53]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id v5QHfKiJ026697; Mon, 26 Jun 2017 12:41:20 -0500 Received: from localhost (uda0226330.dhcp.ti.com [128.247.58.225]) by legion.dal.design.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id v5QHfK327974; Mon, 26 Jun 2017 12:41:20 -0500 (CDT) From: "Andrew F. Davis" To: "David S . Miller" , Allan Chou , Geoffrey Tran CC: , , "Andrew F . Davis" Subject: [PATCH] net: usb: asix88179_178a: Add support for the Belkin B2B128 Date: Mon, 26 Jun 2017 12:41:20 -0500 Message-ID: <20170626174120.1293-1-afd@ti.com> X-Mailer: git-send-email 2.13.0 MIME-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org The Belkin B2B128 is a USB 3.0 Hub + Gigabit Ethernet Adapter, the Ethernet adapter uses the ASIX AX88179 USB 3.0 to Gigabit Ethernet chip supported by this driver, add the USB ID for the same. This patch is based on work by Geoffrey Tran who has indicated they would like this upstreamed by someone more familiar with the upstreaming process. Signed-off-by: Andrew F. Davis --- drivers/net/usb/ax88179_178a.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/drivers/net/usb/ax88179_178a.c b/drivers/net/usb/ax88179_178a.c index 51cf60092a18..4037ab27734a 100644 --- a/drivers/net/usb/ax88179_178a.c +++ b/drivers/net/usb/ax88179_178a.c @@ -1722,6 +1722,18 @@ static const struct driver_info lenovo_info = { .tx_fixup = ax88179_tx_fixup, }; +static const struct driver_info belkin_info = { + .description = "Belkin USB Ethernet Adapter", + .bind = ax88179_bind, + .unbind = ax88179_unbind, + .status = ax88179_status, + .link_reset = ax88179_link_reset, + .reset = ax88179_reset, + .flags = FLAG_ETHER | FLAG_FRAMING_AX, + .rx_fixup = ax88179_rx_fixup, + .tx_fixup = ax88179_tx_fixup, +}; + static const struct usb_device_id products[] = { { /* ASIX AX88179 10/100/1000 */ @@ -1751,6 +1763,10 @@ static const struct usb_device_id products[] = { /* Lenovo OneLinkDock Gigabit LAN */ USB_DEVICE(0x17ef, 0x304b), .driver_info = (unsigned long)&lenovo_info, +}, { + /* Belkin B2B128 USB 3.0 Hub + Gigabit Ethernet Adapter */ + USB_DEVICE(0x050d, 0x0128), + .driver_info = (unsigned long)&belkin_info, }, { }, };