From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR01-DB5-obe.outbound.protection.outlook.com (EUR01-DB5-obe.outbound.protection.outlook.com [40.107.15.51]) by mx.groups.io with SMTP id smtpd.web10.7309.1586617722712766772 for ; Sat, 11 Apr 2020 08:08:43 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=2hGPen8N; spf=pass (domain: arm.com, ip: 40.107.15.51, mailfrom: samer.el-haj-mahmoud@arm.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=7tt6FHRQ6bJglkZhPVe8UtYs+a8efz3ZoMRgKwpQirQ=; b=2hGPen8NuP8EotLvPQ7hIjSTVTkiSbDbQKDQHpwtQXaaofpz6on9FekfrATulA9EYYKi4ZSxNjCbBcbXPlVoz6kg6cvxawen64OL/1K30DXhKHLLGTk+kNFK7VLwu+iBEH3UA1u6c3Ly4Wh/MRbbDiXqjok/mTICpw4jpMhuh7A= Received: from DB6P18901CA0002.EURP189.PROD.OUTLOOK.COM (2603:10a6:4:16::12) by AM0PR08MB3140.eurprd08.prod.outlook.com (2603:10a6:208:61::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2900.15; Sat, 11 Apr 2020 15:08:40 +0000 Received: from DB5EUR03FT024.eop-EUR03.prod.protection.outlook.com (2603:10a6:4:16:cafe::17) by DB6P18901CA0002.outlook.office365.com (2603:10a6:4:16::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2900.17 via Frontend Transport; Sat, 11 Apr 2020 15:08:40 +0000 Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; edk2.groups.io; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;edk2.groups.io; dmarc=bestguesspass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DB5EUR03FT024.mail.protection.outlook.com (10.152.20.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2900.18 via Frontend Transport; Sat, 11 Apr 2020 15:08:40 +0000 Received: ("Tessian outbound eadf07c3b4bb:v50"); Sat, 11 Apr 2020 15:08:40 +0000 X-CR-MTA-TID: 64aa7808 Received: from b21c0c6445a5.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 40052E64-C0DC-4ED0-A301-BCCF511E34C4.1; Sat, 11 Apr 2020 15:08:34 +0000 Received: from EUR01-VE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id b21c0c6445a5.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Sat, 11 Apr 2020 15:08:34 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IL+cBQbWscGE901tkPLtzHwIwG/k//GTKlzOU/T1BwGssNnIPozaoWMPmuICJ3FWPiE2p3s2yPR5aE157b3OuZuJbIUvqqgmJDhExpe0Jdi3Vel9HgwhE2F5oGFMRwfY5G63lZHdd3BRGzHwxhXyQIEbXSPmbS0IH+AP1RRzS/YikkO3FfHNFyosVY3Fu+IU2WzXv5P93zHD2gI+rR6Ea9pEFwQRIVOqRttui0MM3XDuEwG9XzhKogvHDkfArDQZyvGHVjYd61+AM0jpk84T+YdDLeVpzrRqn/2GCEvEqAjVvjfDduYmsYhcAti6dygrn5qTmJpo1txk0VLNVbsIPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=7tt6FHRQ6bJglkZhPVe8UtYs+a8efz3ZoMRgKwpQirQ=; b=bDe9TsafSwxaXvgdh8w//wfV6b4w89G75SV5Hf7tTcXTMy9JsK249EbnnrJxvLFzVsgyKnPAJaJw0BJ+3KGsjITt/rRdRimmXCHfvdhx+0EWG6MfG9fqtL0g1XO24fHCNg3IaXW+o1S/bUaHxa1WjByt/JcF2rc6Ur2Fr0JI2uH1vn7QfRNZn6XODMgE0PFd56Wkj/1idvLOTKuYGrYTc2WvDSx40Sg08O3qCnoS+muO1+XBVb9vlh5uvTIbxMXgvJgg0SZXjxpcp/hKujiymWWiy5u8mXG9Z2k24dwnRDUSWX2omZbJR8orBwME+D5rF0fc+aV6o4hnGolC9TT+Hg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=7tt6FHRQ6bJglkZhPVe8UtYs+a8efz3ZoMRgKwpQirQ=; b=2hGPen8NuP8EotLvPQ7hIjSTVTkiSbDbQKDQHpwtQXaaofpz6on9FekfrATulA9EYYKi4ZSxNjCbBcbXPlVoz6kg6cvxawen64OL/1K30DXhKHLLGTk+kNFK7VLwu+iBEH3UA1u6c3Ly4Wh/MRbbDiXqjok/mTICpw4jpMhuh7A= Received: from DB7PR08MB3260.eurprd08.prod.outlook.com (2603:10a6:5:21::23) by DB7PR08MB4617.eurprd08.prod.outlook.com (2603:10a6:10:75::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2900.23; Sat, 11 Apr 2020 15:08:30 +0000 Received: from DB7PR08MB3260.eurprd08.prod.outlook.com ([fe80::990e:ed79:bec0:9dac]) by DB7PR08MB3260.eurprd08.prod.outlook.com ([fe80::990e:ed79:bec0:9dac%7]) with mapi id 15.20.2900.026; Sat, 11 Apr 2020 15:08:30 +0000 From: "Samer El-Haj-Mahmoud" To: "devel@edk2.groups.io" , "rfc@edk2.groups.io" CC: Ray Ni , Samer El-Haj-Mahmoud , Ard Biesheuvel Subject: RFC: ASIX USB drivers Thread-Topic: RFC: ASIX USB drivers Thread-Index: AdYQEKk/oKt2x9cGRq6jvBFCCrgfZA== Date: Sat, 11 Apr 2020 15:08:30 +0000 Message-ID: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ts-tracking-id: 11baeb55-b7e8-4156-ad65-32d1741bac77.0 x-checkrecipientchecked: true Authentication-Results-Original: spf=none (sender IP is ) smtp.mailfrom=Samer.El-Haj-Mahmoud@arm.com; x-originating-ip: [99.132.126.10] x-ms-publictraffictype: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: aa1853ad-e2a5-4b06-3d9d-08d7de2a37e6 x-ms-traffictypediagnostic: DB7PR08MB4617:|DB7PR08MB4617:|AM0PR08MB3140: x-ms-exchange-transport-forked: True X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true nodisclaimer: true x-ms-oob-tlc-oobclassifiers: OLM:10000;OLM:10000; x-forefront-prvs: 03706074BC X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB7PR08MB3260.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(10009020)(4636009)(39850400004)(366004)(136003)(376002)(346002)(396003)(66446008)(66476007)(64756008)(66556008)(66946007)(316002)(16799955002)(26005)(76116006)(5660300002)(52536014)(4326008)(110136005)(54906003)(8936002)(71200400001)(186003)(86362001)(6506007)(7696005)(478600001)(9686003)(55016002)(81156014)(8676002)(7116003)(966005)(2906002)(33656002);DIR:OUT;SFP:1101; received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts) X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: 7+UKVP8cdYaNjhkukwzIquxTHL3K36pDCct+WHt1UFt1RB+6+YGV0WgdY7l6s3XFcTOXcXspZxQDXKnqFEeEE91zSW4qOx0O7RdbNTigKDmzgZx3kLw/cAzx28cJhUZH0ckG/z6QVFq4/BacdPI+tCrPbRUwd54eZynLTDDNxCn5J9ZfhM6fTPh7I3IRAs3STstt8T1fgkV8I0YI3Hmji12+nOFmXfRJbgkmY6cjgF0ukOtlvgfiUzj+IByoAbWtwtotFvb1aosY20n3bzjHscTGLUC+Pr8S5zRddK+D5BfyU5SFr8CNSUpJigHPeTKgeMV5lzHPLluCg7LBKc6PtkvIAZzSQeG89XgBq1+2IDSuXcRf2/pdhamut8DqcEVi5ltB56uQvpVskRA08aoZkoLo0KZwD8iYJQ+wHCTElM/TPXHGqNU82WU7i+wmfpOMVrIiJ5NNj5UpUB7A4LuATWxWly6mqxpLz6H1SMA0WHS4CbT+CcxQXG55q0JzAKF4UGF5LEE+mVPLg/y1cLPiRg== x-ms-exchange-antispam-messagedata: 6QaZvfzx3O9IzXLQWhMz/RFVoNfyT/zlRQjRktqwHM8VjEFVQQHOXMxwDZXUbOIBCpi/sDkDog5uXTI1X1UOOuTK2faKn8KUvXHyglBIFXbGHsoxTEhaSPXz0UC/6uTwzGVpu5tQOSIAbeI9c1UMbg== MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR08MB4617 Original-Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Samer.El-Haj-Mahmoud@arm.com; Return-Path: Samer.El-Haj-Mahmoud@arm.com X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT024.eop-EUR03.prod.protection.outlook.com X-Forefront-Antispam-Report: CIP:63.35.35.123;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:64aa7808-outbound-1.mta.getcheckrecipient.com;PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com;CAT:NONE;SFTY:;SFS:(10009020)(4636009)(396003)(39850400004)(136003)(346002)(376002)(46966005)(478600001)(186003)(966005)(7696005)(5660300002)(26826003)(52536014)(47076004)(16799955002)(55016002)(33656002)(86362001)(26005)(82740400003)(70586007)(9686003)(70206006)(110136005)(450100002)(4326008)(2906002)(8676002)(54906003)(7116003)(81156014)(81166007)(6506007)(8936002)(336012)(316002)(356005);DIR:OUT;SFP:1101; X-MS-Office365-Filtering-Correlation-Id-Prvs: df5882fc-6161-443f-7a5f-08d7de2a31ea X-Forefront-PRVS: 03706074BC X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: lu+76NMlcf9k5QfhtAheWYK+HFbGv4VYf4T6G81TZrLA1sHZNMmgqMguPmVIAhsqF696TlPDJtK5HJ1LHbZhw1g1PVd6UiIFeMbkxOlt6faF4Q/Z9UpL88RhMfuF2cLWD3sUz5S7reYrgO/xHeCW82ihf5XkKdCuk0MpY9EH+XH00InZU3DHG0G1yYw/fGK0WARJUcok4GNUn7sI2T4yfL4tojXC2QTG10dBuS68I5y+7K4ys0+Ci9rn3Tgd1e4nOgBaDq3ewfcecDC5XHxgafFWwgg+fNl+QyJ/fUBnejARzH5xGSKpeoAoj3R0L01qxNTbi/QXH3UG1ojHrj6CuLA5n0X8VAuSX2ylVidcg4kCFT9coCFBKRPBxU2b/vFKU7mWGRzFGaZuAJQbdaYdT9LGrukxEnxnZ1RSYkUvm65ZaXY8t4Vcc5IPBLUsz5XKCBQv5X1goC2QFw56/B0t1P4oDK/6lIGVxfscXiLXMdxslm1WHusBnMj43GGVMeBJs7HojWinNczCsZ9WLofgviVeAx2e5tn/hKsW7Vc1YgvVd8iMMiWtNa2GBELQgpnszEc5n+FH7B69cLOMdPZ/dQ== X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Apr 2020 15:08:40.3963 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: aa1853ad-e2a5-4b06-3d9d-08d7de2a37e6 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d;Ip=[63.35.35.123];Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR08MB3140 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable EDK2 community, (and CCing OptionRomPkg maintainers), ASIX (https://www.asix.com.tw/) has graciously contributed the source code = of their latest USB NIC drivers to be up-streamed to TianoCore. The original contribution (ZIP files) is available here: https://github.com= /samerhaj/uefi_drivers/tree/master/UsbNetworking/Asix I cleaned up the code a bit, and prepared it under this branch on my edk2-p= latform fork: https://github.com/samerhaj/edk2-platforms/tree/ASIX_USB_Netw= orking You will find the following new folders under /Drivers/OptionRomPkg/Bus/Usb= /UsbNetworking : /Ax88179 - UEFI driver version 2.9.0 for Ax88179 and Ax88178a - Source provided by ASIX as: https://github.com/samerhaj/uefi_drivers/blob= /master/UsbNetworking/Asix/zip/source/AX88179_178a_UEFI_v2.9.0_Source.zip - Source corresponds to the binary driver available at: https://www.asix.co= m.tw/products.php?op=3DpItemdetail&PItemID=3D131;71;112 /Ax88772c - UEFI driver version 2.8.0 for Ax88772c / Ax88772b / Ax88772a - Source provided by ASIX as: https://github.com/samerhaj/uefi_drivers/blob= /master/UsbNetworking/Asix/zip/source/AX88772C_772B_772A_UEFI_v2.8.0_Source= .zip - Source corresponds to the binary driver available at: https://www.asix.c= om.tw/download.php?sub=3Ddriverdetail&PItemID=3D136 The new Ax88772c driver can effectively replace the existing driver in edk2= -platforms/Drivers/OptionRomPkg/Bus/Usb/UsbNetworking/Ax88772b. I compared = the code of the new driver with the hisoty of changes to the existing Ax887= 72b driver (tracing the history back to when OptionRomPkg was under edk2). = As far as I can tell, all changes are accounted for in Ax88772c, except the= following commits from edk2/OptionRomPkg: Revision: 45e675f2d0eeda0511b5d6e0ed54f62f94c3826f OptionRomPkg: Ax88772b: Fixing compilation Revision: 9a1c4beca0463066660635c2494bb8cf66d4c4bd OptionRomPkg: Ax88772b: support for multiple dongles and chips Revision: 4986bbaf1151d1cccc1f2589bd13a86b539676b2 Ax88772: Add logic to separate packet, fix MTU issue. Ax88772b: Fix driver = model unload function, fix SCT test failures. Can folks please take a look at my branch and comment on anything else that= might be missing, and on the readiness of this code to get upstreamed to e= dk2-platform ? I also appreciate any testing on this code, since I only hav= e an AX88772A with IDs ids: Vendor0x0B95 - ASIX Electronics Corp. idProduct0x7720 bcdDevice0x0001 - Device# =3D 00.01 iManufacturer0x01 - ASIX Elec. Corp. iProduct0x02 - AX88772A Thanks, --Samer IMPORTANT NOTICE: The contents of this email and any attachments are confid= ential and may also be privileged. If you are not the intended recipient, p= lease notify the sender immediately and do not disclose the contents to any= other person, use it for any purpose, or store or copy the information in = any medium. Thank you.