Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp5851497rwp; Mon, 17 Jul 2023 10:21:17 -0700 (PDT) X-Google-Smtp-Source: APBJJlHZ8Xb5CT3kQB5adEqSMPQkMrYg5n/b4ei2JWaGKmpFMFibKM6p7H8ZL7bgEfU5lXtvlU6X X-Received: by 2002:a17:906:738f:b0:994:4f4a:218c with SMTP id f15-20020a170906738f00b009944f4a218cmr9936487ejl.8.1689614476965; Mon, 17 Jul 2023 10:21:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1689614476; cv=pass; d=google.com; s=arc-20160816; b=vYICN8Hs7Hb/WXz7LsOPrnSyUlgcgESVcndApkBgIUQvLTp+QY8h+lwzKT1O0HL1pj CZUCOXrmGZmOq89LEHcn0DT0QzbeJJayAzRbWpJk5Y600hK9UC11snWLqaTLv31wFpJ1 s1C2Uy7Q0hDckh+oDMjJsXSVZHpIoRzF/mNF6IkhpKcSzJt/ESBSEzP7LwQ9HuZgz7tQ Vrgf7I1pQyUKV9BQb08mDpfvp3Pq5hn9bhCmXYpts1F6/98B9RRfiOIegUGzENlWKUAP 84peOpdt9BnNQ9Lhr2DypJDBGL51NuiiBZuOCanmktiPrFQlHXMKVbY3ndbIvE8oX1Ys hy6Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:content-language:references:cc:to:subject :user-agent:date:message-id:dkim-signature; bh=2LfpDK3BfomYl6+Xz/O2GvGCKFe96WBKfD0Q3s+HwZU=; fh=KfPQ/7dDHMT/vAgn1VKHAbCUAYKpxKyEoXIGtOVRvZQ=; b=yfe7cIeO2WCSuIaPt19B4sFBihm6Sm1Ad3F3zLfcpPidISBNnAWTv7LOVL1lrzLBn4 fIIOQYws6FiHFFKSpSY+W2DPsYl5tR7gvkYvdIsuBYsve+5ramtKiP8ixZ9n5xr5K/AO JR3N/4nBOjmyGM9Z/qhlCmIpDfLUK0EfV7jincw4nU202M8R4tocN870VfRfCwIF+YoL zRp6eEtFqyGd0F5FqwXWbqLlMzXbKyIJADVtSFUfYNIm75BtXGrpv6AD3Rpr+auqT5Ye amzZ5A1rlM7FeSRusIUeOniS6/88LZqPAYE+1mvKEL8oQzTRlhJcLB/dF/W2AaJsJ21f LTmA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=OXwjRw+Y; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gg23-20020a170906e29700b0099334262e18si5088285ejb.49.2023.07.17.10.20.23; Mon, 17 Jul 2023 10:21:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=OXwjRw+Y; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S230008AbjGQRIk (ORCPT + 99 others); Mon, 17 Jul 2023 13:08:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229634AbjGQRIj (ORCPT ); Mon, 17 Jul 2023 13:08:39 -0400 Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2046.outbound.protection.outlook.com [40.107.105.46]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 38DF7138; Mon, 17 Jul 2023 10:08:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nt7Jaf7Spx5bCnjQnZeCpfusEGnpxAMuEv9FwljPci8QpHtStCAPxoSQioA1gg6vbijqRGmxnc+25uXIvqCH/g9m4Q9C+DuWQDwaeFXN/VuP9nw821OjIcG3EJTvp9BQpM1QI0p/HXA7iGUsNIDXfXvO49EXRPTLPHUSFVj0SM7s7XXDUQL75PUlilq9o5Xl9JKr4TDs3UFK0shJv6gYmniPaXJfl9sCahcwbvDW+Q4MYO3dMyJ3skFDYlT0BXnhFaZtpM3+cJZkfIftlcLPekrVOyN23oUcxJUZWuDaWzohQsIrOELc8xAraG3GDUBzNUC+59Ql0dGYGtii/7aNBw== 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=2LfpDK3BfomYl6+Xz/O2GvGCKFe96WBKfD0Q3s+HwZU=; b=aBn33RrcGupFDpzWudXQiqq6NdARiSj6Eh2//NaVUg12YkBtw6G52ANzhHftjk4ZSdAekx8Z4+0yf8LMQ8wGlZ8uA54gmC3u7tXToh4Iew3Uenz2h+eY6DShA0q3oV9TrBCt/+Naf6R4Z0SlP+N38OL2mIlckDJLCdsnq/jSIfvNmY/alePoGlYHTR8uljbh+bOBM/15v1ZIIAf3a0jqcx/CZGa0wIwDCh5MKERxfpWIN0efL6MAbSbuYsld1AFTUfDxAgSASUFKgZzRdttiDehKz6rmcGDfQi8xPFUmi7U2AD3WwYYQqtQxGTJXZOQeNoi2tdNqa7wqMUACrJW9Pg== 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=2LfpDK3BfomYl6+Xz/O2GvGCKFe96WBKfD0Q3s+HwZU=; b=OXwjRw+YZkIZKD4Ww+ZFZFVSvdOmKaROi5Xri7V98dSo3ArKzz1A6chEgeaWghukfYX7vWLFmelw4J+kOL8+O7QQbxOsTFjFWHTf/ECBTFGFslo6bwj4rX1vZhSUvPAOIS+KHrDs7/sTr3QrlGlfvqsUPizIbSDwQYmRJaadE9A= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM0PR0402MB3875.eurprd04.prod.outlook.com (2603:10a6:208:9::33) by DBBPR04MB7914.eurprd04.prod.outlook.com (2603:10a6:10:1f0::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6588.31; Mon, 17 Jul 2023 17:08:32 +0000 Received: from AM0PR0402MB3875.eurprd04.prod.outlook.com ([fe80::4589:8294:101a:39a8]) by AM0PR0402MB3875.eurprd04.prod.outlook.com ([fe80::4589:8294:101a:39a8%6]) with mapi id 15.20.6588.031; Mon, 17 Jul 2023 17:08:32 +0000 Message-ID: <06bbe95c-118a-0e19-3480-49fc42f3dcb0@nxp.com> Date: Mon, 17 Jul 2023 20:08:30 +0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.4.0 Subject: Re: [PATCH] caam: init-clk based on caam-page0-access To: Pankaj Gupta , Gaurav Jain , Varun Sethi , Herbert Xu , "David S . Miller" , Iuliana Prodan Cc: "linux-crypto@vger.kernel.org" , "linux-kernel@vger.kernel.org" , dl-linux-imx References: <20230710053418.2406915-1-pankaj.gupta@nxp.com> Content-Language: en-US From: =?UTF-8?Q?Horia_Geant=c4=83?= In-Reply-To: <20230710053418.2406915-1-pankaj.gupta@nxp.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: AM0PR02CA0110.eurprd02.prod.outlook.com (2603:10a6:20b:28c::7) To AM0PR0402MB3875.eurprd04.prod.outlook.com (2603:10a6:208:9::33) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM0PR0402MB3875:EE_|DBBPR04MB7914:EE_ X-MS-Office365-Filtering-Correlation-Id: 51fdf632-1a25-453f-648b-08db86e872f8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: fVEwuOwGdChYYzP7Nam4z3GWl0AK+7yU+EnUQNzkhsI2V/5FQzWj4zVSHBM1yCPoR5LX3pFHe+kn3nu4pnS2Ml3pgn5pagEEM8TyBFrZ8BcOKVedO2ULCSVKqHqizih7MLAjiyF0hdX139Coc9CmkXHQp1TfGcARfcaRJdpQT+WqKvHeP6/SZ8e9+meUCTvZP/zZFVrqoogYQV0FmwTRNbk5WV1/j0N2HzZsYDIsPrDGXcRbYecHiOgb2FTOGW8FOs9hw2US8vA5Ixm9eZRpweZNwEZTI80GsgKdk+SWy/xfEJZQvgaeA1LkKNjB2kkzWL7TkcFSDYW6uOgzoNuHjXi10IKgc4m3WLnwFK1uOQQn2I5KZlG0pVuu90XvocduJ9awWQjDb2Pzh6aWNTvvroEjZsDBbWEGoc0KZzr3GjjtZrR9WC0dTaTEe1DGX9NzIvCeWh1jLUOyPeYHovdaw0ZXgxub2aG93WIVaNSEPDy/JY4eEgB3EWZh1KbX6PM6dpPsM1G5fHVruk31c8W2T23atmr5hMxIZAGbhYhOimfDemHPMXzhjYr6JVgaQiVscBo9NieDOBm6fHyC1hQCKS38slJ1QdwraI6Hw5kg1cFx36Zunjn31ju8qHzSSaMMozC1imPGHtn6qB7ODgFVAA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM0PR0402MB3875.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(366004)(346002)(396003)(39860400002)(376002)(136003)(451199021)(478600001)(66556008)(66946007)(66476007)(54906003)(4326008)(5660300002)(6636002)(316002)(8936002)(2906002)(41300700001)(4744005)(8676002)(31686004)(110136005)(6512007)(966005)(26005)(6506007)(53546011)(6486002)(38100700002)(186003)(2616005)(83380400001)(36756003)(86362001)(31696002)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?QkJ5RnlGWFI3OHBWVlp3SGN6OXY2STJqSmR2M1ZOSkdVZmxFaTBKc2lVY3VH?= =?utf-8?B?R2JMSkJDblovY2pPdnpsYWRoNjdxZVl1TThwRGxMVDVJUDdoRXpTekM5czQ4?= =?utf-8?B?OStkWnhGYVg5ZWhmVWVZb0JQSHhaWTFHcHVEMThvMXI2KzJjb2xhVWYyQy9j?= =?utf-8?B?ZXNFbStrWjFDSW9Pcmc1RWVUazNhWjdsS3JtbjlvVlRndUdqeERLayt2L0F1?= =?utf-8?B?TUZ4Rkk3WUNQMzZzWFBNUE95YjJ1KzdNMnVZZmdsUVhNT0FVcWVqZWdXeTZZ?= =?utf-8?B?TllCZkVJVXFsS2txdG1BRG1ERy94YzBDaXEwdTAwZDk4UEdnRmFGVjdiT0E4?= =?utf-8?B?YTZFMGQvNFY5cERBZGl0VVNyVWwwQWtXcVVJWFNsVUhka3pWRXhJUDllcG5s?= =?utf-8?B?ZFlwZXB6blBma1p2aWYxaWpwWWt3TDNQMGRkNFhBejBDTXFX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htWXBhUnNhZWI1dngwbWZUZVEvZi9uVUJh?= =?utf-8?B?Vlk1S0lucXlrYTFmaHkvelFML0FESzdSWDVFU0NCOVBXZHJaUVY1cGZWd0hi?= =?utf-8?B?T090WkJWSVhvMElmRTVaTWNoRWJyWGk2Mk9IdUUxZ2xJYmtIcUNmeEpiZjNm?= =?utf-8?B?UTdwUUpaMVc2SFhDRTNOK1RyRjk0TlJrTXcyZUNqQnJOTk1GbzJJUGlDM01v?= =?utf-8?B?UHI4bmk0Z3FSVXpRSVFWR2cyekJvNXhneE1FNGFrS1RBU0xuWEduV3RZZ2Fh?= =?utf-8?B?K042a3dpZmpHMnZUZUZvOE5WbmVnQ3pPMmtOdmY0UGFYeVpVQkZQQWdaNFAv?= =?utf-8?B?aWF4RFowWUt0SHEvd2lxRzBrWTA1YmRhYTEwcWVaQVpodFZHZlovYzlDMlpX?= =?utf-8?B?QzFSemNIM3pCS2pZVi9HejJ1Qmp6MkVKR052QjgwZEljUEk1RzNmTEd5U0p0?= =?utf-8?B?Y2hFYXlKUm9VU1Z4dnA5YktGbVkxc2x2aHVMTmpKTWlDVExXUUZaZ0ROVkFQ?= =?utf-8?B?Z3kwSW91b0ZBTk5pL3NWTE90ZUIrdzVXRXBHUTR2Si93SWVkSElvZFJFOWQ1?= =?utf-8?B?S2Jzeis4SmhFWEM5SWlmVU1JTHpHalluOVg0WklFaDJpNjRoTUM5VzZoeEU5?= =?utf-8?B?YjJnU3Nxdm1Tb2VmSWxEa0NDSk02WGR6bDNVM0pITU4rWkZGVEpJRVpRREZm?= =?utf-8?B?em5wb1REWVg5U1RGNkpqSUtabnRtdHVPMUlhU0NpZjFsWGxHSXdvSUlUZlo3?= =?utf-8?Q?Jhw+8IFvkfGH/paIbyhODaqWk?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 51fdf632-1a25-453f-648b-08db86e872f8 X-MS-Exchange-CrossTenant-AuthSource: AM0PR0402MB3875.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jul 2023 17:08:32.4143 (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: CibVioUCfKAMbcVqSGdB6gVlj7vZR+vJcWC8hE8Yp/P2pRJFzgFxSt8eeAPm+2GKvtNOJVoidV25LBfS5WOX/A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB7914 X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On 7/10/2023 8:34 AM, Pankaj Gupta wrote: > CAAM clock initialization to be done based on, soc specific > info stored in struct caam_imx_data: > - caam-page0-access flag > - num_clks > Any specific reason for deviating from downstream implementation (based on DT)? https://github.com/nxp-imx/linux-imx/blob/lf-6.1.1-1.0.1/drivers/crypto/caam/ctrl.c#L911 Thanks, Horia