From patchwork Thu Jul 20 07:09:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Ying X-Patchwork-Id: 13319884 Return-Path: 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 20D2BEB64DC for ; Thu, 20 Jul 2023 07:10:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:In-Reply-To:References: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=EZwxz6FdTzxZnf0YM07TUEI18BR1QOV0Ud1JKn997ik=; b=GZX/kCt6cIQ2bF cN8C2aWbXTrxL4zORevzRvPvrIsBTFBT5EE17/oTI+6hvXGL2DAjzSaggDpnxumyFRpOJdXTUM43n vfTELmfirOy6cZmaRm/JlVY/xk8PYQwC9Xpp+T43ckBKC44ACuMV/michc/pqbuzX7DhfwG/pvMSQ B/5RMYEQxhxM3jXwQrOv/eGfOzLdrgj89o3bDsIMLdS0Nqc43pNxVB6p/g6WJQsLtLgRkdMmoJeiy 9g0puBGx6WcvFcwnkvL2u//Q0pTitPu6Q5pIW25y3fTtg44oonA1xZD/dqT3cqoMGmzMsg1/90i7/ f2I8ekFjmct64dktGHeg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qMNnY-00A4DL-2I; Thu, 20 Jul 2023 07:10:04 +0000 Received: from mail-vi1eur04on0626.outbound.protection.outlook.com ([2a01:111:f400:fe0e::626] helo=EUR04-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qMNnR-00A48P-0N for linux-arm-kernel@lists.infradead.org; Thu, 20 Jul 2023 07:09:58 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Un8STEzpv7JxITnM54a5vIvcNe+NVRn8zsYzhb/e9sH0TZhLyW31wSHsdRCeFk58KUxx0LCg1afCNhD9jVBhtPYPhb+Q+z03xigamDSO9oeJrNW1i9iFZqQMhJnXKcetgNpK+31I40+Ox6GNj3oGsjA2zILvbanilX0CU9H/J0/A2CrG8t4+Jvg9Q1+NhI5O6Qc/ixGoxkNnPOfKV+6vjpfdP13MEP/Ro9NihahHhF8iRY9GVyxqEMyqbm6hirvElImqW8WKd6jZb8cGJFmtK+yA9khXgvnOj+aOb1iDTx5rM+MvI2ZnDSjo/vXEE4gYMnjhCQ+a//pXCFjU7I8iug== 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=R9q4GKRXA++y43AmVaL36Uoy7t2H7ScDYcW3i/rdTq8=; b=JmQtcY1HccAO6v/z17UKx/14CJLy0hq6gARVJcxQJsd828x25FiZb6EIZ8yStD0PupBospIY4F0lmNRkf2qkYqmtEOssz0uMlKbI2hhJ+7lrmz2P49RCzFhsHVHw3fsQx5TNyFygtkYHwQ+O73U/JI8ZrvV+bDIDAleIqPmsB/bn9oRMGJdoYlF2bXZH9EtM+1atysBPPcpjLy6YPDyOThWpeqNzz3HxPt3gpCfgFdF51RMWxocXfEOydlvC3FjJyBLqPXoNKB40/x1iXOH2b1NV/jzbRa7Tp758wGe5gY6cg3M/LzGgQwJXCjszBH/gRTWJeH8YufmGxO31TwXSmg== 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=R9q4GKRXA++y43AmVaL36Uoy7t2H7ScDYcW3i/rdTq8=; b=iTWyiX2llWH6Yw7RqgUBHSFVgsbyQir+R7BOJPTFv3IoY+XbwUfTl0eInTD1avr29LnuTfaP8mrsttVRoReSi13oQ7Tdts/vizWWeuWA2by3CDJsMvhYyKL5u8gMlm3MrZhN97CGzNRSBcfnX/a2XY5xk7RL17PSSExZHNSc8Rw= Received: from AM7PR04MB7046.eurprd04.prod.outlook.com (2603:10a6:20b:113::22) by AM9PR04MB8307.eurprd04.prod.outlook.com (2603:10a6:20b:3e6::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6609.24; Thu, 20 Jul 2023 07:09:54 +0000 Received: from AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::9018:e395:332c:e24b]) by AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::9018:e395:332c:e24b%4]) with mapi id 15.20.6609.022; Thu, 20 Jul 2023 07:09:54 +0000 From: Ying Liu To: "dri-devel@lists.freedesktop.org" , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" CC: "andrzej.hajda@intel.com" , "neil.armstrong@linaro.org" , "rfoss@kernel.org" , "Laurent.pinchart@ideasonboard.com" , "jonas@kwiboo.se" , "jernej.skrabec@gmail.com" , "airlied@gmail.com" , "daniel@ffwll.ch" , "robh+dt@kernel.org" , "krzysztof.kozlowski+dt@linaro.org" , "conor+dt@kernel.org" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , "festevam@gmail.com" , dl-linux-imx , "alexander.stein@ew.tq-group.com" , "sam@ravnborg.org" , "jagan@amarulasolutions.com" Subject: [PATCH v2 1/9] drm/bridge: synopsys: dw-mipi-dsi: Add dw_mipi_dsi_get_bridge() helper Thread-Topic: [PATCH v2 1/9] drm/bridge: synopsys: dw-mipi-dsi: Add dw_mipi_dsi_get_bridge() helper Thread-Index: Adm62S8M2gb4MN2eQEG+NSKpq9vOfA== Date: Thu, 20 Jul 2023 07:09:54 +0000 Message-ID: <20230720071430.259892-2-victor.liu@nxp.com> References: <20230720071430.259892-1-victor.liu@nxp.com> In-Reply-To: <20230720071430.259892-1-victor.liu@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: SI2PR01CA0039.apcprd01.prod.exchangelabs.com (2603:1096:4:193::16) To AM7PR04MB7046.eurprd04.prod.outlook.com (2603:10a6:20b:113::22) x-mailer: git-send-email 2.37.1 authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: AM7PR04MB7046:EE_|AM9PR04MB8307:EE_ x-ms-office365-filtering-correlation-id: 15184736-c12d-4b57-35c7-08db88f05199 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: z1I7xY1xTkIvq2HgUDfxeuIxvRAskDEWv0djrH9I4Umz8/rgLSY2Cvkh41G5lSyOTYF+lTCJ0RFnLDhASDWyHDSE9r+QmkxVkcATI5M4Y0ShwyF7UY+rWJHaJYbmJ2vj6Ol+Qv7MhuMp2WScLGUiGqoOWGqzK3anck9lWmRS7A2extyGGXsmdhENWH1GVc78bLuFGroWPJLgZ+zx068qSVabPCXrV3Vxh6aHMVSqsFAA0o7nscH2IBwdTHx41bUvlp39aCpdTBGoyVH2LR153AyZeXBSivrThyExCPM9/4nUcR/AYdaizDLXRpKoBv/zJXeg04enG75TE2qMZmcpPopf3s5AhDAYIGU2CgYpXMr1OT2jD9LfioD+Do/bFTBfkQ7/sAiAw95frKNd5DSV9tTkQrih5Q1Zud/FIBixEu31vhmJhS9fo/NiomjLZZo+iG+mXOuXXSrYYWz/oXdm9qWqCuz3os+e54vmUGa+BOwzwkKI8LkRneeV3Y8c8W+3bhUmMAe0SjaF8t+UB7TxxCIM/WKp9ArFqjsu/13/UIov3v4nkSUlK11aR4Gjwx12RYS28PkwINES/A3tNcTV4kUDl3dNC8I5+jsgvGImQ5JDeOZwQDtT70UoqkOg2nkh x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM7PR04MB7046.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(39860400002)(346002)(136003)(396003)(376002)(366004)(451199021)(86362001)(478600001)(1076003)(38100700002)(186003)(41300700001)(26005)(71200400001)(110136005)(54906003)(8936002)(8676002)(7416002)(316002)(2906002)(122000001)(4326008)(36756003)(6512007)(66556008)(64756008)(66946007)(6486002)(66476007)(66446008)(6506007)(2616005)(52116002)(38350700002)(5660300002);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?q?bTC29ulO2U7pe8naLby4aAS?= =?iso-8859-1?q?+42t0iQwYRGqsoAyRCte5mKdOwinOk5hoWksUPeTdiLhaJRpuou0DRGB2a+b?= =?iso-8859-1?q?0rp3HxZVgoTuCNZaOZMRX8vcmkUoHb82SWunrLvE98NDFvCtOSiSa38MA3Vu?= =?iso-8859-1?q?Qjg53T0227BC20Oqxv4ixLi04gMBVX3vA7SdH+KkJyaWSU8V0rwYg3dMYEDV?= =?iso-8859-1?q?1fVwDSfwhPl+61FLMH76loFF5EpGvwaN1wvsrHBLizHAGqNoVuHd47BZd5KN?= =?iso-8859-1?q?4dH15/md5z1J/88vOLyHcAN4KXxTfR+PWYJwwrI5teKssnWj2RhbW/PitpMV?= =?iso-8859-1?q?rniARymbzdb29XbiE3PumbxtsFaaD7ZmBu1RFSscCOh5xCsOBC5bfjQRvwaG?= =?iso-8859-1?q?70Fqn24OvqlEm1CbsStVTKcO/7r7eTbr/m8xGS77WRyqkttz5x04rovFfcgB?= =?iso-8859-1?q?xCo7STeFHEYd9pu6jfSFo4FqymlIbsr/f7eIckqmh6fkzB2lFd7sSEFZLQ51?= =?iso-8859-1?q?98MYT7iWJLv1NdRjEJ3ZVBPDLfl4RwtCjrT6LKIxyiG8VraciFAs4I/WRMNs?= =?iso-8859-1?q?3un5XCBdHXLFtZ3nEv38OlAE3BV1I41n3kS8/24vk+SSCz0DnOp2CNBCSG9a?= =?iso-8859-1?q?xkDrLewxtrHJEhbxFEAoRsiUZToQoj2vE/LezZVcywTWWZku+CHGpiiHt9QG?= =?iso-8859-1?q?d76I5LmRUFjG97suigcfVTK2oX12av/jOn1rtXEZn+CPExz1g9iW2pt2jF+t?= =?iso-8859-1?q?GGLf7YjqXmoLCqirjVmR1XVE4M9+Jpay0vihV/6HknHbADbepeUsD0d233Sy?= =?iso-8859-1?q?pwJp8PhXFMRerYdrHv43vT/TjhZue/cSRleh7E6H1ltZOC/tRLHv9dR3xee0?= =?iso-8859-1?q?5AkXs/+rSYrERTrBQKoPnVanc9KI5f/hQDe293CMEUNmMXq2g4bAz22Q8jvi?= =?iso-8859-1?q?NKDpJo6xJniaRi3FDk75Lxd5AkLUeKasjY4vATH1TnumU365MaEvbPwpjFe5?= =?iso-8859-1?q?42xQvQI4WHxClH4znH3OEspbTBQPi3BDkyLmaUVuRSGLqx35vcSQ7l9D1IR6?= =?iso-8859-1?q?n+P2JXluqSJhVWf8PO4A8Jnes4DFM6j6dh/N21Oe6qwW8FCLv19+u2vdSn/D?= =?iso-8859-1?q?n/25Rf9COSC/BhwnSW4eBC+V9SXh+QstakGKhQgmZ1Esc0OsyPuSY0eBcWJL?= =?iso-8859-1?q?28TSavGDmX23KVUwUuXG6eJb7YYG76jQL3FVba2yg++Pd6K+1CgKZ5eA9CDW?= =?iso-8859-1?q?dJ8+HbQ+zWkkkYbQHRE9ziBqL9oTCOESytbYPnb/zRFQR6UPzGKP09I2oC/2?= =?iso-8859-1?q?EN2OZbZwfcgNR3SB0Xh3VQ1g6w/KzNsTFVZd5N5RTDBlw4Cu3CcGYm1WUHIV?= =?iso-8859-1?q?jtEDAjNtzwenchPgRDXf/O5ew0DYxGmsIE8obdZt8BYhzdm2Henr86/WHht/?= =?iso-8859-1?q?6hgZ5pE7kWK3tHbSrphr2FGS7f3ICRAY7+xVR/GM9kALAzJVQdB6lkzin/Op?= =?iso-8859-1?q?ybIoc93IcpAxnllKZ6qDQgXqIqndDcjWzf850Y+HI6zop99U3cHjMsk+hFhk?= =?iso-8859-1?q?kVkeKpMdQuSVnXwfr0B3TSnH95mcfw3IiEPDGsWzcVce01EnEWMqJnKAbQOM?= =?iso-8859-1?q?pKaUxYCchI0h2q/ej?= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: AM7PR04MB7046.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 15184736-c12d-4b57-35c7-08db88f05199 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Jul 2023 07:09:54.5117 (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: 9kka767aDne/c9yyIqhsTjMwt7K3yUFApSWU6RR02zRacBSelxYq42Q5oTkeNkYB6VNU7825qNiZpeRnqG7pHw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8307 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230720_000957_156413_A8B8EFC6 X-CRM114-Status: GOOD ( 10.42 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add dw_mipi_dsi_get_bridge() helper so that it can be used by vendor drivers which implement vendor specific extensions to Synopsys DW MIPI DSI. Signed-off-by: Liu Ying --- v1->v2: * No change. drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c | 6 ++++++ include/drm/bridge/dw_mipi_dsi.h | 2 ++ 2 files changed, 8 insertions(+) diff --git a/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c b/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c index b2efecf7d160..57eae0fdd970 100644 --- a/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c +++ b/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c @@ -1207,6 +1207,12 @@ void dw_mipi_dsi_set_slave(struct dw_mipi_dsi *dsi, struct dw_mipi_dsi *slave) } EXPORT_SYMBOL_GPL(dw_mipi_dsi_set_slave); +struct drm_bridge *dw_mipi_dsi_get_bridge(struct dw_mipi_dsi *dsi) +{ + return &dsi->bridge; +} +EXPORT_SYMBOL_GPL(dw_mipi_dsi_get_bridge); + /* * Probe/remove API, used from platforms based on the DRM bridge API. */ diff --git a/include/drm/bridge/dw_mipi_dsi.h b/include/drm/bridge/dw_mipi_dsi.h index 5286a53a1875..f54621b17a69 100644 --- a/include/drm/bridge/dw_mipi_dsi.h +++ b/include/drm/bridge/dw_mipi_dsi.h @@ -11,6 +11,7 @@ #include +#include #include struct drm_display_mode; @@ -68,5 +69,6 @@ void dw_mipi_dsi_remove(struct dw_mipi_dsi *dsi); int dw_mipi_dsi_bind(struct dw_mipi_dsi *dsi, struct drm_encoder *encoder); void dw_mipi_dsi_unbind(struct dw_mipi_dsi *dsi); void dw_mipi_dsi_set_slave(struct dw_mipi_dsi *dsi, struct dw_mipi_dsi *slave); +struct drm_bridge *dw_mipi_dsi_get_bridge(struct dw_mipi_dsi *dsi); #endif /* __DW_MIPI_DSI__ */