Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp982097ybl; Fri, 13 Dec 2019 07:40:04 -0800 (PST) X-Google-Smtp-Source: APXvYqz2/m4zjfAhC74yjlefufMyR+lEHoNbAdeeE3Lx19UWy1mjmMeLgGiaLHkcRoyjj6s88OcN X-Received: by 2002:a05:6830:2081:: with SMTP id y1mr15573780otq.55.1576251604487; Fri, 13 Dec 2019 07:40:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576251604; cv=none; d=google.com; s=arc-20160816; b=Wevw+EyyZFSo7sIc//Y9N+CYSlzgOgVQX5FdH1/tMEpRyBVReJTF1usrCFeq+QrBgw Md1HbrdLl2Q6OO8+wmdaUk8lME8bryvpDTxh+E5j/EEdcrXMXiNhhhdE/KHuXndxLLWu sHZRTcmVnyAnPdTgg00QPCjTrryI0jm/NR09rO1uxBZiC2yUNUyONqcZ9JY+ZeMvX7bb KhG+vhv0U5RegJYsFrvoU0k/XAZTPDyWCpHJw79XdkIDJvDNobnfOXm9MJaYmNhZinl0 GTL6of1+XLp1QRyLAr0mvcv8QakwbG6hWvPgqkpUfXF2dcqfgd5DTLtjMQyus48sQn1l oCdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=66dDxa4JQshR1dxJN1HCdA7FRTIVML1Rl2L0x4gBwBs=; b=LjhZitU6Fwa4hCCz/C/4PSXmTWeEM49J8vPwSCD9VLRgwKXMWwqPLgwsW0MlbX29GD /qKmhPkktcrmKXiRIcSMhl8Vf6z7MyAMy71mz/sZlWVgFpZMIoon2X4NzAmb962tmOvT NhrvrrzvotyjE3ib28dNggfULgDZ51yQayLerqRAQG17OTV303fJbLj+/v0bIahcENx/ jxBFYwokb4V0jmHvpQXctoPj/lB3vYPWd/1cyRiuTuTc9hsOZ/BVsDe4eqwQHId8CiFX gb2vdJ/Adm8buoNNvGwPJKAMoYFcB1p7N2AqXKgRccDfbnkQ6Ir869tVeFAFqVajvB67 TJcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=IpwWQTBz; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m21si5492291oic.96.2019.12.13.07.39.47; Fri, 13 Dec 2019 07:40:04 -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=@gmail.com header.s=20161025 header.b=IpwWQTBz; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727885AbfLMPjW (ORCPT + 99 others); Fri, 13 Dec 2019 10:39:22 -0500 Received: from mail-yw1-f68.google.com ([209.85.161.68]:36378 "EHLO mail-yw1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727904AbfLMPjV (ORCPT ); Fri, 13 Dec 2019 10:39:21 -0500 Received: by mail-yw1-f68.google.com with SMTP id n184so6054ywc.3; Fri, 13 Dec 2019 07:39:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=66dDxa4JQshR1dxJN1HCdA7FRTIVML1Rl2L0x4gBwBs=; b=IpwWQTBzg9+efmz6zpdHlpW7WO6Qb2rzpNyjAvojL6elJWNgpVqmZyQ+VOA2jRdCEh jGyplAdiIPO/JftjYxUO7sovgTvepNOw0lWV1MT9dznUOuusPMO+j+Z13oroUaaD5bil 1piYhqNdzEdfXdqhnE+7U5kCEFqfJ8zhu7wceeOYtYpgS0QKCQ+RML/u0oe6npp2nIWC Cc9nOT5KsyorY2X5unKnHKTIQ8r9XxZZz4ec1HolS6nH5SjuT5MeeuFP3YXKRzxK52KC 2LdZ8O6EEN/aQaZn8ExiHvWWt6aJrAMgVOeJJTI1AxGZbbtQSCpn6u9Ib/Kn3pQul97X ebAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=66dDxa4JQshR1dxJN1HCdA7FRTIVML1Rl2L0x4gBwBs=; b=paGbHfPminizg1T70Pj3QKYWFmDEp+RQKlsesNVFmI0ad/wLdWJoqyw3ePIWcG8mq+ T8vwmv2qTpe57wTHAJ0Sgtlb6+kuNP/7MvthGaWk5HuQwAaJ+kbNTW/J+7DBh5LDn/w4 RweWhsi1/HhI7pZFiM+m+7rErHnr9UO7q5wSO8GGRQZy9G5my9yx0H4epRqvrw0/OxJz E4h3lkCHlAMgLgmBwCrHSO+ax2GGU8RDfqwIof7KS+XUcOcV48txEUieTlayZbIWih4K IzZNeLmcHqea3wZVEwN5ELIGdSxgQDrmOK2hWWpAiMmTv5eDnCcPrNM+EJIDp9kvF0aZ Xd+Q== X-Gm-Message-State: APjAAAXc0cPpi8bqXwwoMbGK57GYdN/EQWAC0gejCnbz4v1W0LvvpW9F SkzM6ng/EkhNeSZxT7om7A8= X-Received: by 2002:a25:b007:: with SMTP id q7mr7626962ybf.193.1576251560130; Fri, 13 Dec 2019 07:39:20 -0800 (PST) Received: from localhost.localdomain (c-73-37-219-234.hsd1.mn.comcast.net. [73.37.219.234]) by smtp.gmail.com with ESMTPSA id i17sm4300474ywg.66.2019.12.13.07.39.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2019 07:39:19 -0800 (PST) From: Adam Ford To: linux-arm-kernel@lists.infradead.org Cc: horia.geanta@nxp.com, Adam Ford , Rob Herring , Mark Rutland , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Catalin Marinas , Will Deacon , Aymen Sghaier , Herbert Xu , "David S. Miller" , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org Subject: [PATCH V2 1/3] crypto: caam: Add support for i.MX8M Mini Date: Fri, 13 Dec 2019 09:39:08 -0600 Message-Id: <20191213153910.11235-1-aford173@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org The i.MX8M Mini uses the same crypto engine as the i.MX8MQ, but the driver is restricting the check to just the i.MX8MQ. This patch expands the check for either i.MX8MQ or i.MX8MM. Signed-off-by: Adam Ford --- V2: Expand the check that forces the setting on imx8mq to also be true for imx8mm Explictly state imx8mm compatiblity instead of making it generic to all imx8m* this is mostly due to lack of other hardware to test diff --git a/drivers/crypto/caam/ctrl.c b/drivers/crypto/caam/ctrl.c index d7c3c3805693..c01dda692ecc 100644 --- a/drivers/crypto/caam/ctrl.c +++ b/drivers/crypto/caam/ctrl.c @@ -102,7 +102,8 @@ static inline int run_descriptor_deco0(struct device *ctrldev, u32 *desc, * Apparently on i.MX8MQ it doesn't matter if virt_en == 1 * and the following steps should be performed regardless */ - of_machine_is_compatible("fsl,imx8mq")) { + of_machine_is_compatible("fsl,imx8mq") || + of_machine_is_compatible("fsl,imx8mm")) { clrsetbits_32(&ctrl->deco_rsr, 0, DECORSR_JR0); while (!(rd_reg32(&ctrl->deco_rsr) & DECORSR_VALID) && @@ -509,6 +510,7 @@ static const struct soc_device_attribute caam_imx_soc_table[] = { { .soc_id = "i.MX6*", .data = &caam_imx6_data }, { .soc_id = "i.MX7*", .data = &caam_imx7_data }, { .soc_id = "i.MX8MQ", .data = &caam_imx7_data }, + { .soc_id = "i.MX8MM", .data = &caam_imx7_data }, { .family = "Freescale i.MX" }, { /* sentinel */ } }; -- 2.20.1