Message ID | 87mshmsg66.wl-kuninori.morimoto.gx@renesas.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A1773D5A6E2 for <linux-arm-kernel@archiver.kernel.org>; Tue, 26 Nov 2024 05:46:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Date: Content-Transfer-Encoding:Content-Type:References:In-Reply-To:Cc:To:Subject: From:Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=CZdFGTdJN3ehcbxazPVepBkaAaWOXkTkIwh11C2cDNc=; b=dg+O8PV+0JlDLkSd/gyxf5cHmD WfmWBM5K0lPoK+kIm7t8V5OpvE1bKpk0ekeSoJO3JQVuZvHiI3eI+Ysc5ir0bHwDeahu9r/Qz6pHr AanwCghbx+be+KKMN379f7FNqp7PlnLOx6w1fwXbWGygHOyxBjbWXAwzxpM5wLT17r9IaA6GmukIw FDmgNBAeY9Kx0tjyGXDs+txv3JX5xaIa3k1Hlyw7N9jklNBw66NdeHK4s41qDjWpB/jbQPapjh6ib /rHyEfpzkDJDFtzZRmktrrhNjmCikiO7LBTVd38U70QCA1jjLar3ydsiH+88NP9Oga6iKhOiJNHHv Tzzgcx3Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tFoOS-00000009hCN-21GK; Tue, 26 Nov 2024 05:45:48 +0000 Received: from mail-japaneastazlp170100001.outbound.protection.outlook.com ([2a01:111:f403:c405::1] helo=TY3P286CU002.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tFoMp-00000009gup-1BiH; Tue, 26 Nov 2024 05:44:08 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=k8z9oyibkB/b49rVLpcFht22lOxAhfXUSFOyWIKLPdRYOdSTgXUAuDeEUk/Ul8I4Wep3QM4b8v7rqrsLtZoQ4jvwgnQze10u3FuvGCsI2G348r7PGBUwKa+Tzs+JidFHozQdh7v5hgRrZM0HoWOTtpsCZ5ogVpRPpXuTyM8h/8+wQ1j4G5IXaO8jfkhXcEW6CgNKQIqypikJopZF8YbUbFVxFTWdDpgGkiJQkDn4vq3Mk7noTG9ebwgo2T5uiy62kW8Ql5eBGrau2P6X4m2J0xGsWQnDuIWrzZDxnCgU+20j0M552dxsnBvwNh0O6Cu+fJrOOKHgsrYUV4O2QKCnwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=CZdFGTdJN3ehcbxazPVepBkaAaWOXkTkIwh11C2cDNc=; b=vlNBpyA8eJ95eqE/+GoqGCt/ArVX0sLT11zhtyjTCNebqZHkvy8KR4snt09L004x/scS9X3G96V1M5AU4ALRL1++3WOKy8xuc6xNm0TmdtpFPV5hwrr8pKBOkaRHK2FVbrD9Bo21BRqUHF/oYrcPcUylFDIjkfIrX/TKcuYTnu4xOho1W9z8hxHLadQ96U8UTZqeWu9KaXe+jidnyxEFcObLsAyaL46drJXj+tZCmf4ylKqzjnnopKpQUKiww1yNttyNnKm56Vn113iH1ZQG3IFkzKiTsc517NlIYve9lrzQI1nOfdlOzROdHZJuLo2+HC5U0oTPH2WzgEM5qLKAfw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=renesas.com; dmarc=pass action=none header.from=renesas.com; dkim=pass header.d=renesas.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesas.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=CZdFGTdJN3ehcbxazPVepBkaAaWOXkTkIwh11C2cDNc=; b=aMAJoMTqZ++76zdhCxdJ5EZayPt5ql9UK9HqDvWkEkAT/8bCtvdgNTojJsbKnE87Yi1tj7xDuK/aiSorapFzqZFMEGnKid/Ul/DTgeXuNOW5OpIVFNDyV0j/8oAmEm5IP6M4X7vLAq15Zewh+vdRCnHAkhRftZ/hm7uWiz9oaHI= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=renesas.com; Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) by OS3PR01MB5926.jpnprd01.prod.outlook.com (2603:1096:604:b5::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8182.20; Tue, 26 Nov 2024 05:44:01 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11%4]) with mapi id 15.20.8182.019; Tue, 26 Nov 2024 05:44:01 +0000 Message-ID: <87mshmsg66.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Subject: [PATCH v7 1/3] gpu: drm: drm_of: replace of_graph_get_next_endpoint() User-Agent: Wanderlust/2.15.9 Emacs/29.3 Mule/6.0 To: Rob Herring <robh@kernel.org>, Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>, Thierry Reding <treding@nvidia.com>, Daniel Vetter <daniel@ffwll.ch>, Maarten Lankhorst <maarten.lankhorst@linux.intel.com>, Maxime Ripard <mripard@kernel.org>, Thomas Zimmermann <tzimmermann@suse.de>, David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>, Neil Armstrong <neil.armstrong@linaro.org>, Jessica Zhang <quic_jesszhan@quicinc.com>, Florian Fainelli <florian.fainelli@broadcom.com>, Alexey Brodkin <abrodkin@synopsys.com> Cc: dri-devel@lists.freedesktop.org, Broadcom internal kernel review list <bcm-kernel-feedback-list@broadcom.com>, linux-kernel@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org In-Reply-To: <87o722sg6y.wl-kuninori.morimoto.gx@renesas.com> References: <87o722sg6y.wl-kuninori.morimoto.gx@renesas.com> Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Date: Tue, 26 Nov 2024 05:44:01 +0000 X-ClientProxiedBy: TYCP286CA0133.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:2b6::20) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|OS3PR01MB5926:EE_ X-MS-Office365-Filtering-Correlation-Id: e94eb804-44f6-4c70-cf06-08dd0ddd54c7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|376014|52116014|7416014|921020|38350700014; X-Microsoft-Antispam-Message-Info: mMiBT6h8nwT3aQnbCoM/a0+N9vnBmMHpgLlxoRHKG7aWx0vjZaAn4fpGxjE9iMstxoq3ybeZ0DyOfwaZf5XP7EvHRsR3epAgBp7Gg4tiGGe9g0nZU5gRbxVd1zHCzNac89AQj/VutwK0ddkh+TeXt+tCteel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1UcisOwSqQMyqN4gNnk+cS7UPf9amVUe7pTUdPaoEB6Q46pX3zE823nuv/j9afq/wloYllT4OOEnlPW9J/z6C3b41Z8AZm1XvVlwiA1Oms9zHDjj6teilQakvc5H9oH7j8L5qXKXtYShD6/tdWZnDM/yeLrgF82oQOUy+xtx2oPO0N1Vs00o0pxOmwvOU/ZaF7VZtRwDZTPRStFc= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TYCPR01MB10914.jpnprd01.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(366016)(376014)(52116014)(7416014)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: TGsRtvZpyEsQe/X56BaGS9pYet6aHgeWyBjEav1O4DRcP0vOXS23OSPK5NM5i859VpqHYOCXFxdY7heqCZ8tfJVsKVSM37ff37eA+WydVpIwXXzQsTpLGxxGhpYgfM3WCo/fznoxwGB2Ynnik3YpXKKvUcHX172OAnd8hUkahxrZYDhmaFEovgA80qmBHk0nYJ527a1TEERJUahpWWph+wOd3V6UosUS41b++47G33/yVRNa81x1yde4YTGkesTziJVERTBraOKGzrjQvALZAj7lO0yRs3BJoMcnFl+n7mArwEbsx9+/eHe0MJFvVJrMv/E3SXP1w6+rcDJKPuD0NkguvWlA11NDjVTfgVERdUUEeMp5fvNRW3kvxWRAoUxvewp+v+/e54ms2zHJyjj4Z8bfKLlHN0gvLZ13RNRIks3JklcLMNt7Zq4yQoZ3j7oLt4vx9tSM3stWermoA/JpdfGg/NUk+V8f5TW3+g9o1pEb2qCbCZIw0A7UeKQ1NwP1pVa/mmzOxAFojWT6B03Pq0iUin2QXu/WE1nkCPiZm3LtfEQlKrXKVxIdM6hfrh49he2HzaqoCT1tDUg+9RGATZGifkv2m+PPWpgIDMvycOW56ILpUrJtpBs19tQp7oH9nVlHJi1tcW066fXPyqt5RUMQcNhwCuDUxH7hkk7mANuGRJfHl0vy9VPPH64iOXrrCwCEn6KsmAcreP8EC5mNfvQwJXzgpXezZIJIagzPHN9TLMlIz5Z65Sr8N1w0pXu44N/naOkoBMw68c4ryJoTdvwknueNPlgUHisHH8o+gsXd6My4Y0vgBGOmHeMcpIbIz5FKDT9Ph8lCzkM/wZwh0fX2LqfRtDLs2EZkoAwppkBFjYiqbFGmd+z56MbhcMoP7jbMFwRnZ5kp1quk0GeZ/DwPBdFSIccE/xtc+ATTx4TtDti479QTNj4QrIeJW0lpVz9w7VI9gw2hJ8apymThw1Z64X0/dwkklVEWi+Ehy6dWAh6R1a6XJivAaRJcIIQaFBIUpsNwwMFUn443kAcHMMHlhLahJU+k8lneagd6YH8w+TGXZrgyXSDvBuEpLHtJhG7es8TWevbq2pbTrs5G/d7he40u4nJzZSVy2qXbfQzYQbTwbGxxSTRhZyoX582Jao7O67kj3AgV1+egtQjgzCGfHZVMHuyjghie4NubPTnFXdge5bRX6SnAbuhp036LfX8iS/EzE4nJqUbzJybkjO73Ra8fGJzCEiVUPwIgl8UO48Snnkhqt5NJqlocl7ZoEC65ENevOCLm1VPL9yHS/12otr3s4XVTLkH4WkBfc2K4Gh3IqjwTYueZuK6fOQe9/f7029/3UqBp7mXX9QD6MgxUwjAbBYINC8xWrdtWJA44it3Y+wrJTt+a8o74StS08LZUtVD1Kf63VKSbDNRIcKdRnLq8L4nkkcpTGvyKiRqtoU4uodPeYXUJ/A8X51Nu+0FbagWXUemL1RB/fhHVwNLYTbQAqO9cbd7KbcSK3GHfOarFp1G0f+w3BeAaf81b/rCsenAGK7ejAr6oNr+aLV2h+v0H4kSnaazBXq5TBQ754H1Uaa/1EJ1uBOTdQDKaHr5aPUpFRINt7mx9B3ICrWud6ZP67oZ3u6fg0aFk3wE= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: e94eb804-44f6-4c70-cf06-08dd0ddd54c7 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Nov 2024 05:44:01.8591 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: iYBv2JwcyXhzzZelwEsskEmGuU9INJnldkPM2CsX6kjHPs5ODvK/ujON8XUw1wccHRBSh7fy0Un0dTbZb6DwTo841+Bj7eujvCU9AY4z5AL7lIoeCmEgRh+bcdkMQyF5 X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS3PR01MB5926 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241125_214407_314904_53D97E7C X-CRM114-Status: GOOD ( 13.41 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
gpu: drm: replace of_graph_get_next_endpoint()
|
expand
|
diff --git a/drivers/gpu/drm/drm_of.c b/drivers/gpu/drm/drm_of.c index 5c2abc9eca9c2..5530919e0ba05 100644 --- a/drivers/gpu/drm/drm_of.c +++ b/drivers/gpu/drm/drm_of.c @@ -564,6 +564,8 @@ EXPORT_SYMBOL_GPL(drm_of_get_data_lanes_count_ep); * Gets parent DSI bus for a DSI device controlled through a bus other * than MIPI-DCS (SPI, I2C, etc.) using the Device Tree. * + * This function assumes that the device's port@0 is the DSI input. + * * Returns pointer to mipi_dsi_host if successful, -EINVAL if the * request is unsupported, -EPROBE_DEFER if the DSI host is found but * not available, or -ENODEV otherwise. @@ -576,7 +578,7 @@ struct mipi_dsi_host *drm_of_get_dsi_bus(struct device *dev) /* * Get first endpoint child from device. */ - endpoint = of_graph_get_next_endpoint(dev->of_node, NULL); + endpoint = of_graph_get_endpoint_by_regs(dev->of_node, 0, -1); if (!endpoint) return ERR_PTR(-ENODEV);