Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp34943pxf; Wed, 7 Apr 2021 19:12:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwxc1hvh3rKWdX0Yg/tl4eVXc8Q3+ltEcCLagbcK7siYLCHVhs2dG1DawFCraF61UEiFSZ8 X-Received: by 2002:a05:6402:22f9:: with SMTP id dn25mr8268401edb.101.1617847922507; Wed, 07 Apr 2021 19:12:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1617847922; cv=pass; d=google.com; s=arc-20160816; b=KCYOwL3zD+PuqFi7c/GlOeEGCNYmKWT3KTNa/HlifJwkHBbVLc1QxYanX1sWOdTt5k 6Wv64Wvpz77pX0abmml51xF9Z6kOSSsSOO7Eml9sm+1Da+TE7dVXlCGHw6srlS/ebXls Y88Ph/8iGtLnsyJ8fL2TeTfM4G52Qbj6aA1gjPTTZ5g9cGctIG+5e5XD1NWkVOYNpXbY BeHzfkRabv1MdxIz7AY0QeTcgsXiUuPZRNzlSeai/JPoPScgrv5/e/OS5JeWRLXifcRm iRGJo6+YeIz6J2VXYYWFDiDGuDWvWLELN59D1yJddimDVdiCFQW9Mxet2GzkrIGMC5Pf sPmg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=JElioquqRM3seumWkbwBkQc9IvUvCox/SuXmtG2RAiQ=; b=CKxL+42dmG9ufxrktk7mzoezOvcL/9QG5URrwsNuqRb9jWAovi2S4UhMCqzWhUPL+C M4aZiwcI86AzUzHgb/MDwJLeEyRqxV9EhkIqebwqPIE+E0W0yD+NkMhJ5dHD8oP4dwWM 76VAYtFShRi8qTAbPRuiSsU1ZUnffxRM64ZE9xH1LxjVClq5WRTgNsjrcy+602mxQ/Cc Yk0/bKdPstwX6tmiotYXn4Vgpa6XRdrkNORGnEm7ZEMUSBc4mum7gp07b1n6/CBc3qTz c/DQCH3yZww2E04pS8kRWtiLb5idPLU7oXL8jpBln/e0Xbslyvzzrm9i9k5eZ/Ouz8b/ OEDw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=Obkk3sl4; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ju24si13939456ejc.514.2021.04.07.19.11.15; Wed, 07 Apr 2021 19:12:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=Obkk3sl4; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230326AbhDHCKP (ORCPT + 99 others); Wed, 7 Apr 2021 22:10:15 -0400 Received: from mail-eopbgr40069.outbound.protection.outlook.com ([40.107.4.69]:10566 "EHLO EUR03-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230305AbhDHCKN (ORCPT ); Wed, 7 Apr 2021 22:10:13 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iUOC34boVCIBoQdouYjlmqsH0MQSrWh6znNE10+04FztYQIk3oGcQ/gQtdMhU7cTvIRu2bHAcQFZyT3gBQcA/chVgJa2n0/BHiJc0X7JZJ2+6mMAkrerED6DxeoegeGO5nomihHiWiiHeexNwrFQ0O2Oa6f0Lt7CvNKJe9db2lIJEaeoLcDF9d2AV468S9w1SIWmYoNSIHqtqE9BnSO4qCJl1pB94RisJxgKsTkk/9I9n1+9HCpQgOcywXxgfEE0LxAJn90txV801W7ly8q0ncHgt5H9OBLQcAs0IaSh1mUTIfL0Y7O66YbT74ohxukHs3gmE7pdghL+kxUn09QELw== 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=JElioquqRM3seumWkbwBkQc9IvUvCox/SuXmtG2RAiQ=; b=gcBcv1EiJLmzG1pf9XGFTIrwDRyJUN1W7rI676cGAW9OmmEglQBtyzyzqgV2qjhTlmGnUtz5vt/yIADwZ8m4cMyzcWRT60h37F9O9er7104tklcMuhF7X5DgJ/EJecIf0PRXicXj3D94JEW6JEHJsnDCEgItLB7Phx8Dnp4y7DfQeCWixcaS3l52yEhK05HnysYwcSxZ2dLsM9PKCDNMtlkmU5/uZJIgw+kjw20ZIkAY5jevNXU0pS+HNQdKzmaAKaX2UZbBua5GEYOz4T4TUT/Cn2HV9IPf/VkMLWXWRoo+nf8jEEeCLJm3m/6DW2Mx3zkE5/B/PS6jy6BKZEt+eQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=JElioquqRM3seumWkbwBkQc9IvUvCox/SuXmtG2RAiQ=; b=Obkk3sl4c0YugYsfRyqqdcMa1rEh5StQI3OMF7Q573+wSOQrlyKvDkSs2qBHQyxqV7iqpQdJdZrhB6jCCdcKcqMoSQQRHB+Jn2DWtHIXW56/qO/QqT3Ra1uQKuUQBzT/zXQ8l+Uv+B7favjqD6ubeTuhuuVRG3cMhpxRdLefSbU= Authentication-Results: wizery.com; dkim=none (message not signed) header.d=none;wizery.com; dmarc=none action=none header.from=oss.nxp.com; Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) by DB6PR04MB3128.eurprd04.prod.outlook.com (2603:10a6:6:10::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3999.29; Thu, 8 Apr 2021 02:10:01 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::c57a:6964:f72c:21cf]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::c57a:6964:f72c:21cf%11]) with mapi id 15.20.3999.032; Thu, 8 Apr 2021 02:10:01 +0000 From: peng.fan@oss.nxp.com To: ohad@wizery.com, bjorn.andersson@linaro.org, mathieu.poirier@linaro.org, o.rempel@pengutronix.de, robh+dt@kernel.org, devicetree@vger.kernel.org Cc: shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-remoteproc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Peng Fan Subject: [PATCH V3 4/8] remoteproc: imx_rproc: make clk optional Date: Thu, 8 Apr 2021 09:54:54 +0800 Message-Id: <1617846898-13662-5-git-send-email-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1617846898-13662-1-git-send-email-peng.fan@oss.nxp.com> References: <1617846898-13662-1-git-send-email-peng.fan@oss.nxp.com> Content-Type: text/plain X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HK2P15301CA0019.APCP153.PROD.OUTLOOK.COM (2603:1096:202:1::29) To DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (119.31.174.66) by HK2P15301CA0019.APCP153.PROD.OUTLOOK.COM (2603:1096:202:1::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.4042.4 via Frontend Transport; Thu, 8 Apr 2021 02:09:56 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 336bcc7a-3a3c-4264-0691-08d8fa336a35 X-MS-TrafficTypeDiagnostic: DB6PR04MB3128: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:632; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: lEvFpEsojRgpxjn+SQ4viOm3gWr/mDBLQxv3Iv+OnFxEODYgsVCU5eSkD+3kqexo65x32n+xf193bqi+/b0dGrx/AdEWnuLC088o97/HheWxXnDHB/BYxC2o+1CLCSuMRyFjQ/F9VGEIvTdWpU95x8BDzuxGmbcrWRuG4lkPELfNZ6beaaurQXOYWMeGN5zjdr2qfGCu9xo8kqulE3Y3pQFPghuz699271Lsbn1U/Dp/9ctKEUv35UVVuFXw/5pyZ7IYyDAhVQUllnA08Jg1ASVA6bmHrkTu57C2raVrLUg/pnmdjlHzO81n7C3YWFBK+g8bhkDDouBFGhG7wD0hMTTHogGc2vIvaUikG5mjMcxZ4YqofazXqpysiBWQp1W9XxG+NLJiLBqTrtlGOh0uA72Y3AaeOn/oCyr7JWrOidabR8sBinPktwllo1gJ7c43k0uyNNxp4mfPBSmcNcua3cOqCveO1+jmb/8rhNhfqQkGeYp/FaBLhYrVL4eLQWf3O/96JsIs8NnOBfimnoYg0O4IBi3mOwLBg9BWoPkeP3a3IL+mRrkdLvhukWKoO4jSERAwA7ymhrFJugiWhs25952msxPoowRteJlVcA8+L8T2bQbG2kGFDftw7wzlZHdTfSBST7g9YRykWx0ZZ8XdZTmm1imFCTcpZ8RuOwdq7xvLkREBRHP3ul+Yr7pZRAQqgLnQWFSbcVT0UorL7G2hOPEULBq26Z1voVesfRlYlBY= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB6PR0402MB2760.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(136003)(39860400002)(396003)(376002)(366004)(346002)(6486002)(4326008)(478600001)(8676002)(8936002)(26005)(4744005)(16526019)(186003)(316002)(52116002)(66476007)(86362001)(2906002)(9686003)(6506007)(66556008)(66946007)(7416002)(38100700001)(2616005)(6512007)(956004)(38350700001)(5660300002)(83380400001)(69590400012);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?us-ascii?Q?ogSTl9lWFuuqDggRYvRC8b1Cnln1RIMnktUPjGqjzZMD8TemYrV3ALds24EF?= =?us-ascii?Q?bG0lIp5xz/W68cziAVs2M9VuXj/e6UB+eFqx8Qh9A3JOMyBL1eSSnVNlJ1d5?= =?us-ascii?Q?lC89JHy3sGpsi1rASzFdRmdKyNoMrshlAVjyYbRKZ1U+xcHP5O7T+K/ySa7w?= =?us-ascii?Q?olFtI+54qH38GNHpIdlU5aRzivKRUJcYLgNbypUEhu0ePyam52mlaA6DYV/4?= =?us-ascii?Q?SsVxmHZJs5lLs/5AWGwkcR8dghSwqmfYO5B9jzAr2GkJ5jpVYhT+oA3nditf?= =?us-ascii?Q?haUGwqp6ecEjFftabtUHwh0keO5tJ+J5Fr4WWy79Yn319RXaKBATnkqrnVIT?= =?us-ascii?Q?N0hvvU8TNIPQJ4YQD3iCtuMWLmh/vPuA3UP8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SmjRoV0dHsmrbC2njMNqBHKpHb+POX37aB1pJhBRnXXT6bBj6wWUDYHu?= =?us-ascii?Q?4lAFeyZVVZJcL/M1Ny/GL7LA?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 336bcc7a-3a3c-4264-0691-08d8fa336a35 X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Apr 2021 02:10:00.8719 (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: lZLYt3abNzWeIkwQB/+GxIHoupAntUNclLYw3lwdnm77pW8aQdqbY6GH36TNgA+NPWXNO0cFuIUZq8r4eTqBfw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR04MB3128 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Peng Fan To i.MX7ULP, M4 is the master to control everything, so it not need clk from A7. Reviewed-by: Richard Zhu Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/remoteproc/imx_rproc.c b/drivers/remoteproc/imx_rproc.c index d6338872c6db..ca17f520d904 100644 --- a/drivers/remoteproc/imx_rproc.c +++ b/drivers/remoteproc/imx_rproc.c @@ -635,7 +635,7 @@ static int imx_rproc_probe(struct platform_device *pdev) if (ret) goto err_put_mbox; - priv->clk = devm_clk_get(dev, NULL); + priv->clk = devm_clk_get_optional(dev, NULL); if (IS_ERR(priv->clk)) { dev_err(dev, "Failed to get clock\n"); ret = PTR_ERR(priv->clk); -- 2.30.0