From patchwork Wed Nov 21 10:14:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Igor Russkikh X-Patchwork-Id: 10692293 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E791B1709 for ; Wed, 21 Nov 2018 10:15:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CC32C2B8EA for ; Wed, 21 Nov 2018 10:15:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BA2E12B8E8; Wed, 21 Nov 2018 10:15:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0C7A52B8E8 for ; Wed, 21 Nov 2018 10:15:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728627AbeKUUr6 (ORCPT ); Wed, 21 Nov 2018 15:47:58 -0500 Received: from mail-eopbgr740078.outbound.protection.outlook.com ([40.107.74.78]:56935 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728601AbeKUUr5 (ORCPT ); Wed, 21 Nov 2018 15:47:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=AQUANTIA1COM.onmicrosoft.com; s=selector1-aquantia-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=VTDK2R4w4Fc373NYKdeZS5DPg41s8Jhg23l2uXmar/0=; b=N9UWcbFhPVhqAe806sQrEMXb/mnP2KpCvjSBn5FLTFmVz9sOLtRK6mABBm9WqxUj1Hh/ZwYC+FToxocvFSpQN/AljqvamLAzvkRPSgqrGue99DocDJHnbAaqGniSNuByjxQvbpA3DyBFhbiNwF6eFqZnPxGphePjvIGUYRVY6jw= Received: from BY1PR0701MB1660.namprd07.prod.outlook.com (10.162.110.22) by BY1PR0701MB1287.namprd07.prod.outlook.com (10.160.108.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1339.26; Wed, 21 Nov 2018 10:14:05 +0000 Received: from BY1PR0701MB1660.namprd07.prod.outlook.com ([fe80::f8ee:2260:e410:fffd]) by BY1PR0701MB1660.namprd07.prod.outlook.com ([fe80::f8ee:2260:e410:fffd%3]) with mapi id 15.20.1361.015; Wed, 21 Nov 2018 10:14:05 +0000 From: Igor Russkikh To: "linux-usb@vger.kernel.org" , "davem@davemloft.net" , "netdev@vger.kernel.org" CC: "andrew@lunn.ch" , Dmitry Bezrukov , Igor Russkikh Subject: [PATCH v3 net-next 20/21] net: usb: aqc111: Add ASIX's HW ids Thread-Topic: [PATCH v3 net-next 20/21] net: usb: aqc111: Add ASIX's HW ids Thread-Index: AQHUgYLu4c/qLhvjxU+IRGWiUiBNfQ== Date: Wed, 21 Nov 2018 10:14:05 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: AM6PR0402CA0007.eurprd04.prod.outlook.com (2603:10a6:209::20) To BY1PR0701MB1660.namprd07.prod.outlook.com (2a01:111:e400:522a::22) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Igor.Russkikh@aquantia.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [95.79.108.179] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;BY1PR0701MB1287;6:emquGA/OxzkNfGUNEkCdPAGp3cNVwmcD7zF0323xiS6DwaMhKmA9R7udknBZy5qxpcoOyzmnpjzXJNSlTfSP1kgZuz8QICa9C60RScG4CtrQmo3ZjjL1VDuPwZ5bGyCVkm9KUPgqxF29p5p9lXxGl6F4NGqyH8viWP4i0bdYK2KQb7pqeCaocW/MdLTNdRfRXY4FQyeU/BQ2Sy4i5zEInbfT7dZzKSi6+OwVEio9UYBh22BrneLr7yLeuODwBcaum/yR7OV2oZkTudwzeCdOEKDSV03XOYzIcCS9MhlaXUceJ/Vz/cRPeWlIjq/J5aULui5jXvFdeZJ1AAQ09dZMH++CmEM8TCf8vu3yES9OJ4Ai46USQ0v+QyFBAuURpY5J8QaMOhqhHqQWWz71ormsZ6o/x3g38lWKTW4l4RaJwSlcamSr34c8NyPaDR7sxeysoWU6OJAYuRDPEzKfViWHYVP3f/+EiaCwGraCxqh8Phc=;5:zeceXGowjo/Va4yvnCvqn/TT4i3xWLjHAme3hi3mRlyt4UzNxk0TWbEN7hqQ1oljUTVktDZYsos7wK02dI8Xd6DmsFXb69wx5PIaJ5GNhCsxVQKbwhdVW576cRNBM/Q4q30FMQ1XmFloeazbo94poVikDVX730yOFDYgTk4jHIg=;7:T0ahvZCJnIReY31J6fowSJ2d6Ooc3wstupusT578eCu1v5rInPWUbDmOhUuOYSZOnhLwEF6VBnmUDbPJKaL7jpAtWZ0RS9ZB4z9cNsBNsEYbKCr3wwsp7hnirCvpiQLzEb8qZxoMYJfJ6BXDMo3DuA== x-ms-office365-filtering-correlation-id: 7cd26ae7-efc2-4372-be2d-08d64f9a10e3 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390098)(7020095)(4652040)(8989299)(5600074)(711020)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020);SRVR:BY1PR0701MB1287; x-ms-traffictypediagnostic: BY1PR0701MB1287: x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040522)(2401047)(8121501046)(5005006)(3002001)(10201501046)(93006095)(93001095)(3231442)(944501410)(52105112)(148016)(149066)(150057)(6041310)(20161123560045)(20161123562045)(20161123558120)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051)(76991095);SRVR:BY1PR0701MB1287;BCL:0;PCL:0;RULEID:;SRVR:BY1PR0701MB1287; x-forefront-prvs: 08635C03D4 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(39850400004)(396003)(346002)(136003)(366004)(376002)(189003)(199004)(106356001)(25786009)(66066001)(5660300001)(2906002)(7736002)(305945005)(97736004)(6512007)(2900100001)(2501003)(110136005)(2201001)(478600001)(36756003)(68736007)(54906003)(316002)(6436002)(14454004)(575784001)(105586002)(72206003)(14444005)(81156014)(386003)(6506007)(102836004)(4326008)(76176011)(81166006)(71200400001)(186003)(26005)(8676002)(8936002)(71190400001)(107886003)(99286004)(256004)(118296001)(52116002)(86362001)(44832011)(53936002)(6486002)(3846002)(6116002)(476003)(11346002)(486006)(2616005)(446003);DIR:OUT;SFP:1101;SCL:1;SRVR:BY1PR0701MB1287;H:BY1PR0701MB1660.namprd07.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: aquantia.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: 4SHCiMjzZIajbL4Ad26+63LskGqVR47rqMOEJ8Zp3SSElAwwV1+rbXV1HrnpxOwil6rYBGZMZ5L6T0zUTpfVmc2DB+8Z0x3Vo3nY73F5eo4qtktQgEm+k5c1X1ykEAaCcOhUAC0ir+yPvHKD5tXll+/cDCJ1pfplUkZ9IjT9NgXzj8Y184Ghr0ljIHAAuAuDCQ8axEszD2X6ktn60vE5ht6dUkOrtklKFf9v2/cLg86luWpunC90L/aJJttq9QNukjtn8tKuK1/X4BND6zS0sv6EKgFvPnVbgwYN48PFDdOqHsUq7JsIFR9uWbU8AncccSXCQIPbKFH5q2Ns32rG9iaiqu2l575B+Rr4wlViZgc= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: aquantia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7cd26ae7-efc2-4372-be2d-08d64f9a10e3 X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Nov 2018 10:14:05.0485 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 83e2e134-991c-4ede-8ced-34d47e38e6b1 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR0701MB1287 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Dmitry Bezrukov It enables driver for ASIX products which are also based on aqc111/112U chips. Signed-off-by: Dmitry Bezrukov Signed-off-by: Igor Russkikh --- drivers/net/usb/aqc111.c | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/drivers/net/usb/aqc111.c b/drivers/net/usb/aqc111.c index 03f9b5a20e6c..782925d77ef6 100644 --- a/drivers/net/usb/aqc111.c +++ b/drivers/net/usb/aqc111.c @@ -1248,6 +1248,44 @@ static const struct driver_info aqc111_info = { .tx_fixup = aqc111_tx_fixup, }; +#define ASIX111_DESC \ +"ASIX USB 3.1 Gen1 to 5G Multi-Gigabit Ethernet Adapter" + +static const struct driver_info asix111_info = { + .description = ASIX111_DESC, + .bind = aqc111_bind, + .unbind = aqc111_unbind, + .status = aqc111_status, + .link_reset = aqc111_link_reset, + .reset = aqc111_reset, + .stop = aqc111_stop, + .flags = FLAG_ETHER | FLAG_FRAMING_AX | + FLAG_AVOID_UNLINK_URBS | FLAG_MULTI_PACKET, + .rx_fixup = aqc111_rx_fixup, + .tx_fixup = aqc111_tx_fixup, +}; + +#undef ASIX111_DESC + +#define ASIX112_DESC \ +"ASIX USB 3.1 Gen1 to 2.5G Multi-Gigabit Ethernet Adapter" + +static const struct driver_info asix112_info = { + .description = ASIX112_DESC, + .bind = aqc111_bind, + .unbind = aqc111_unbind, + .status = aqc111_status, + .link_reset = aqc111_link_reset, + .reset = aqc111_reset, + .stop = aqc111_stop, + .flags = FLAG_ETHER | FLAG_FRAMING_AX | + FLAG_AVOID_UNLINK_URBS | FLAG_MULTI_PACKET, + .rx_fixup = aqc111_rx_fixup, + .tx_fixup = aqc111_tx_fixup, +}; + +#undef ASIX112_DESC + static int aqc111_suspend(struct usb_interface *intf, pm_message_t message) { struct usbnet *dev = usb_get_intfdata(intf); @@ -1397,6 +1435,8 @@ static int aqc111_resume(struct usb_interface *intf) static const struct usb_device_id products[] = { {AQC111_USB_ETH_DEV(0x2eca, 0xc101, aqc111_info)}, + {AQC111_USB_ETH_DEV(0x0b95, 0x2790, asix111_info)}, + {AQC111_USB_ETH_DEV(0x0b95, 0x2791, asix112_info)}, { },/* END */ }; MODULE_DEVICE_TABLE(usb, products);