Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp4204782pxu; Mon, 12 Oct 2020 12:11:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/3r1sucT+mYSJpg+L0c/16yzQsMNhbTJhexr77PLVfs3HZdhWknfLYrsCqnBlQ36vDcSL X-Received: by 2002:a17:906:d89:: with SMTP id m9mr28887753eji.18.1602529908508; Mon, 12 Oct 2020 12:11:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602529908; cv=none; d=google.com; s=arc-20160816; b=WJHVndWKjT2BFzEUxtZlV9x9Q9/hhQwzBXprsxnfr6XvL8sEL0YoYn/hW3pGPzvdNH YHu3up97u27yeVN5DodxykzyAw0tFQKifkNmnXOTNEqIiLJ2KO9vGqMJmW7wmq2dVZvq 4FRd/+wjMRwzwG9gszl72fL7NxOrBoP1zU6eMLcs7+HNyMCCZjLQlIhsx1R/PsQybmfN 4CCyD6VKrGjjwgqF/E0nJ6Q84MYlX4cT83uMDUB8TVD/0QNm2Lvw+IOXge8Aqrc0DLzP IJHQb+kt0VmqLGYrKEMLDligItixgXP10r3+Yanh8A6YPrHR5k+oHavkBOgVLCAJhBXj zyxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=egoTCJBOgeXO4bBSq6RNussbp0wL/OynBN/cVtzZ2RY=; b=oRSkfqavYCzQNP3fSWi9/fgop7H8Eoo5kaO/N69yG9sI2GNza04eEWueMHuzIB9OP4 4/sInPVmr+YOd+gZZ/uiCvyIJMr7rGhOS4c66LFK6Lg1uEg4XlW7xgPW3pBbcIdDavMH EvFfEdg6mEOix++ZXqZz0oYpD3C7k7yP8B+Kphyrt2+JOuTwnFkdJrvgE2Ekq4U/tflu mObDddAA8i7yJGcii3zZ3NpC8SGx5jiNkuFFlf5UXhdPI7vag2AFCQ4OS6ERVFP9slzB g9/6aAZHprPdERy0m9BlIR6gNe8syq2OcnKBaI5mfix00ylYFAB0gmhvYMBcLHnOF+e6 8gRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=l3Uxohr4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k18si12996832edr.149.2020.10.12.12.11.24; Mon, 12 Oct 2020 12:11:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=l3Uxohr4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731351AbgJLTJR (ORCPT + 99 others); Mon, 12 Oct 2020 15:09:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:52258 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387933AbgJLTC4 (ORCPT ); Mon, 12 Oct 2020 15:02:56 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CDD46214D8; Mon, 12 Oct 2020 19:02:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1602529375; bh=2wljG4LeMS7hfd/+UNGq7TdFAwYhZZvRSu5x0DBBEDA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=l3Uxohr4empUXtSpgRdeEKa91N2YGhjd7B76wae0CCymrx631NBwhWwdNLdmQ+FsS Afn8Z/Ld3sHt5Dhqq5Rs4yIkSbQ6s+MyogyCTnl3/pVVyj61nKPDg/I8SYCrst+5rW T9I+Dd+U4KKWM4lPG7sE9V6WCsgQwyWAy+glb3jE= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Wilken Gottwalt , "David S . Miller" , Sasha Levin , linux-usb@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH AUTOSEL 5.8 12/24] net: usb: ax88179_178a: add MCT usb 3.0 adapter Date: Mon, 12 Oct 2020 15:02:27 -0400 Message-Id: <20201012190239.3279198-12-sashal@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201012190239.3279198-1-sashal@kernel.org> References: <20201012190239.3279198-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Wilken Gottwalt [ Upstream commit c92a79829c7c169139874aa1d4bf6da32d10c38a ] Adds the driver_info and usb ids of the AX88179 based MCT U3-A9003 USB 3.0 ethernet adapter. Signed-off-by: Wilken Gottwalt Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/usb/ax88179_178a.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/drivers/net/usb/ax88179_178a.c b/drivers/net/usb/ax88179_178a.c index 125f7bf57590b..a2f8a93c89269 100644 --- a/drivers/net/usb/ax88179_178a.c +++ b/drivers/net/usb/ax88179_178a.c @@ -1841,6 +1841,19 @@ static const struct driver_info toshiba_info = { .tx_fixup = ax88179_tx_fixup, }; +static const struct driver_info mct_info = { + .description = "MCT USB 3.0 Gigabit Ethernet Adapter", + .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[] = { { /* ASIX AX88179 10/100/1000 */ @@ -1878,6 +1891,10 @@ static const struct usb_device_id products[] = { /* Toshiba USB 3.0 GBit Ethernet Adapter */ USB_DEVICE(0x0930, 0x0a13), .driver_info = (unsigned long)&toshiba_info, +}, { + /* Magic Control Technology U3-A9003 USB 3.0 Gigabit Ethernet Adapter */ + USB_DEVICE(0x0711, 0x0179), + .driver_info = (unsigned long)&mct_info, }, { }, }; -- 2.25.1