Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1173775lqa; Sun, 28 Apr 2024 23:31:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWlG3RhLMOT9br7ZfYvGsY/eA1fAtEcY7AnJNd7eyGOHKvFJ9xU4aCM3YS87BWGiGq6xCCrNfB26FQZanl9drT4bWDp0AGL1C7EOWTjxg== X-Google-Smtp-Source: AGHT+IHMIp4LAFL68UWceEnCW9ixixUQaA/s7RQ8Fj36vzoWSt1e2rFFpBnjPd9TIzctQMHwLAuA X-Received: by 2002:a05:6a00:93a5:b0:6f3:ebc4:4406 with SMTP id ka37-20020a056a0093a500b006f3ebc44406mr9294648pfb.7.1714372311803; Sun, 28 Apr 2024 23:31:51 -0700 (PDT) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id ln22-20020a056a003cd600b006ecf4764fd7si19801954pfb.27.2024.04.28.23.31.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Apr 2024 23:31:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto+bounces-3916-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=HWMA8rUq; arc=fail (signature failed); spf=pass (google.com: domain of linux-crypto+bounces-3916-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-crypto+bounces-3916-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 6B8F7280ED4 for ; Mon, 29 Apr 2024 06:31:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 09CE9134A0; Mon, 29 Apr 2024 06:31:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="HWMA8rUq" X-Original-To: linux-crypto@vger.kernel.org Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-he1eur04on2043.outbound.protection.outlook.com [40.107.7.43]) (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 C168711C85; Mon, 29 Apr 2024 06:31:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.7.43 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714372295; cv=fail; b=MQyFuUEHPsrNnfwySEEjPV2sIj8zYLi+GzI6vQ3W53qJvVNuTyT+gPd3QkoHtPs4dl2GNzI3VPPG5wXh39C+JE3teWMOB9M+urbfBK2kJ0itstwx3scBkdJUdpRZYDMyPa8KzPJMhRcRFsVeceH9BZ+Wi3NtX42Ee9eYsFrw0LE= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714372295; c=relaxed/simple; bh=1SNdOcDtAyJ7YLSmVD5NXfBQnBCWbA8J/3E5xdbjgYg=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=Lhi+kIp40dsWSa0w7IIhWEnRZgJFbUliwgmEB/BmZwffntTUt8q6UW0dlGfaEYdXI/e+jhIjscSh81J8LadK/IJlXG34pBE/b3FZxlj1nrYPCjnQtKOxVDLlUIN6qyBRiWrSnNvBrRuBAjWqmTYO3G2rMZELjaGh8UDTKo0MWkw= 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=HWMA8rUq; arc=fail smtp.client-ip=40.107.7.43 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=iX3J+3RQuoxtc5WrGtuzWkuXY5kSkQfCn7B1XFhQggPVsAmAQ2pBjO0ApRbSO58syddwDGk394pVFtXL8q+JFbmu7suSCzOlutwkWIgJOQ/0ZjNhCGPkCUTsDVIVimATHsIl95q1D7SobjLuH/8RhfdalXhOe9hK41iGvfyjP191tjvHo/CGuVG1GBplmfzXqR/PluN5+0PVZXuiM8J/iWSPQlcFCfzFUt4tjSQL/osmLh0XFwvG9ttVHLhbjlmF+NazdxW8CUSltYFC2Iq41TSpVQFo013Z9jA2mFMMd/9W76RuGZi4z9vhwGgfe/YK1v9qMANjE+K/UTPsZoXWww== 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=fWHa82r9asQ31nCOadij9macDiQL4wnFs3GqNz9/UnkdsO7o2fB8dpLVYXmovlCk2Cg7I5TlOCiefcJGa01mLQGOuZUFRLJeofqTfnyRqbUo4aYuibC8k67DGIzm96MdxndYE8ZJ5ADcLwBsnmY866bHodfRykhGyH7E7A/mhaAeft9V2/1fyLe2Fa3JrMO7e+tQ0W+HDNsOn0JujkKr/FK25aRNEzLsPNTg59cERdginjebqvLWuZThhAfRqtoAa88frrKiyPEJR1yAo01ThV1Ycx/WaDgvjT2KlRfvVC5/VkoeZ9atFUwDt2LgBKRN1tjCZvXWme4wdSv6v9VB/w== 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=HWMA8rUqb7+PWiBzKSX/1TG3y/xGwE2qOWFQ6DiQ7Hhi6MVHAXshhsuh8hrNqlXzT4DBx01t/hlqdOyS727l3D84qHt4qsKuFpRarThGT/upGbsxXqZjMXpNp0cJREVy1Sw4liHe3bje+Ehixx8x6ejn1Vax9RSO9S5f91j4Im8= 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 DB8PR04MB6859.eurprd04.prod.outlook.com (2603:10a6:10:119::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7519.35; Mon, 29 Apr 2024 06:31:30 +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:30 +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:51 +0530 Message-Id: <20240429062855.923595-2-pankaj.gupta@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240429062855.923595-1-pankaj.gupta@nxp.com> References: <20240429062855.923595-1-pankaj.gupta@nxp.com> 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_|DB8PR04MB6859:EE_ X-MS-Office365-Filtering-Correlation-Id: 05512f44-4093-4f1d-7486-08dc68160126 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|376005|366007|52116005|1800799015|38350700005; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?0IG0YW42WKdgTyF81de7956DhwO3cqB5v7wBi9a8WxcO4wVyCr6rZAvc4kV0?= =?us-ascii?Q?gJv4SaLAV9nuNa7FQ/fxXAxnd76yLJWJOn/3tEgZ8U25vc5Jh6w1gQd6rImz?= =?us-ascii?Q?WWFu5DBFI56u0/Kc75gUbj0rEmUnipSrU/gD6txACJu9FE8vSzxVCnqXcnXA?= =?us-ascii?Q?IUhcSDFoT1qMGO8S9tmRtm4xr0EhrKAspn0oShFcpuSCxueX+2nn+L2UjVsC?= =?us-ascii?Q?uVx7YKhYQjCwA6q124NS70HVzEJLs8/yWofGgEaC4uX3KN0+vhKGcqxffjXm?= =?us-ascii?Q?bOS3iWgyvjvcmJx85aYz5VVnyArNPIIKnwBzVCiikPxhD5OH8ESJDjHEMkav?= =?us-ascii?Q?lznAgVVtanyNJGDKuPAIogRf3OPhscdvvGIGkmPEEfuPHwCZDvxZkGnFfVZB?= =?us-ascii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QyWM8s5/y1Bq+MmwemAMa?= =?us-ascii?Q?J2KzT/Z9uuzWULe3F3oLQcTCP0Fpz/NSmMsgtC+cqhWuCg=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)(376005)(366007)(52116005)(1800799015)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?BYTUXXWDbhOjWa8llFZI+Fp97rtziGxQmc3YXPPJwRezwDdZH9OhOYxw8u4a?= =?us-ascii?Q?hT+pRrCPolJlbbUt61/mjOrlzUPDN/22Eyymihsy/ePUabgihnzYruzmc+PW?= =?us-ascii?Q?iCafldRJC7y0iYXXjA49T7e0ENVXJ531AWLPRqSJppy9Eh0+nzejWoQ1Mecu?= =?us-ascii?Q?MpaJp62ssPeMqJsaYD6QcVknanCnusUE3Kif917VNBNS3cXVZqPPo0QyDNEv?= =?us-ascii?Q?+O66I1wraIxN8eBZDm3LZKCUzwxyGr854++o0qe1tEp/ck9H714MZvV8Q0LC?= =?us-ascii?Q?ARdtrKqhPSp+ph2uUxWJfunTmjr2APiSmHtFPkKPmfpdkPN8Kh1bdfJp1WPm?= =?us-ascii?Q?Aq4jRasQD/KhAG028z2qQOSI7XgkG+RWAOwOUvl852tzR9gLielAy+II2dmy?= =?us-ascii?Q?ljzEJROwXPRHOOIoGMbOkqEnZzoefJIitcfv1kTGaLMcXQLImGqqmNS164t4?= =?us-ascii?Q?mPvUMhOlXFwke4W9mk3AAyNH9LHwIR/97to7VncWvP17neX4/LymiQm8q14Q?= =?us-ascii?Q?P90RryqIX8kCEK2fUoV4vkICG6g3uXj2R5RfwIrGB/4243Hx8d7GYqoLBB8s?= =?us-ascii?Q?bzywp1RVsMFYdwFaw08w6QCPACFdlHJEjAF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6VMBJ7q6h1mjeA56rE6QAR/lzVGAXbyqin3vD58y0UYwZCFHOnKj?= =?us-ascii?Q?u/WOSvHQrV0ZanyDpkTWf2fQzZDYugYSjvN2SFvS?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 05512f44-4093-4f1d-7486-08dc68160126 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:30.2660 (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: erE0Lbs0B0xnWOfoL9hiGGCZ2esusPkTfYqT3n5S+a/7DpWpotfaLLODkS70Qn5ASFART+NdaL51YXFG6YjtnQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR04MB6859 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