Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CEA81C64EC7 for ; Thu, 23 Feb 2023 01:56:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233067AbjBWB4M (ORCPT ); Wed, 22 Feb 2023 20:56:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59186 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233072AbjBWB4K (ORCPT ); Wed, 22 Feb 2023 20:56:10 -0500 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2100.outbound.protection.outlook.com [40.107.255.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 40B71149B8; Wed, 22 Feb 2023 17:56:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OQ2iIQF5FTP643xLSoLLCcJtKUsBcB3pNKb4JqGjP+FCrrFxQnxf5wQCnV1fIyplIhfTE5G0zeGUqsaB4lNLEjpJMCNX/vcPbNFOi/5/MfOTqHOQ+80k+dkE16VVfSOBdCz8M94H3USmbnjMIkqQpshxZgmJaxeqJqpEV87zokzSdNI3itcag12WW7AsmcDcF167vC+O97irMQpmBRI1OPAtlcSAMtY8FlUyKN+T3sJ4obdXbVBzhUwrNeN51r4vzqtapsw9Ni51KgaesH9zkR7IXX1lPZxeJk6j1s2jlNApC95BI4ZknlmAWm5uwB9z6KkHsvE/+ASOoDSbFowIYQ== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=5G2z1qMNW6/oMKSZNM10RVthx0Vxi11oYJwp4k4v5qA=; b=jjQUbxuZ0CgJ/TfR6b79o6E6J5cXY9pzHsY06lQkivVmDilF3ezdgvOidgvTlPS+OWWiRyq+DEnI3TXVUqyMnDAdV2i6KK2wfOC9nV3jJjN1Rf9Op/5tpqRSh5hEXq5lVHkbliGDR2foJvwZsaD8GmhMxksFSLx5smSpl++/MHMbI4Eh0ZQ3oQ/jznfAQuNio4dXb3oZSyALcUX+IguE0tjF7JmpbwgT/uMYf7MirNe2DRLjgAEiYEwVMLYUlXftRB9T1fYx5yCjsFLqQNZv85Nz2re7DPmeVuQPk7t5FT2y2+mDXpQmgYbM7d0ir08/b34WqDuE9sIMiGTBEpEXVw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=aspeedtech.com; dmarc=pass action=none header.from=aspeedtech.com; dkim=pass header.d=aspeedtech.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aspeedtech.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5G2z1qMNW6/oMKSZNM10RVthx0Vxi11oYJwp4k4v5qA=; b=vO6zgQVDczryKtJIYL2F7FObtm/i65bvet8aZfjaWsr7IQdBym0E+PhWeLyWoNyXm0BMGrrSLqurW5lyGqb2Owoo4Z20Ee9yOYOIbPeJWwi/8J0kxln/hRHpIGswJx01P/cAfVoUr/cCd2aLcTDkVa+Ff42dPD2A0X27sTu3krLKYe4g0mDQHSS+JTGWyOeu3ATxGokXbfUdbQ77cIWroZahiP5KtDi6xdWuxupab2YtFVBV5Ov2qyjVx2bn5osU8XZt+Wcj5ub6RbhljDkJO8D5V9tBqMg8hB4Mebv6f8F/3d9gTmt6K2FnHqIfFfhNyYBpauC0cmiyfY0zuTCncA== Received: from TY2PR06MB3213.apcprd06.prod.outlook.com (2603:1096:404:97::16) by PUZPR06MB5476.apcprd06.prod.outlook.com (2603:1096:301:100::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6111.12; Thu, 23 Feb 2023 01:56:01 +0000 Received: from TY2PR06MB3213.apcprd06.prod.outlook.com ([fe80::b113:70f9:7dc9:543f]) by TY2PR06MB3213.apcprd06.prod.outlook.com ([fe80::b113:70f9:7dc9:543f%5]) with mapi id 15.20.6134.017; Thu, 23 Feb 2023 01:56:00 +0000 From: Neal Liu To: Geert Uytterhoeven CC: Rob Herring , Krzysztof Kozlowski , Joel Stanley , Andrew Jeffery , Herbert Xu , "David S . Miller" , ChiaWei Wang , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-aspeed@lists.ozlabs.org" , "linux-kernel@vger.kernel.org" , "linux-crypto@vger.kernel.org" Subject: RE: [PATCH v5 1/4] crypto: aspeed: Add ACRY RSA driver Thread-Topic: [PATCH v5 1/4] crypto: aspeed: Add ACRY RSA driver Thread-Index: AQHZH9y551Wz9Wl3hka+spzxo8WWOa7bV7gAgAC4bQA= Date: Thu, 23 Feb 2023 01:56:00 +0000 Message-ID: References: <20230104013436.203427-1-neal_liu@aspeedtech.com> <20230104013436.203427-2-neal_liu@aspeedtech.com> In-Reply-To: Accept-Language: en-US Content-Language: zh-TW X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=aspeedtech.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: TY2PR06MB3213:EE_|PUZPR06MB5476:EE_ x-ms-office365-filtering-correlation-id: 480720c8-e070-4016-1764-08db15411cd6 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: gtzo6IiCRrSZKaTKgZMk9YJo0Ed8qZ9DrpcRcxDNDDXMbDPqGFYhQ7KAsOsDnnrMQYUyggRmKugPRkUHNjVW5J7dLRyzgD68AZ2CN+hMc0IoB4+S8gzGRrGLpEqY+wLMsosoETO9JMSO1ABXPXizkXgwOIdejv+C4piPLxVIf8Ldi7kp1dly/g/xZWdSP/xMQbbhPW89nRcZm/Q0sgDF0Ym+ytMl5P5ULgWhTdD/9GTxPtKNL1YCSQWCFmpbgOSW5pgRmAyDwfUS+wt8snj9ZPTyQgcM1cputcFU0OGCiYCQ8U5pYb2PpkewMYK1IFGQ7lSminkiimdH/wWhZ9kOoCDRvMZINdcOmLdTFubz90QqS2Ys7MiLpUbygKsBwc3wOwvMRB8rOEan0QOYlJ+jMugWMvIPsjiDRA/2phSuPlS5DNWpbFgvdwva1YH8SDoj5nFz/pimrUOLM/TqOBB+SXF53HxRh9t3Kzosq/mHG7r9mJL8s1ShGqs4hv31KBu2+T8KTZns25ds6/sDVoGXG17lOqWT7p27jxvqJkQIiYG0l6e4W5xqnFy4EMdWy1jCf7kLi/4UOKyvXG9Y0GxD7AOJwIHblwnO25f9gdL289RnBLrHAL/5PCR9VcwbSDq+g+PJ6WhyG+rLwwaN8gWKpKoGzpBYbNdQeSaWXigdQlcogRupHkOwSD++0zGNY37stKOyM7P+PcQrHjm8a5znbA== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TY2PR06MB3213.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230025)(396003)(366004)(39850400004)(376002)(136003)(346002)(451199018)(316002)(64756008)(66946007)(4326008)(66476007)(8676002)(66556008)(66446008)(6916009)(2906002)(76116006)(41300700001)(478600001)(54906003)(8936002)(7696005)(52536014)(7416002)(5660300002)(71200400001)(6506007)(53546011)(26005)(186003)(9686003)(33656002)(55016003)(86362001)(38070700005)(83380400001)(38100700002)(122000001);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?NWljRm5GY0lYdTdRLy9PSWRpQTZ2eWk5eGxFaGFJTFZaNVZ4Z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wUVBpaU5Fc2xBLzVvOE1CZE9qWUpoWEtIUXV0WVFOeDAzV2lV?= =?utf-8?B?aTVUSmdqa1B5bHFqOFBUdHFadVVjbldMRExjeU5wdVJoT09jRFlUU2xHUElR?= =?utf-8?B?M2N5T0p3emdVTmNlTHVlZlBSbExEdWgrSTkybDVpMjVmYjY3cTIyWVdnMVNF?= =?utf-8?B?VnVTYTA5K3hMWURFRUx6UDgwc0JRbFhEblErRGovYzVBM2RYbnFubE5aNyty?= =?utf-8?B?VmNLdTFVVFpISXNqT2dtWHRHZEhaSEJ1OGQvNUI2VXpmWGVkOTczbFZzbFVW?= =?utf-8?Q?WYFbNcAr06/Ex2mgQzTvcBxp2?= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: aspeedtech.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: TY2PR06MB3213.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 480720c8-e070-4016-1764-08db15411cd6 X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Feb 2023 01:56:00.3438 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43d4aa98-e35b-4575-8939-080e90d5a249 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: UkfzM4Ks23KdAhDRQ29vWWWHw8kjRt2jsRqTRSF76DF44Fr9gFB6vTt87LTtZ8DuD7yZZ6TAvtnV+P09civ9UQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PUZPR06MB5476 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org PiBIaSBOZWFsLA0KPiANCj4gT24gV2VkLCBKYW4gNCwgMjAyMyBhdCAyOjM3IEFNIE5lYWwgTGl1 IDxuZWFsX2xpdUBhc3BlZWR0ZWNoLmNvbT4gd3JvdGU6DQo+ID4gQUNSWSBFbmd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