From patchwork Mon Aug 7 05:26:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Ying X-Patchwork-Id: 13343012 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 3D207C001DB for ; Mon, 7 Aug 2023 05:22:35 +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:References:In-Reply-To: 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=gCxZW2w8y0H904RaatUGAidPB3KqdVx95DSyH2IKhYk=; b=QzqEpsctjiOF3b zgKVatNt0lpqwC4BWR7e44g+ZNYFZXH1cxIr6XF/U4XdPLXyVsQnGxK/tLZDUN0Q2g9By5Udl/uY7 OTOzK5JGK3m5ZVjvJUT0zsSMZtqtb9/R2jyr4AuBpZd9mNIO+uCqz4kmXyIhHSlpQXRMP6HqyJJdd eHzRgp99VJsWdkhZl1lwr8HOx12QkR42wu4IYkRZEXNBNDTCKzeq/aXvnrYLKha0zRZWJrgRZaclO 9/u5sLSxmGenQ2Pxt/fWJv5mZlNh+G0M51ODcVj2H7hlNDBh58yPmdss8Pp1kv8wZJiecNlV1xoW3 RUucLGhPR2Xg5VxebqAQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qSsgx-00GAPZ-2E; Mon, 07 Aug 2023 05:22:07 +0000 Received: from mail-am7eur03on2062a.outbound.protection.outlook.com ([2a01:111:f400:7eaf::62a] helo=EUR03-AM7-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qSsgs-00GANS-35 for linux-arm-kernel@lists.infradead.org; Mon, 07 Aug 2023 05:22:04 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lvTTa+zX9tfe56DrN/m+MulsmijvYELybUZ9t+O/TjvMNBH/jE6wfGxoCzoUI2U7EVVxaJjlGL3YwQSlW7JOM/0S2dacf38rQ+q0EgbR1N3XhWZ1LQH88CsVGEqeJkw0YCiYWDxL89FbopjxHzehXlKK2aNfdwNRphdlJACMd+oMK5iNN278o0zPvZ2YjK3P8beZEJt6iw59ub0mIidrbqYdXArrMJj3ewaPvOQM/BRp9rbiGhyDgNoOmVvCMzm195jCm+t/G0iqrb5dO50v10DMz+JxPUyzqjIEkAuLCijsErU3DPoN7MtjI5iCsYCmrDv8nz+MKHAdkWiMFH3NGA== 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=93iqaxoeIJuj76eeG1mP//vckwfywbOO/6nfKqCD5qo=; b=MFFR8yge2cmGIqvrJYCq8YPa+JWrY2VWXdGgUwEG7cORZPBxcVju/1H03F9fybceAQgGDB1+gBE+a8v4uDii9gRWuvaNsURRwmW2AxNRc310vza/zSUaKKEwiIxSRFlI4AfL554pAzPdWMm2B4OB7S+kV8tZwBfw/V2YQn8sUmPpP7/8QJ6gMlLMvvkpCala9dvzkhfy4yUr35j6plBtIex4Nv+aNWhNuE9o2Kzuk5GqCqn0hBqqG4zv4xEBAMdWxxJrzcMUIJptqLvqAWoZLXmFu6i7MIqN0ioZ/uY+VjE/07S8VwxcC0UxmzithhPawPD4nMSaFfe1Ex/T59IjhA== 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=93iqaxoeIJuj76eeG1mP//vckwfywbOO/6nfKqCD5qo=; b=YNMM4g/EjLBOKUtG0HLnzLyLGX3IhsHUZXdegTy9dunkxAhkuizFfTUcyJHkGtsKkW02LoIVV23TuWNdD4W3ravECHF43vEfEIGqjP2LuSpTKW11aU6KuSMlkyUn7jQGOAQLEpI2M0quFPyTCkXicZV+cuTC13eHWWeL1UT6wAQ= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM7PR04MB7046.eurprd04.prod.outlook.com (2603:10a6:20b:113::22) by PA4PR04MB9390.eurprd04.prod.outlook.com (2603:10a6:102:2a9::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6652.25; Mon, 7 Aug 2023 05:21:53 +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.6652.026; Mon, 7 Aug 2023 05:21:53 +0000 From: Liu Ying 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, linux-imx@nxp.com, alexander.stein@ew.tq-group.com, sam@ravnborg.org, jagan@amarulasolutions.com, yannick.fertre@foss.st.com, raphael.gallais-pou@foss.st.com, philippe.cornu@foss.st.com, hjc@rock-chips.com, heiko@sntech.de, zyw@rock-chips.com Subject: [PATCH v3 1/9] drm/bridge: synopsys: dw-mipi-dsi: Add dw_mipi_dsi_get_bridge() helper Date: Mon, 7 Aug 2023 13:26:00 +0800 Message-Id: <20230807052608.3038698-2-victor.liu@nxp.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20230807052608.3038698-1-victor.liu@nxp.com> References: <20230807052608.3038698-1-victor.liu@nxp.com> X-ClientProxiedBy: SI2PR01CA0006.apcprd01.prod.exchangelabs.com (2603:1096:4:191::14) To AM7PR04MB7046.eurprd04.prod.outlook.com (2603:10a6:20b:113::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM7PR04MB7046:EE_|PA4PR04MB9390:EE_ X-MS-Office365-Filtering-Correlation-Id: 98fa495e-4c4c-41bc-e3ae-08db970635bf X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: f04FEjL7YgatDMtlLOkakGByCqWAVoC5wHntXwg2uu5MSeZk2JnfxQB8JhkIskTHkUwwfsdesEs4uiDEY2n8zvEc5bpXYwXD3oF+9SxM+PpGkVuUfvWb1US7k5wDgglbrtvAnPR4xxUB0PN1kdBINEZWaS27fygX4fWRXbLiHb9jClBtkZiyb7rVtFrL7klNhJAFQidAS+nJMD33iyBqVNhjlljP5Ti+FlRte9FxeH9sYXbvqquXIsPpwx4YiyQPbbmokvNaMYtTI1qWF625pPpcj3UCx+pMUGmTseM9wPRhRxD+e+62PLJ/EX8g9s9esTDsl0KTpKBr5nff+Re6C23406fzcH5Cosxm4k64/klNHwqVoIQUBroXj6gsp1VErNa/3ImyHOMVwSYHVP9a7P3szEMIqWL+5qru1OmIF6SOwP7ZHAMCMFmWpvG9PDx9h0R5Sju4nbhTWikVVvUB+NyqSsRJqdLzPWi8SPpCN7G+WLSPH04Lo6IFQbf9f/8F8xNJVMGMzx+XX5WAqyinSHCtTkQ7ze+eF7qw8z8J0uIvRVhOcjc8XTBrt31HX4cN7+WzCt8wxW4oBDO91gf2mxkkZsV0LW/JIOGHEzgQWQvcBjsWDyGi92qp/YpjH48s 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)(136003)(39860400002)(376002)(366004)(396003)(346002)(451199021)(1800799003)(186006)(2616005)(6486002)(52116002)(6666004)(6512007)(478600001)(86362001)(26005)(36756003)(1076003)(6506007)(41300700001)(316002)(8936002)(5660300002)(8676002)(7416002)(38350700002)(4326008)(2906002)(66946007)(66556008)(66476007)(38100700002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: krDEPvXz623h6E/FN3S0DOkuFBUMum4K+6W9roK551JDokenrMcji/2L501KhiL0r/u+8OPWexX2lw4ffKJfbbO/qInzZuXDasaz+DTmWM5LUs9Rk0XwnTJ+5l8tMLYDGVwKxDVaUQdpjc7gc4MiDyZfWjuT7Kvo3VvuL71wDwgNRqrDFpAS+KDsp9pm+VkymNlyMC2aHoKb3Dcl49XqSvvGYWKs6ECX8jF0/RXA4dobiKxHTvdPdRqVEeyEEmTeMayomkPDD7v5FfaMbX3jkRdA7F8LO9PkvmFCMnGUCTX27hWys6JrZ6SmBQkzkuoxk31CnlxovRKPaIQLbYO29/nX4YGN6swseZ+Fmp2PQsY5f8u2nlGKkK5J1CdwtXUJmpFhWXL9SNzU25Q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iFD8sxC0sCrTtn5xAFx/NwBRTJmPOdSNjfz33cy4QFgjnzsEMs6qEp2ZrbecT4wqddpYSwXqAcTwvGFgAbJCsIK0XJUcqvox4j7aGoHCG6GnZtwwJUPKGOT X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 98fa495e-4c4c-41bc-e3ae-08db970635bf X-MS-Exchange-CrossTenant-AuthSource: AM7PR04MB7046.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Aug 2023 05:21:53.2366 (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: c0urueyl7BAYnGs3lyAZNcdds72SreU3OwsKHtDvutOHiN6rxpO/MfRtW4AHz6W+yOIKTMXACq/4tpdLxx4NUA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB9390 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230806_222202_994834_BD74E8C8 X-CRM114-Status: GOOD ( 10.13 ) 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->v3: * 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__ */