Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp253478ybl; Tue, 7 Jan 2020 05:41:07 -0800 (PST) X-Google-Smtp-Source: APXvYqxbrCge8zmtvlx/hWjnGGL7DGWBNhYuRdPW4XHVw3NAU9KIubTUiwrd75+xPIRTfBZm2X0j X-Received: by 2002:a05:6830:2147:: with SMTP id r7mr19659410otd.94.1578404466977; Tue, 07 Jan 2020 05:41:06 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1578404466; cv=pass; d=google.com; s=arc-20160816; b=zQqrhOP9yKH6hnP/Cy7r283ctbxdlmJhYHwrHjURHzNj1AVuI/eumU+fgks6K7y7N5 t+PR9htOfVH01ttTVdubk5LHkqwU4zG/+BHfXBBdJXLf2++ukdGg4bRLg2rQvZatRG6A 88HIBQvJcg3YfsV5wIZI5U+liNCzagvHM4VnnlMhaxhkrQabeGPAHRrmqwdLlnULcwUx 6ahqppyfcxVTpJdFXk6H2j7F8ojqMy6WV9hchlxHHr0rFUMTZl86gDSTsb6x5wHptbjA 2qJdK/l3qPibWcJl8GO0Y34UqkGo61dEMmDd0cZuruqNx/5RYt89+4vVNp2UM1agu6TC 5FQQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:references:message-id:date :thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=QVUBBH38PJFeLWVRmji1jEUfUDRXBdA6ucabKSea28M=; b=UMaltUnWde2Vw5M8eatPkomyF1+75wGM8uDSQJUmzHr4gctWJW+aH9P2ADgVA2SH+A /dHfBNPdMP5TQzk1NpBxYnmxdcxI3Grpsq6w0m1GMLuY8QZV7TBZtPUBq/Ye5XAT7qM7 maM6nGNefvk8LjOARW0xrvjtsE4cWy9kENI1Vkf58TVZ/DKsblPYeNXi3sRJBOFo72vu DpDQgqTjXKMPBNMNO5mkaujOBAAJLy7L8aRrAR0Xy/cDxyg7N+teTrg3EePqkCEjBl4I ci3YQtZ3ahfb/NJWe/DkjLkXmvcqFW6HXuDAKVkMSmVzJte5vOaO5C180adu+K+eKYj4 sg2g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b="X/mQkecy"; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z12si22121686oto.125.2020.01.07.05.40.54; Tue, 07 Jan 2020 05:41:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b="X/mQkecy"; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728060AbgAGNkx (ORCPT + 99 others); Tue, 7 Jan 2020 08:40:53 -0500 Received: from mail-eopbgr60071.outbound.protection.outlook.com ([40.107.6.71]:5013 "EHLO EUR04-DB3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727944AbgAGNkx (ORCPT ); Tue, 7 Jan 2020 08:40:53 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UastT6Tx1TrXSw8EkEHqzrqB/HaUgVYGbHEi09AR9bUPR8JN1Gkge0fCAQc5arTIz/51pJk7s31UotR6ZIGMJAKsJvv7bzzDJBt8dr1R51lMZ9MkZ3qzUjJR6a2+4FLRcbrfDrvCQEkSoS2HSsSPB/4ieRBkA7ZnhYvJfOGL2Hca/77YzTVK6Kb5slYsn18Vm/HwTWqoGqbo6inMIy4sVy7yu108r3mNPDF+0apjlqZ2knU3uNn9mP0avUd5eYZiaz4vqPMTucXy//4zqziYYuQcSiPsPjGPiR/hxLLhK2oGQM7Dt69HXw2wj71XrzLhBucogrlWRuTZXfTjszLXDw== 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=QVUBBH38PJFeLWVRmji1jEUfUDRXBdA6ucabKSea28M=; b=aDGNmUlkBjQV/KZ5GFUGQeMxnARxRkWB+UozqSKyOEtTIQICSPykP03s3fXDLoapi8td2rsEgUToHLtFgCnpp21R37JX/OrURh9atzOtyxyFu92g/UrDunwmiT3Swd0/IQ8ku+Jg2PPfhxQFgS1FEnBSe3tTR/fPNBR+HW03GfPjxyZZIg+Wv+lpT/xifmQzlAy/ri7pihbPf5qCcrkkqAQcZMIVUvfUOePEAf/xNlALi3Gq5EAxcCyaMW/ytKB9XQtIGX55HxgmGoDSPwflBesstajF20Pi5IOLCs7qNMJ2G7QGkocc4jCcuOunXmiVteo5PYf6ZvL1P3IvdN36Qw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=QVUBBH38PJFeLWVRmji1jEUfUDRXBdA6ucabKSea28M=; b=X/mQkecy2yXsEs6kSFd2nnAYWhZ1xsw5Cg5LuVJYODOdlD3UQ2pi3TtGFVUDRWZDNGtXOW+mfrJzWz2J2ofva42xb+efBubcUoHHKb78c9lTd/DQzexEckhHkEo3puZzI1B8QBq+4PZdxDjny5PF4b3vxDBxBw7fFGBXzIhuYys= Received: from VI1PR04MB4445.eurprd04.prod.outlook.com (20.177.55.161) by VI1PR04MB4478.eurprd04.prod.outlook.com (20.177.53.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.15; Tue, 7 Jan 2020 13:40:48 +0000 Received: from VI1PR04MB4445.eurprd04.prod.outlook.com ([fe80::304d:b7d8:1233:2ae0]) by VI1PR04MB4445.eurprd04.prod.outlook.com ([fe80::304d:b7d8:1233:2ae0%6]) with mapi id 15.20.2602.016; Tue, 7 Jan 2020 13:40:48 +0000 From: Iuliana Prodan To: Horia Geanta , Shawn Guo , Sascha Hauer , Herbert Xu CC: "David S. Miller" , Aymen Sghaier , Pengutronix Kernel Team , Fabio Estevam , dl-linux-imx , "linux-crypto@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH 1/2] crypto: caam - add support for i.MX8M Nano Thread-Topic: [PATCH 1/2] crypto: caam - add support for i.MX8M Nano Thread-Index: AQHVxMwprOIBO4cokUKxxe/ozllorA== Date: Tue, 7 Jan 2020 13:40:48 +0000 Message-ID: References: <20200106200154.30643-1-horia.geanta@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=iuliana.prodan@nxp.com; x-originating-ip: [212.146.100.6] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 18d7bbd1-6c97-4903-1bd7-08d793773465 x-ms-traffictypediagnostic: VI1PR04MB4478:|VI1PR04MB4478: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4941; x-forefront-prvs: 027578BB13 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(136003)(39860400002)(366004)(376002)(346002)(396003)(199004)(189003)(53546011)(44832011)(6506007)(5660300002)(2906002)(55016002)(26005)(7416002)(110136005)(8936002)(7696005)(54906003)(86362001)(4326008)(316002)(9686003)(81166006)(186003)(66446008)(33656002)(66556008)(81156014)(91956017)(478600001)(52536014)(66946007)(66476007)(8676002)(76116006)(71200400001)(64756008);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR04MB4478;H:VI1PR04MB4445.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: tX77YnjooeS93N9bNoYzcSEBI7vt5aVNg+waV0DFhSXS0rNmVrJW1ZWhdHWu331gKzBG99sjmJoV5jmCNomMna6PU5Pr8nCnyJcmEXf/sx9NgKVm/YCdj5Bg8Z4OibkNIGUh6frtOE+QNld5f9pL4Xv+L0yYE8XzE6vReaAfsOf+fgIrW2HJX55WI1IkDiRNNShItgqH+LfThd+Aa32OxFHpfA429EPL426EAeBU+qWinypQ7o/N3ttg+ydJ5GbbaFs+aH3c/DsQrC6rvaOahe38FmI0w1RtHleVqxFBss+V9w+dD5b1afHg1rYeES6g8jk41YcrR4MKEqGYyslKoiTE4uTz/N4svfX8IvEocz4TCwYCzhuiBCdorpYQMJ0VHxSQT+PY0jq4OyFoGG3ZZpobRcCZ63SPrzrWdFC7jKFTN6h5kVEtjHoBivr2uTh3 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 18d7bbd1-6c97-4903-1bd7-08d793773465 X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Jan 2020 13:40:48.5077 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: KIW/ZfWkItT2vN3glUBz5aqKeVhlRD+wTRzZMkanwZVFsUcS8hyZy+YA/u69icfLR+94qgFI4LNYzu8e9871KQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB4478 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On 1/6/2020 10:02 PM, Horia Geant=E3 wrote:=0A= > Add support for the crypto engine used in i.mx8mn (i.MX 8M "Nano"),=0A= > which is very similar to the one used in i.mx8mq, i.mx8mm.=0A= > =0A= > Since the clocks are identical for all members of i.MX 8M family,=0A= > simplify the SoC <--> clock array mapping table.=0A= > =0A= > Signed-off-by: Horia Geant=E3 =0A= =0A= For the series:=0A= =0A= Tested-by: Iuliana Prodan =0A= Reviewed-by: Iuliana Prodan =0A= =0A= > ---=0A= > drivers/crypto/caam/ctrl.c | 8 ++++----=0A= > 1 file changed, 4 insertions(+), 4 deletions(-)=0A= > =0A= > diff --git a/drivers/crypto/caam/ctrl.c b/drivers/crypto/caam/ctrl.c=0A= > index 6659c8d9672e..88a58a8fc533 100644=0A= > --- a/drivers/crypto/caam/ctrl.c=0A= > +++ b/drivers/crypto/caam/ctrl.c=0A= > @@ -99,11 +99,12 @@ static inline int run_descriptor_deco0(struct device = *ctrldev, u32 *desc,=0A= > =0A= > if (ctrlpriv->virt_en =3D=3D 1 ||=0A= > /*=0A= > - * Apparently on i.MX8MQ it doesn't matter if virt_en =3D=3D 1=0A= > + * Apparently on i.MX8MQ, 8MM, 8MN it doesn't matter if virt_en =3D= =3D 1=0A= > * and the following steps should be performed regardless=0A= > */=0A= > of_machine_is_compatible("fsl,imx8mq") ||=0A= > - of_machine_is_compatible("fsl,imx8mm")) {=0A= > + of_machine_is_compatible("fsl,imx8mm") ||=0A= > + of_machine_is_compatible("fsl,imx8mn")) {=0A= > clrsetbits_32(&ctrl->deco_rsr, 0, DECORSR_JR0);=0A= > =0A= > while (!(rd_reg32(&ctrl->deco_rsr) & DECORSR_VALID) &&=0A= > @@ -509,8 +510,7 @@ static const struct soc_device_attribute caam_imx_soc= _table[] =3D {=0A= > { .soc_id =3D "i.MX6UL", .data =3D &caam_imx6ul_data },=0A= > { .soc_id =3D "i.MX6*", .data =3D &caam_imx6_data },=0A= > { .soc_id =3D "i.MX7*", .data =3D &caam_imx7_data },=0A= > - { .soc_id =3D "i.MX8MQ", .data =3D &caam_imx7_data },=0A= > - { .soc_id =3D "i.MX8MM", .data =3D &caam_imx7_data },=0A= > + { .soc_id =3D "i.MX8M*", .data =3D &caam_imx7_data },=0A= > { .family =3D "Freescale i.MX" },=0A= > { /* sentinel */ }=0A= > };=0A= > =0A= =0A=