From patchwork Tue Jan 12 09:39:18 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peng Fan X-Patchwork-Id: 12013007 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2979BC433DB for ; Tue, 12 Jan 2021 09:55:15 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B86D623103 for ; Tue, 12 Jan 2021 09:55:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B86D623103 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=jC86mearY8gND9L9qIfNWW200CRFg+QYPyhOK8MrF58=; b=3YPplOqVyqYmu2TNqacD7upKW 1X4rKOAqVZV3IOZUGQ5LYHkbmymvvIb6PFla+DgJ9ivVZn9kTG3M/M/2u0ZYvddLNHlaEXrLbMxoY askoXHjpW+ozjLXOaJIbY+HqWj3MXlP/zjJXPrF9xxtpRqLxgsyGdQG6C55Gxcw0olsWG4pMU9OBC QQxoVrpfqL8W4zY7JVbZ0xn5HOIUvycO8vKVoEYQ9PhhlojNjEsrrUAvIekxcjaQ9dMVZfNNvTZ5I fJBzJ0z0vaFYPLJgNRoz2+d9FqKZkvGK/2TYPbDWI/yQrk9czS9AhBcTZZaH/+wmm8BH5pdAj1D+a +PPKq0Z1g==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kzGLl-0006oz-UZ; Tue, 12 Jan 2021 09:52:30 +0000 Received: from mail-am6eur05on2055.outbound.protection.outlook.com ([40.107.22.55] helo=EUR05-AM6-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kzGJX-0005dd-N4 for linux-arm-kernel@lists.infradead.org; Tue, 12 Jan 2021 09:50:14 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Fc6aQlJqPpqFYtdf67KtE0yY2b9xBk0PNpiP+r6fd4O7Xg2jkXsxweAv5U8Wvb+QE9B1ULiAYl4hnMviRcb6hT9LFcVIosF/6hltCHidSXFB3q5lySRY1py/a4WjdP0y5t2NMn2netGcRlGXORCoIbm8KsRlESuBWODDPtQF9ez98DVxS2D26qqF7xk/9UyhmHc5OPdOCC4PoV476pb4whd5S3Vb6xcLZRZN8JHpS55WhPBaEpuXKhWVc/LSYZKrPshLJLXfvzCtEXfQOZA9jKiQYQGT1fg5UvAsUK3WLZAJjK56kMTP6WdLl1SlNkXQ70Tk0gzO7r1Zy/zavkJF9w== 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=pAYqIU35UPpL90YeZ0RIqNWEqoHhxw7xzRqpkA7vL1Y=; b=c5TqpZPBzwqyA1T+n8R1jbNYHmDEQtR4YpcIfGEH9R7OoYZA/Puy8ZZFKRz1uNwxaWbZAL09hhB3eC426jSnlOmwOzoOIExFkIUrGWRNyBmfXOwHwN7guo61YdidVRpWJUc9jxHieko2S0q7c+XoMdnjiRYdKkLUIXT0XjiCnaLeL6LBXpfwbv7xcencLCIUHpPEFJND0mG9tp5MYxEPNeSnkSaOCMlR4JJNWQ59E3j0BdvGQmJYi0+CtGF86Zc9VjwAoLVlGlPQp57zyIEtgVMLThM5o6FQywKch6yRv4LXHea6rBvVh/xKmhTMGe3I8fHJvsojTmLIBBb3WQUNdA== 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=pAYqIU35UPpL90YeZ0RIqNWEqoHhxw7xzRqpkA7vL1Y=; b=jh1apPLSA7uJ+eATiO9tzul6aQSLZkHYLjIfCNe8gdbQdWowKKLO4C7rCu5qmD66OentkoDs8iS9tmz13FrqNBxejV59t6S56Evf+FVIDJ1mIEYmscIbx9zCFlNUKlNkxuhye24N1vrOznJ6t/XbQgwbYh9PeJhGgLBMSJAcgEs= Authentication-Results: wizery.com; dkim=none (message not signed) header.d=none;wizery.com; dmarc=none action=none header.from=nxp.com; Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) by DB3PR0402MB3658.eurprd04.prod.outlook.com (2603:10a6:8:2::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3742.12; Tue, 12 Jan 2021 09:50:08 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::c964:9:850a:fc5]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::c964:9:850a:fc5%10]) with mapi id 15.20.3742.012; Tue, 12 Jan 2021 09:50:08 +0000 From: peng.fan@nxp.com To: ohad@wizery.com, bjorn.andersson@linaro.org, mathieu.poirier@linaro.org, o.rempel@pengutronix.de, robh+dt@kernel.org Subject: [PATCH V6 09/10] remoteproc: imx_rproc: ignore mapping vdev regions Date: Tue, 12 Jan 2021 17:39:18 +0800 Message-Id: <1610444359-1857-10-git-send-email-peng.fan@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1610444359-1857-1-git-send-email-peng.fan@nxp.com> References: <1610444359-1857-1-git-send-email-peng.fan@nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: SG2PR06CA0212.apcprd06.prod.outlook.com (2603:1096:4:68::20) 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 SG2PR06CA0212.apcprd06.prod.outlook.com (2603:1096:4:68::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3742.6 via Frontend Transport; Tue, 12 Jan 2021 09:50:02 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 93b9f83a-54b1-4461-372a-08d8b6df720e X-MS-TrafficTypeDiagnostic: DB3PR0402MB3658: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1247; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: vqWAeh//YQorbhcxjwTFwcm+61h8mB1sM0juYpMSScLtqKsmQxsAxD5gf5CrbMAmY9zIVQOt1kadw+Z78Q8ny0mJbY3cyASUg1bDx79vJsgHoJisL4ExTMYcBWy0M3zGUYBGXh5Suq6geiMfDoHhImuvTgWq+AzofihSiSxjgw0kkcExRJLMUHKQSv4YBL24R0qNtuUI2vjbW2i6cNrQ+uvDp8gzvZqFZ6Q0KvFfZewjpLPireTZOvigCLGhAOKCGctEU+LqDCKZs55RP0sXMETCU8Hdwwtr0V0OjDXAYzQxvitl8YaPaP/MdxwBCWqOJDmlL5eYz1TSiAW7iCkBkZNNcsPziGDgJM7+rBIo4rFi6fnOWJyXMsxaDXH7M70hB8s+v3BCe0K/b1fy+c1LTyLvx2++nhwGh6rre1Y4NC70uvErxjmZqWzIv4UlsY65L301ijrBId8RdWP7bCmWWg== 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)(366004)(956004)(26005)(2616005)(6486002)(36756003)(66946007)(66556008)(6512007)(52116002)(16526019)(66476007)(86362001)(7416002)(9686003)(6506007)(186003)(8936002)(498600001)(4744005)(5660300002)(2906002)(8676002)(69590400011)(6666004)(4326008); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: YGv5kX7ooN066MaUNyMr9wKgF+azcYhrH4obzNuTwOHlpMBpkr6nZbp/+ij6ue/GwsyAG32VyXCDsJXdie7cLaafufs9SxbqkeaLS89GWSrEiw+n2hPrz40WoxaF04DsLaRSRsJgPWzh8rchGjSJaNKDROKMRU0vRW74A0cExLIDqWJMGi2om1X05W5dbA+CipgAFwvQxCq9MRYG4uivGH2G/EQXzhg3DswNwlK8exK7HtecBXCDamKGptEojVK2RwBh8i/GGurT1s5laNIhF2c9HnW8+57BfLkRXD6ZYfvZUGrzaIkMPf+757h7THsnHjHUWBPFMJRi0l+b4Q2lRD7WebqVjG6selID/Lg363vfpetDM8RWO7gfmySeTLYyBeMnxtQaYwL/iXLSClxEPxIO9TZSEMirDDgg6IWgjAExU5QQGifPi5u13M9gjHAgX8xplONWyp3xz5nYX8UhBrJ3e6r7SBmSshO/ghU0VSaIg2dkxc1+/Hk6ff9PMtu8uhka1eB3nhtD0Hpf/AYQv3tkYxkGpCscL5Cg3j67mfY1+kidUIep8QJL3dt3PeaIaAVO9vdmm+7DXuUonEFiTAqqHNzpmNkNjHlDFI8fN1UwGghCuuiv7Al5YSigfkwxXCt9qqnwmbK9r27OVP/jjO73v1XH+sON0FvgCQLUFG+1qhWQbJoD2CVbneECx3Kgn40ckGlhiPu3tV2QBwy7+ibsWlqE/XEWcmjf/2Q/X+uNx3wlNvmD8eJSm5+n6vZXfA9q/lnjWRzm3rU0DiRveIm4JYE5Sgv5Fqq4PY4GqNTebdNwxrokPQ/R5IZRbz3V+yshqPagyDN6xR5S645+OZYE3xrhKWWnSpSU8KZY55JImAe1E5BgkmbXG813StczgsvWsu02OEhTdcKEh3lCvE8N8bIcDpkrZZfCw4YzqD7yZIbIVpsd5YSL129lMCOkX8Azyvp80SY9mziS/ABhYRTe8WEAzT7u2z27BgGUP43McPNTHQjL1n3BAZcGmpOR X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jan 2021 09:50:07.9781 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-Network-Message-Id: 93b9f83a-54b1-4461-372a-08d8b6df720e X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 8bd4ErekyLJqVWmPBhRTS9ZvDRMi+HbPQXfl5vKd4RIn6zC4YkEKBAaJ4vlSYTPqofMsBzcQ4IXYJvWnRg8avA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3PR0402MB3658 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210112_045011_866274_D20949F6 X-CRM114-Status: GOOD ( 12.96 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peng Fan , shawnguo@kernel.org, s.hauer@pengutronix.de, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, patrice.chotard@st.com, paul@crapouillou.net, agross@kernel.org, linux-imx@nxp.com, kernel@pengutronix.de, matthias.bgg@gmail.com, festevam@gmail.com, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Peng Fan vdev regions are vdev0vring0, vdev0vring1, vdevbuffer and similar. They are handled by remoteproc common code, no need to map in imx rproc driver. Signed-off-by: Peng Fan Reviewed-by: Mathieu Poirier --- drivers/remoteproc/imx_rproc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/remoteproc/imx_rproc.c b/drivers/remoteproc/imx_rproc.c index f80428afb8a7..e62a53ee128e 100644 --- a/drivers/remoteproc/imx_rproc.c +++ b/drivers/remoteproc/imx_rproc.c @@ -417,6 +417,9 @@ static int imx_rproc_addr_init(struct imx_rproc *priv, struct resource res; node = of_parse_phandle(np, "memory-region", a); + /* Not map vdev region */ + if (!strcmp(node->name, "vdev")) + continue; err = of_address_to_resource(node, 0, &res); if (err) { dev_err(dev, "unable to resolve memory region\n");