Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1173690lqa; Sun, 28 Apr 2024 23:31:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVmJYDU1v/0imSpjjaSXXLIzQyKvm9DtDMZWor5WXnBdAgbKqx5AmGjBrAbXHhKiuEA7YYHgYdRzTkAg5kufcd1o8X2IYRYrqGbo81QTw== X-Google-Smtp-Source: AGHT+IGmQEqQ9OuZ2xwC1JBn/ZXfWvktWV/3R3hMrgsyWsQDzMosLjzJS/TX+yA8ahGbI8Yiip7V X-Received: by 2002:a17:906:fd8c:b0:a58:c80e:edd8 with SMTP id xa12-20020a170906fd8c00b00a58c80eedd8mr8057940ejb.70.1714372297187; Sun, 28 Apr 2024 23:31:37 -0700 (PDT) Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id o21-20020a17090608d500b00a524d96b9cesi13194833eje.11.2024.04.28.23.31.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Apr 2024 23:31:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto+bounces-3915-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=IjzzQ2IO; arc=fail (signature failed); spf=pass (google.com: domain of linux-crypto+bounces-3915-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-crypto+bounces-3915-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id BEC2D1F222CE for ; Mon, 29 Apr 2024 06:31:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 42DBA205E20; Mon, 29 Apr 2024 06:31:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="IjzzQ2IO" X-Original-To: linux-crypto@vger.kernel.org Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on2057.outbound.protection.outlook.com [40.107.14.57]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 09D452564; Mon, 29 Apr 2024 06:31:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.14.57 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714372291; cv=fail; b=TjCdyIoJfg3PUEbQJaITZk64Lm4oj50jFec1vBwGsy/h3WQTju7ulAM5T9NnC+4zaJV4r20vfxZpZzBAErE4XyrZ6ivK75udRw2BfZu/QRthBtwG11ovlSjst5INMD8lCRBw+wgvIsjYG+ZC8Hd+mNPuuBFZ8b8JAgnIwsZPIjY= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714372291; c=relaxed/simple; bh=1SNdOcDtAyJ7YLSmVD5NXfBQnBCWbA8J/3E5xdbjgYg=; h=From:To:Cc:Subject:Date:Message-Id:Content-Type:MIME-Version; b=JZGtkN4ec/HSeeyWuGh3/9Ba183ptw/Jy2yuqQ+rW99kJiIBo2ldY0hB1xPsSKwpFQPD3m4t2nGEwKAY0pdDKbGuSj1VTA3CMsJDEhWplL/5n80ddTyvc3vhO/dISf3gkIQuKVLrcDNCjzhZMPYg0pS38hVc+jh95E2aRZh/gdA= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b=IjzzQ2IO; arc=fail smtp.client-ip=40.107.14.57 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=djzkbuATJDKey2eNFctSkeukR1wVfGGN8v7QZSFjogJ6JNzr4IdGHJgPiW1NiXXlotjWIS64ZehkPY2yK8PlUHTpiXhm7rqBkO5rzmnj3PWNC+J8AzExOVJ2p/1k6PHssD3W9OW91dC8TSBNiuTqNMpGH7NggJ90x4YTW+7VfW3KY/rPGFhjjtfBrnpTbF8AbFTzlzCaWc/jV2H66mmJep9SfzpY7vn/nSCRxepvx3HDy5iieg8YOG4ugVQ61Fg/6AYAF/nFFws9t/dHsD52Mm1UfuEHrWngWkK4aFMlykcXfEXnT57indj0yF5C8fFAPByMQsuz5yt+JHB8OGw4JQ== 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=ilba0+wjvJEz+gOwt6MA86RvZdp3T1VrWIo2DzN9fvA=; b=lSy/ia0O4VIZtG5cPgMj+0OFKuDHuFO2HN5unmDuilXOERCt3hHGw/kHcsX5eKShDXYFtJYMmCm/sYV5hyjiPwvktXr2QNNrXoIhjiP63aVTwehplMcPFwsT1talsIiylSPRoSKWF9D5s5kYLiqEiVdpSTmFBUcxqDBkLla2GPBiMeLbgPQPR/AGzMf5WY06hjWr7aaOyt2Nhknac0bFJ8SR7ckYbm/7KaeZ7kSK4szwjemQIrmnZ17wInyt9XbyV+CVW/27FzsK4JUBdUjBy0AXcLW50xxlIW6YhEX0kB5sM5B2MzDo3bWoFHu3canqSC5WJ9k1Lld7lUrhb5QjNw== 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=ilba0+wjvJEz+gOwt6MA86RvZdp3T1VrWIo2DzN9fvA=; b=IjzzQ2IO8xjidKbQ35Oxif/9vtTMD51S0c/5/hX8inSp7ahLumqOlBqtRD8qBRnzzpv5WgGG2jomCB5nZmpn+RpMTcI009Rg50fppxvGxENCxjNG2B3NKd5/wdZ3Ihhi4I6L/+xzkApvotsc96n/PbDcC0ROCdeFD4JOnVml//E= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM9PR04MB8604.eurprd04.prod.outlook.com (2603:10a6:20b:43b::21) by DUZPR04MB9919.eurprd04.prod.outlook.com (2603:10a6:10:4d9::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7519.34; Mon, 29 Apr 2024 06:31:25 +0000 Received: from AM9PR04MB8604.eurprd04.prod.outlook.com ([fe80::33cc:db75:c850:63a4]) by AM9PR04MB8604.eurprd04.prod.outlook.com ([fe80::33cc:db75:c850:63a4%2]) with mapi id 15.20.7519.031; Mon, 29 Apr 2024 06:31:25 +0000 From: Pankaj Gupta To: gaurav.jain@nxp.com, horia.geanta@nxp.com, V.Sethi@nxp.com, herbert@gondor.apana.org.au, davem@davemloft.net, iuliana.prodan@nxp.com, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, linux-imx@nxp.com Cc: Pankaj Gupta Subject: [PATCH v4 0/2] caam: init-clk based on caam-page0-access Date: Mon, 29 Apr 2024 11:58:50 +0530 Message-Id: <20240429062855.923595-1-pankaj.gupta@nxp.com> X-Mailer: git-send-email 2.34.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SI2PR01CA0008.apcprd01.prod.exchangelabs.com (2603:1096:4:191::10) To AM9PR04MB8604.eurprd04.prod.outlook.com (2603:10a6:20b:43b::21) Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM9PR04MB8604:EE_|DUZPR04MB9919:EE_ X-MS-Office365-Filtering-Correlation-Id: 02814461-1fb3-431d-3efe-08dc6815fe5b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|52116005|1800799015|376005|366007|38350700005; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?wAgC+9kqRe1LE3MFZdfAlNpnkO0J8WOS4W8l/03m4+uiaDmG7jwYGTeRCX3w?= =?us-ascii?Q?V+30lDTyJtHCGiAiISi17eKo6HpZcv5yM7XOjGzrz6V66boBwgbgICFeWidz?= =?us-ascii?Q?STpESdhSwqdyFW4ikKYa0CQmpada7kehUWAaxi1KW0nRTkzAouV8Oqflq6hB?= =?us-ascii?Q?quQtsXVx9ZyQNqgFTq/T1HUP8CLuiyV45MOORZ0sWU0a4unQN84ADuggpWFI?= =?us-ascii?Q?SwIQ7s75ypwjm6JVbWLTlCHUf3SYp7GKY6bQtig4Fr4jNtcWbUuX2etxmWRl?= =?us-ascii?Q?tdDK/dPDCcNl2Tr0/pzjzerXZX0JNy2Ania66QiPY+VWbbeuqj5uJo+lMd3b?= =?us-ascii?Q?Qj3uFpBj62PRfD3PK9HL5uQ7X1/u9Hrtc4bZsyR5Qe+v9DJnZfBsdVnAtigj?= =?us-ascii?Q?lDuoQq9ShhxyH2/sB4zHIfqOMByZUV2hdzSNlqZOIPsYhYbYmymIXmM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4gXRGUONuoHMg=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM9PR04MB8604.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(52116005)(1800799015)(376005)(366007)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?KV5bHbpDvJib1oeG8JuTMIiPCIEzvlII40qcP9qm+s7oUNuLa10srEaKCpBI?= =?us-ascii?Q?73hejcFHVkZQ/cu9BKhFAQgZfGVzuvBM0AFVZcht1l5/d4hDQCCeG5XtqR4w?= =?us-ascii?Q?Kd4om+jwPSV7LK+RuHsu5nmbnohrvX8I9tfgJMcAiLz2hCb61m9UJSa87egE?= =?us-ascii?Q?0uVIIVORQTW3hG7qNB6ghvLN2/sPtQ/XBStUKiW0EmN+ySDb4BgV/9RO036F?= =?us-ascii?Q?hFSQF1F/5Z6cNBklNed/ZrYq2nMg7ow/cpGFySxZrM4C1HJXPjBXvLl+Mn89?= =?us-ascii?Q?NzJ4NKIlZsRjyQmJYwXIBu//pKzMYaMep8ERUTHYcGDNZ7tZ4gxkJeBwXNj5?= =?us-ascii?Q?ETmKwmMZirQUY4ca5udSoVsoIXg7QnIJ12p772d0WWpvonBgdJGwkMTWvV1M?= =?us-ascii?Q?JkdBObIBlnx7bMo+ve6NjWiAksocGh19HVa62LN16hKewT4oNBfMF6GFECM1?= =?us-ascii?Q?3J3p5+2PjmXLt8rGMTb7sBU/d77PukXFqX55wl9IkQljv1WT3A5EfR4xcoIG?= =?us-ascii?Q?G7+7bUzR0SrD5M7bvNPeUik5c6vGCqUHU6vl+o7jx49LrfYGTsKSLc4xyT9s?= =?us-ascii?Q?fpVEb1EHoBji6+j4JAZ8WZ9WRqo4lvW3vYwf25rRr5qC7FodID347qqsnvbZ?= =?us-ascii?Q?hIxWxftQQO3MPM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Kbg8NcX0kzrfGnrS8aDCu4cpAKAc?= =?us-ascii?Q?yyunLAuvBEC218dCUi8aV1qQIRaawBMqMJG0oVKo?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 02814461-1fb3-431d-3efe-08dc6815fe5b X-MS-Exchange-CrossTenant-AuthSource: AM9PR04MB8604.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Apr 2024 06:31:25.6048 (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: dc2XBULi4fNRie00TK/bl9oWr7e4LJZCHOfvtxJBatLt9WEEtjXgb5ov8rfB+WImy4af0bbi4soalPxuVzyi6w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DUZPR04MB9919 v4: - Correct the null pointer checking v3: - Splitting the patch into two. - Disposed-off comments received on v2. v2: - Considering the OPTEE enablement check too, for setting the variable 'reg_access'. Pankaj Gupta (2): caam: init-clk based on caam-page0-access drivers: crypto: caam: i.MX8ULP donot have CAAM page0 access drivers/crypto/caam/ctrl.c | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) -- 2.34.1