From patchwork Mon Mar 22 08:12:39 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan \(OSS\)" X-Patchwork-Id: 406076 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp3370541jai; Mon, 22 Mar 2021 01:27:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwY+GxhtUsFi3N8fxkOW4rijo6NYO9tr5tQwWQlWFS8gPQbXqZMB3uyo1xvlqVeUkprbXPh X-Received: by 2002:a17:907:e8f:: with SMTP id ho15mr18451719ejc.541.1616401664598; Mon, 22 Mar 2021 01:27:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1616401664; cv=pass; d=google.com; s=arc-20160816; b=RdBLg0aD+rvBv9n3Y0cfI8DIvgHDzfkZ0UNX3pibeH6KH95BwPu+QG648yg3pbJ1EC J9ceVyUIgHiY1Zjjuf6BIvItQFMl30ukXuoMgEklMbh29eJ7dAwV0NfvgkEvMLLgXZRQ ZGlWkgmUe3etnUhG1GGRQ6z8HXzj02QOJrS2LoYzqIAjCWQWS/Mij480Tn/b+hvCO3CE 7bDsSkyUzvPusJf0FvzOonaObcIP8kT5+czKD4Y5wv1m2G+Cp+VeGQFPEtFsy45bCfec NiGFBpbfCRZTcqzhbLZh0XoTmCZWxjpHf0x30l0RLyoX4bm3FDYEO4o0gUJD88e+P6VL HlXA== 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=4H98Jz/GASDO+bUQz7D0bhMX1G6nLTSXpsXRkK+eo9E=; b=clbs93HeKKMmYPtP+SzmpbABJIuW9MUXdTbZOZMPKzqYqc4HHSbVWsidO5smomqYxr sGBo5Pdb2WIRDRWEsUNTGZff/X4INmDPlDayw3d7lqmG72lMmAyFk5r4kNVxksqJJ7by EXRomVUS2HCAjKLayQ1Rfns/UioTRhLHOtbT5SJE7pThNztgS0Lc9zP/42/nXHGxwqsB 5WZUcBjWv6Sd0DZ0zDtppgjNyDxzrqzpVfZ71T7dNC9cGdXoJqYUHoLTqp6W0fWxeuVi nhQ8o09j3yXsE+2qSZctAAdTOXbR8duAjBbRhFjAQlZvhLs2Io8kjwLcRzFo9lMqi5Yn KxOg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=OeviyR16; 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 devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 nd37si7168148ejc.708.2021.03.22.01.27.44; Mon, 22 Mar 2021 01:27:44 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-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=OeviyR16; 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 devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S230041AbhCVI1M (ORCPT + 6 others); Mon, 22 Mar 2021 04:27:12 -0400 Received: from mail-eopbgr10060.outbound.protection.outlook.com ([40.107.1.60]:36614 "EHLO EUR02-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229614AbhCVI0u (ORCPT ); Mon, 22 Mar 2021 04:26:50 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Jf8M/nZxGmCaOdpt+jUG4A6XWJBY/g7vyji6Z/fRZ6VbTyKaKC34sttjR27H2u2DQkyKXHGITZzKM0+idzzPiSNSH8Kp0nrLgX7cmfopzh/qW5cfC6RrTrSWZlItOpyh0MOe0r46tVX9jwz6xfLpq9GWYtjyyS2jN0fxA1kE2T3bxxouu/SqkeAsjsC19wn07BBLR7giTI5Z4tX9gqkxA7XM6aj+KVzYCwPPiKj6hDbwnCh2HQWdHI6jCa3o/EFnJfJx4JezuVefsdOC7wXs5eu+96V3H9clip2oLShspz8r1iF6Cr9TWycZPhmj2Hhw9y4jX6tp97x43R5yEguScQ== 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=4H98Jz/GASDO+bUQz7D0bhMX1G6nLTSXpsXRkK+eo9E=; b=TCufVAePOrI4u4Hvniyj6Ff1bs1lI6ltgfYdCFwmqGipSrm7KleuHy2k7VT9BOAVUj1+2Wc3QjgUJg+C/PqL+vT6TIYGuz4iE+byZSO0KvhVfpH4GChpgsf7tP8Zi1Vfu0gFiCtNF5F/h6PCzx3SQnXvjvzMT+sAuz2lYybW52wUewb94R5gwsYHsuFJDhXdMbnm8Ri0bp+23lI48n9eYOS6FIy704SkSMY5pMQRgwvis49wRpBMfOYfx6LcH824am167EfKjIgUhQ2vZ8fVDb1uBC59R+xIPck8yA9JOMlNKOxmxVwNaHCUAm1R63zW8Issu7pyQQFiI/TJ0rKs3A== 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=4H98Jz/GASDO+bUQz7D0bhMX1G6nLTSXpsXRkK+eo9E=; b=OeviyR161gvac2TD8qVakw8FW56bPVVGn1Fp6pVxxlUvfnMdkg6YvQ4w3dDdMoR1aFK4ad9KOKYfNV6Gml7Zc53be31ePCsxVqVpR/amk1Il3oUBJWu+udvuIlOz1cvvZ6PtQLrZ1Ds2mMQx5IO9hofsth1b2t+8jmCx6u3ae+M= 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 DB9PR04MB8316.eurprd04.prod.outlook.com (2603:10a6:10:246::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3955.18; Mon, 22 Mar 2021 08:26:47 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::d58c:d479:d094:43d0]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::d58c:d479:d094:43d0%9]) with mapi id 15.20.3955.025; Mon, 22 Mar 2021 08:26:47 +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 4/8] remoteproc: imx_rproc: make clk optional Date: Mon, 22 Mar 2021 16:12:39 +0800 Message-Id: <1616400763-16632-5-git-send-email-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1616400763-16632-1-git-send-email-peng.fan@oss.nxp.com> References: <1616400763-16632-1-git-send-email-peng.fan@oss.nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HKAPR03CA0007.apcprd03.prod.outlook.com (2603:1096:203:c8::12) 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 HKAPR03CA0007.apcprd03.prod.outlook.com (2603:1096:203:c8::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3977.9 via Frontend Transport; Mon, 22 Mar 2021 08:26:43 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 3da0995c-8368-4685-d157-08d8ed0c3bde X-MS-TrafficTypeDiagnostic: DB9PR04MB8316: 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: N7r0HQYSfmyi3y9llcjF/9lQan9KK0C1N37TGu9EkRc5OzMO6f4UTw6IWFPE/z+wDtCDekY39yNtO6UjvqJDgm0HXw2m6RRhcVeIipDxnTarRJQEsK+nlXQR+lOTN4Q7qh2LkWnXPouBZoAbb1xEyPJKVQHTeQ0KWcIM7Znl4bjFClDvdkCxnmIDu9fcyNpuEGCKXVUDfMdcFRnqRZuGSjEzg+u/ytPnaNQzVmLBE0Rn0QwcIeCFavQ6mrmecFxm0SIkKO3DYRLXMR61auJHrK0nAVjUq2VrUohtsC7K9VQ0EOvdXyJhpP4trRtn0GAnfNbt4v0SbNrQe9Oe64q5TbmozLOErkCg+SLqoX7eGCXxygJJcNcM5BTcDqzYuIQB0wT5u0Yl6+CFzKt0cNQUuavUIrd/wGDdIyiPFs4ZFNWApposvkAouhHC979VPJysRYt064f9KNW1jXtwmOITGSGJpqfDBKhWo9d9Q9H5xtBbTMeA8dpkgjNohUoKkDmSRt9DBQLLPsDf8B4UarkMoZY/EXem8WcjhqDqO8xq/jRCb7IKBdZLZLDJfejotO2iZynhzSCWPEhvZr0/rUTAH/BHFGmPmG5e+oJhgR7gqppcOQCk9+FKisuMoY8Ztep4gmZewjg6GSMZujBGHG+qIQ2fnXy0f2ybfxZHcszgohokytSalbx6MMM4BhsQNBwg 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)(39860400002)(396003)(346002)(376002)(366004)(136003)(8936002)(6512007)(6666004)(66946007)(66476007)(5660300002)(83380400001)(9686003)(38100700001)(86362001)(8676002)(52116002)(7416002)(6506007)(26005)(4326008)(478600001)(2906002)(956004)(2616005)(4744005)(186003)(66556008)(16526019)(6486002)(316002)(69590400012); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: zWUMjYjh1p7vw6B6U73gBeP/3oVHRbzV/8pQITd6F0WageSR6hdGNx74d/fVhz/qzGUh5WGH7OUP+rgRCkFi24v7tnoF9JwgPiurfHODu91CndQoYVRgT/PLHWMSSSdsQH1O/r160ix5byGUDtxuqPAdM3C6ghMvaCEJ4bJWznjuukB6I44+Q2eAjI+CU5rW1/h2XSPUqxBX4ooTQpnQB4b+M/nI5B9D2iJ9DgMek6SkrvvaOWkXxJpP64qwSHXEhg4PTnviFgRlK391GXbZxUrbLEj8A30Nn5vr4xt5r6YP43qiQSkiI915B9Zv1ilfBiCS9aYIimoZIBLXUOx+qdys4PlyjcviWnS9A3lqHLjp4m2kdJ0AmKEz1QwesZQ8FKTH8nU+Gb2Dc5JnUeENPibUaHClYO/QjMjXois6I9DigOBxoHklae9mP9SfUsB+/nO13PA1X6rmaGpBlXpX8T11vCwsU53lNZFyeeM/g4pkGs474YCoUL+93+0LsMmnAyg1b/TpvxPXAGe8vPf3U4FgY03wHOlaBQaayicSQuyypW2B5fmZMZm06UviX0UWpD6UTlTyhOPvq3J/PMUuHFunbNfRP2br12AZbCPZWnc1yxX4StjcHtjcrmJQflsGujysfXvjcRgzx7Hu620yCJhq2R5gJYHLb1LhJA62cHmf6aIqktABxWkRvz2feV9nWyG3SGiQarwoQgQEknUYtN2zFDAvgbZN60eKapP1THJsx0hAKeG43C5BZt62vctYVCr2SlSAeKC/afXo/d+8j3M7Qv1W1Jk3Gy900o+lW09ahcc5HY/NDGPPMtLrS7tCwmfp3xtW89qNmwQy9Zh9gO4mGO2QTgfN+QnoT4NhUHMmZks7QrxSOCzjt9dHuwZe/0g4vXhyftNzjQiCakG+GIWqgyVaCgo0ek/ue5ojT13saVWdFCpttH06HI9Tupn/SWka0Qk7KCrmJhU8WTUGi/roNgJ0j2lW6F1iRFGQq1OtrF1T1RSK9LYsXL9xqiVpSpJRsWzUklxadV8wUJxLkjGj9+CEiJ1jK3ie1Mccp/npVGh5/sDj+1LrXbC2qtfKqdttzg1BSrKnLbngZ+wcjW9eIaHcJ+39eTWlSNlgjhaCEM2JbzS8ZSxppgM5V8j1uRgfsqDtZLYOzue2P8eEkn7ZNi+AIvCp3Glp6o2TDtXez8hjKJDEpOt1nW5OwYKx4la8xiTwDZ/mVftJjEzeDNB2zLcDgjz+sINwzUBJAeGDSmk/jUHSiuRaugSwonyEXwL1KsCFZ2yWwwryePx/sS3YT1tJge95s/SefNYH0DVS/RQ9uwNKRDmmCromBz0E X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3da0995c-8368-4685-d157-08d8ed0c3bde X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Mar 2021 08:26:47.6082 (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: eHaB6ruZeBAxhXU3GcPaIb34N0I+HBC46z3XrY+k2ok6kpFhqX11bZpCYw6UWos8a1ySX8i5nExRYvlCfleveg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB8316 Precedence: bulk List-ID: X-Mailing-List: devicetree@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(-) -- 2.30.0 diff --git a/drivers/remoteproc/imx_rproc.c b/drivers/remoteproc/imx_rproc.c index fdaaf7599cc8..e858c1af4353 100644 --- a/drivers/remoteproc/imx_rproc.c +++ b/drivers/remoteproc/imx_rproc.c @@ -654,7 +654,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);