From patchwork Tue Dec 24 17:34:17 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mihail Atanassov X-Patchwork-Id: 11310073 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D13036C1 for ; Wed, 25 Dec 2019 10:19:42 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 AE95F2073B for ; Wed, 25 Dec 2019 10:19:42 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=armh.onmicrosoft.com header.i=@armh.onmicrosoft.com header.b="2BEAS5H5"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=armh.onmicrosoft.com header.i=@armh.onmicrosoft.com header.b="2BEAS5H5" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AE95F2073B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id ED4C989F2A; Wed, 25 Dec 2019 10:19:20 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40083.outbound.protection.outlook.com [40.107.4.83]) by gabe.freedesktop.org (Postfix) with ESMTPS id A4CF389E39; Tue, 24 Dec 2019 17:36:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=UWvJevW4xRToyZQGigK+R8NypYOG19jLBIcxe/VCxDY=; b=2BEAS5H5+Ej5RjwcSYQYnNdfCouOCVr6PZkZ8OWtBfl/7GePPdkAkU8trQIkAqI3f8y8lIDQlP0N9CqATf+wkxfDWjPos6FX+zZ6bhgnnVy4OQS/nXzs/LCffER4U39ROeFBIjykGUsephUyfBK3ySegsc/qxiHONyd7ayvzb50= Received: from VI1PR0802CA0029.eurprd08.prod.outlook.com (2603:10a6:800:a9::15) by AM4PR08MB2644.eurprd08.prod.outlook.com (2603:10a6:205:c::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2581.11; Tue, 24 Dec 2019 17:36:44 +0000 Received: from AM5EUR03FT011.eop-EUR03.prod.protection.outlook.com (2a01:111:f400:7e08::204) by VI1PR0802CA0029.outlook.office365.com (2603:10a6:800:a9::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2559.14 via Frontend Transport; Tue, 24 Dec 2019 17:36:44 +0000 Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; lists.freedesktop.org; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;lists.freedesktop.org; dmarc=bestguesspass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM5EUR03FT011.mail.protection.outlook.com (10.152.16.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2559.14 via Frontend Transport; Tue, 24 Dec 2019 17:36:44 +0000 Received: ("Tessian outbound e09e55c05044:v40"); Tue, 24 Dec 2019 17:36:43 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: e233a8ff672766e4 X-CR-MTA-TID: 64aa7808 Received: from df58a739e11a.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 304581A2-2F56-4A1F-84E8-EAF1F21F7C60.1; Tue, 24 Dec 2019 17:34:21 +0000 Received: from EUR01-VE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id df58a739e11a.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 24 Dec 2019 17:34:21 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=U8VA9gifruGxHBkDiKih9yj2ORXS5HorrYfs/nA61CHix36rT5XIWT4vlx/PvqShBt4q9Le1mIp7e/Wx3VvfnZd/b2wqUQfVg379fmcOV0T4v7Jr4yZgPu9dIje2hzBjvcionh35OwX0XbqKeZyqcsGSP/GSL3dFPG2hn7OW13QxJErIfHdz+RkUyjLR0Ay0STIOxoeK8tqOsrIKOjpE4LKq8NGcTjIz3Pz8ucmN6dZTV0RLyZL5jmt7+p7QIl0YLTQZT+0uqo3KDWnCWPfOQ+d9wzjlSaZNmw/Tm1gjb3fLWpbV/pZ6Mf04AMUt1acUeEaXqNcNCQzX1xg+9uddGA== 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=UWvJevW4xRToyZQGigK+R8NypYOG19jLBIcxe/VCxDY=; b=CZOFSxCdOaBG57IQ1ITwIFNSUru1dZHr54t7ShRsdQVlQ6q0pZTmKMlsKaTx+3cTX5svtWsA2FRI/f4kjR6PRgPOoYAqg513TS9qlqDml3WJiKjoakunBX593Cjr3BXzYTeUDFMLSLAqdH4DfvFPQ71CEhgGvvV4gbtWCz9qDmV6JalB2mC3YXAWsShDkTSNapHJt9eBCxiF6CWNCZGiA4Kyte8GkFZJbSjrBPLVhwnS1CLHZLgXGozixDYviXWlDPnmz8r7KX16zGtFadR6R1nCh6IArjeCzJE1upaznQlQYFfCb733S5RfcA1Hi6rncIdATAh2kEvfHOBrWdPtnA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=UWvJevW4xRToyZQGigK+R8NypYOG19jLBIcxe/VCxDY=; b=2BEAS5H5+Ej5RjwcSYQYnNdfCouOCVr6PZkZ8OWtBfl/7GePPdkAkU8trQIkAqI3f8y8lIDQlP0N9CqATf+wkxfDWjPos6FX+zZ6bhgnnVy4OQS/nXzs/LCffER4U39ROeFBIjykGUsephUyfBK3ySegsc/qxiHONyd7ayvzb50= Received: from VI1PR08MB4078.eurprd08.prod.outlook.com (20.178.127.92) by VI1PR08MB2702.eurprd08.prod.outlook.com (10.170.239.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2559.14; Tue, 24 Dec 2019 17:34:18 +0000 Received: from VI1PR08MB4078.eurprd08.prod.outlook.com ([fe80::3d0a:7cde:7f1f:fe7c]) by VI1PR08MB4078.eurprd08.prod.outlook.com ([fe80::3d0a:7cde:7f1f:fe7c%7]) with mapi id 15.20.2559.017; Tue, 24 Dec 2019 17:34:18 +0000 From: Mihail Atanassov To: "dri-devel@lists.freedesktop.org" Subject: [PATCH v3 00/35] drm/bridge: Consolidate initialization Thread-Topic: [PATCH v3 00/35] drm/bridge: Consolidate initialization Thread-Index: AQHVuoBd9M/nIZUWsU+Eo17ASMPFrw== Date: Tue, 24 Dec 2019 17:34:17 +0000 Message-ID: <20191224173408.25624-1-mihail.atanassov@arm.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [217.140.106.53] x-clientproxiedby: LNXP123CA0023.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:d2::35) To VI1PR08MB4078.eurprd08.prod.outlook.com (2603:10a6:803:e5::28) x-mailer: git-send-email 2.24.0 Authentication-Results-Original: spf=none (sender IP is ) smtp.mailfrom=Mihail.Atanassov@arm.com; x-ms-exchange-messagesentrepresentingtype: 1 x-ms-publictraffictype: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: d93d152f-f2c3-424c-8483-08d78897d7fe X-MS-TrafficTypeDiagnostic: VI1PR08MB2702:|VI1PR08MB2702:|AM4PR08MB2644: x-ms-exchange-transport-forked: True X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true x-ms-oob-tlc-oobclassifiers: OLM:182;OLM:182; x-forefront-prvs: 0261CCEEDF X-Forefront-Antispam-Report-Untrusted: SFV:NSPM; SFS:(10009020)(4636009)(346002)(376002)(136003)(366004)(396003)(39860400002)(53754006)(189003)(199004)(81156014)(8676002)(478600001)(36756003)(4326008)(8936002)(66446008)(64756008)(66946007)(66476007)(66556008)(26005)(7416002)(186003)(44832011)(6506007)(7406005)(2616005)(81166006)(71200400001)(316002)(2906002)(1076003)(6512007)(54906003)(6916009)(6486002)(86362001)(5660300002)(52116002); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR08MB2702; H:VI1PR08MB4078.eurprd08.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts) X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: Gb7NFTsHGBhDbgR2I/htyd9tebpsIWIpCB+qvmXhXnJ+Du19QU6xOKxhhbbaNYB94gaPiVr0IF9b+K3eDqkUel9rn3qviyF4VDitMqtMM/9+w4FXGm2GFbWzwPyKaJ6h2RyTHglI97QA650colcRFnLiAe4UHEM30RWRVm5QERysHbtuDqPntsZ7XizkECBI66DX3SPYs2kbEVCHvJdR7XjpQbO5kbTFzii5jkUsxA18mQTqYed9noqJbfIlXBzCIRXv75G6eJ8YFFRicytpd8K7r0200q7Cmj5bXAS7NcKjo5P9757jaqz3EfWFECzdL/xs6N/9ARblVInHajEnmrMpeB3STmsct1ULKKOh1Azz15MxRu7CxDZe+1NarVXimtTBmOSbrFaksF9Q8G33TeNrWo4LJeEq6ZnRhDNZti52A8+Xf+snmOzd+3NEezm4+zF6FOAMeh4nLkBvQZzhx4muN/DR4BBxazWT2916gXeg7w5g9C6U2gcL0AcfDeGM MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB2702 Original-Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Mihail.Atanassov@arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM5EUR03FT011.eop-EUR03.prod.protection.outlook.com X-Forefront-Antispam-Report: CIP:63.35.35.123; IPV:CAL; SCL:-1; CTRY:IE; EFV:NLI; SFV:NSPM; SFS:(10009020)(4636009)(39860400002)(396003)(376002)(346002)(136003)(53754006)(199004)(189003)(36906005)(316002)(336012)(5660300002)(2906002)(76130400001)(2616005)(54906003)(4326008)(450100002)(107886003)(26826003)(81156014)(26005)(81166006)(6512007)(8936002)(36756003)(6486002)(70206006)(70586007)(356004)(86362001)(6916009)(6506007)(8676002)(1076003)(478600001)(186003); DIR:OUT; SFP:1101; SCL:1; SRVR:AM4PR08MB2644; H:64aa7808-outbound-1.mta.getcheckrecipient.com; FPR:; SPF:Pass; LANG:en; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; A:1; MX:1; X-MS-Office365-Filtering-Correlation-Id-Prvs: d70dcff6-a071-4c2b-18fa-08d788978063 NoDisclaimer: True X-Forefront-PRVS: 0261CCEEDF X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 5wd3wpiWqCRW7jB2jExmqvb7AnVlljepNfBHyJBBn2nHWueI+seihYV7gu/oRlsJo3145JcHn70eYMTAnqOZentE3bwPnfMDR7PIyxddlheEstVx0qvTNlH14bswRhfxRjO7goFVVlb6RjL2CY1nKWNzDJBbY96xe2+AUZAOJ5zHqUdPy9ztIbte5f3cwWBvMQ8tJGxGiXC4SsQanC27tqUrcKfOejj/QcuReJ1FMeNFnWdzZeG7kkDd/9RHlm3DYSkA6hhsqcawcyg+BtLTwldjzSGOCJWNq+dHguDcboOxMuU79B3NKuwDmiEn1Y0LzpWkAW7bwB9tCrVCbsLYlI9cRTP5aQexv3vnjZ2aCGGsqG9XAReBrWJqPBcJM+63uZZHYeTFAKNqRvgwapUxb09fwfDmQ/Vil+7C4Ff6bGlPpEg8d5Wsx6SSfw94u4jSulkQRt2T6fe+4QaTzQnvRFh05voj8QnB7oEYWIAeUiW0fXTP4gNrYRqV7H8xB31O X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Dec 2019 17:36:44.0464 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d93d152f-f2c3-424c-8483-08d78897d7fe X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR08MB2644 X-Mailman-Approved-At: Wed, 25 Dec 2019 10:19:18 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Martyn Welch , Neil Armstrong , David Airlie , Peter Senna Tschudin , Laurent Pinchart , Mihail Atanassov , Sam Ravnborg , "linux-samsung-soc@vger.kernel.org" , Vincent Abriou , Russell King , Krzysztof Kozlowski , Kukjin Kim , Thomas Zimmermann , "linux-arm-msm@vger.kernel.org" , "linux-mediatek@lists.infradead.org" , Matthias Brugger , nd , Sean Paul , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "linux-renesas-soc@vger.kernel.org" , "freedreno@lists.freedesktop.org" Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Hi all, Version 3 of my drm_bridge_init() series here. The biggest change from the previous version is the removal of drm_bridge->dev (1/35) and the removal of ->driver_private (2-7/35). The rest of the patches are mostly the same, save for dropping the driver_private argument from drm_bridge_init(). v3: - remove drm_bridge->dev (Thomas) - convert ->driver_private users to container_of() (Laurent) - remove drm_bridge->driver_private (Laurent) - remove driver_private argument from drm_bridge_init() (Laurent) - clean up the wording on some comments (Laurent) - pass the correct struct device to drm_bridge_init in analogix (Laurent) - I've kept the rcar-du patches separate but changed their order; this should make it easier to take only one part of the series if needed v2: - expanded commit messages and added some extra bridge-related documentation (Daniel) - dropped v1 patches 29 and 30: 29 needs more work, and 30 depends on it - added all remaining drm_bridge implementers, found by searching for drm_bridge_funcs which is mandatory for any bridge; new uses in patches 3, 27, and 28 (Sam) - due to the above, I've decided to squash all analogix changes into one patch Mihail Atanassov (35): drm: Remove drm_bridge->dev drm/bridge: analogix_dp: Stop using drm_bridge->driver_private drm/bridge/synopsys: Stop using drm_bridge->driver_private drm/bridge: thc63lvd1024: Don't set drm_bridge->driver_private drm/exynos: mic: Stop using drm_bridge->driver_private drm: rcar-du: lvds: Don't set drm_bridge->driver_private drm/sti: Stop using drm_bridge->driver_private drm: Remove drm_bridge->driver_private drm: Introduce drm_bridge_init() drm/bridge: adv7511: Use drm_bridge_init() drm/bridge/analogix: Use drm_bridge_init() drm/bridge: cdns: Use drm_bridge_init() drm/bridge: dumb-vga-dac: Use drm_bridge_init() drm/bridge: lvds-codec: Use drm_bridge_init() drm/bridge: megachips-stdpxxxx-ge-b850v3-fw: Use drm_bridge_init() drm/bridge: nxp-ptn3460: Use drm_bridge_init() drm/bridge: panel: Use drm_bridge_init() drm/bridge: ps8622: Use drm_bridge_init() drm/bridge: sii902x: Use drm_bridge_init() drm/bridge: sii9234: Use drm_bridge_init() drm/bridge: sil_sii8620: Use drm_bridge_init() drm/bridge: dw-hdmi: Use drm_bridge_init() drm/bridge/synopsys: dsi: Use drm_bridge_init() drm/bridge: tc358764: Use drm_bridge_init() drm/bridge: tc358767: Use drm_bridge_init() drm/bridge: thc63: Use drm_bridge_init() drm/bridge: ti-sn65dsi86: Use drm_bridge_init() drm/bridge: ti-tfp410: Use drm_bridge_init() drm/exynos: mic: Use drm_bridge_init() drm/i2c: tda998x: Use drm_bridge_init() drm/mcde: dsi: Use drm_bridge_init() drm/mediatek: hdmi: Use drm_bridge_init() drm: rcar-du: lvds: Use drm_bridge_init() drm/sti: Use drm_bridge_init() drm/msm: Use drm_bridge_init() drivers/gpu/drm/bridge/adv7511/adv7511_drv.c | 6 +-- .../drm/bridge/analogix/analogix-anx6345.c | 7 ++-- .../drm/bridge/analogix/analogix-anx78xx.c | 10 ++--- .../drm/bridge/analogix/analogix_dp_core.c | 42 +++++++------------ .../drm/bridge/analogix/analogix_dp_core.h | 8 +++- drivers/gpu/drm/bridge/cdns-dsi.c | 6 +-- drivers/gpu/drm/bridge/dumb-vga-dac.c | 8 ++-- drivers/gpu/drm/bridge/lvds-codec.c | 8 ++-- .../bridge/megachips-stdpxxxx-ge-b850v3-fw.c | 6 +-- drivers/gpu/drm/bridge/nxp-ptn3460.c | 5 +-- drivers/gpu/drm/bridge/panel.c | 9 ++-- drivers/gpu/drm/bridge/parade-ps8622.c | 5 +-- drivers/gpu/drm/bridge/sii902x.c | 11 +++-- drivers/gpu/drm/bridge/sii9234.c | 3 +- drivers/gpu/drm/bridge/sil-sii8620.c | 3 +- drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 26 ++++++------ drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c | 7 +--- drivers/gpu/drm/bridge/tc358764.c | 8 ++-- drivers/gpu/drm/bridge/tc358767.c | 9 ++-- drivers/gpu/drm/bridge/thc63lvd1024.c | 7 +--- drivers/gpu/drm/bridge/ti-sn65dsi86.c | 7 ++-- drivers/gpu/drm/bridge/ti-tfp410.c | 10 ++--- drivers/gpu/drm/drm_bridge.c | 40 +++++++++++++++--- drivers/gpu/drm/exynos/exynos_drm_mic.c | 16 +++---- drivers/gpu/drm/i2c/tda998x_drv.c | 8 +--- drivers/gpu/drm/mcde/mcde_dsi.c | 5 +-- drivers/gpu/drm/mediatek/mtk_hdmi.c | 4 +- drivers/gpu/drm/msm/dsi/dsi_manager.c | 3 +- drivers/gpu/drm/msm/edp/edp_bridge.c | 5 +-- drivers/gpu/drm/msm/hdmi/hdmi_bridge.c | 7 ++-- drivers/gpu/drm/rcar-du/rcar_lvds.c | 7 ++-- drivers/gpu/drm/sti/sti_dvo.c | 23 ++++------ drivers/gpu/drm/sti/sti_hda.c | 19 ++++----- drivers/gpu/drm/sti/sti_hdmi.c | 15 +++---- drivers/gpu/drm/sti/sti_hdmi.h | 5 +++ include/drm/drm_bridge.h | 16 +++++-- 36 files changed, 181 insertions(+), 203 deletions(-)