From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=40.107.75.121 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796095482; b=uGprwHh5+lvdIRwPGo3FyWjFiuYtttif53DyGPfI3hGopUayDC96LBR8pIkuUFqM0czR mAZtXxmRwSIGG8FvkQMQ8uNuPL5BlxJjkomNpxIE7JVFsMv1AOYuSBlOFicxJvjBtWB1y VW1tYOgBsr0/7D11raiIGsZKTeY6fNH/deWUIfz1JNLhJNuQBEJ9yZj1AxqUjZwA4WM98 KRqU8yXwznGKNS+Aw5bG7ffDvA7wBmctiV8hc/HxBftMtgI/CP7M0NZBH0ULCmaEBQeGc puPRb2E6vdEyB7c5MKYqANFGJ0AF9tnmwtBTsa9MPx6AtJjZWmaMIefSQYOVI/TKCSw== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796095482; h=DMARC-Filter:Received:Received:X-MS-Exchange-Authentication-Results: Received-SPF:Received:Received:From:To:Cc:Subject:Date:Message-Id: X-Mailer:MIME-Version:Content-Transfer-Encoding: X-EOPAttributedMessage:X-MS-PublicTrafficType: X-MS-TrafficTypeDiagnostic:Content-Type: X-MS-Office365-Filtering-Correlation-Id:X-MS-Exchange-SenderADCheck: X-MS-Exchange-AntiSpam-Relay:X-Microsoft-Antispam: X-Microsoft-Antispam-Message-Info:X-Forefront-Antispam-Report: X-MS-Exchange-AntiSpam-MessageData-ChunkCount: X-MS-Exchange-AntiSpam-MessageData-0:X-OriginatorOrg: X-MS-Exchange-CrossTenant-OriginalArrivalTime: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-Id: X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: X-MS-Exchange-CrossTenant-AuthSource:X-MS-Exchange-CrossTenant-AuthAs: X-MS-Exchange-CrossTenant-FromEntityHeader: X-MS-Exchange-Transport-CrossTenantHeadersStamped; bh=lItaN3oOr/4bmBu55HvMExX6fQvhf70t2NUVpy8T2hg=; b=eAdnuIMW8JQfQxYnP2Ins0yR1AFl1KTiyhUIhsH+kl/ozentYWGMRPb0rk8Qo7p6jkjO 0bhvtmFOGKbw5PQForhZv6JaRaZs8MWdKD1ltjOgTXqn/4yf9gzxgNJEEhg/OYl2C480T Ec0lGpf8bHAFwunpIv5nlRHVoIG1cVP9E5fmVLWHz95oiEzVkqvSRm/DuDtBtBXVY6QSo BM4lteUtEbA1NGermXRX+E3kyy+jX3vWLI/T+z0Q+AXMIc2GLehIeeP7SSYSk0/yCcRX7 Vk2eoQ/QUAnkWFxntBXDSR0Ky0fmuVtEgTalZQAyL2Ux2BQZprkS9ZQtL8AAwN2QH9w== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none header.from=cixtech.com; spf=pass smtp.mailfrom=cixtech.com; arc=pass header.oldest-pass=0 smtp.remote-ip=40.107.75.121 Received: from OS8PR02CU002.outbound.protection.outlook.com (mail-japanwestazon11022121.outbound.protection.outlook.com [40.107.75.121]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (secp384r1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C874E606A325 for ; Tue, 1 Dec 2026 03:24:41 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org C874E606A325 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=cixtech.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=cixtech.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=CuuCG/wblMCwro/57DCPjum2r8Jkrjsm+dMHJw1Fs+016CHhjz4OOU3sv1aS6eeKu+gSKSkGJMNjFw2kWPtSR/Zd9hCDcuBx2tz2FQdQkqjfz+aTeNBKSRco7gfr39x083B1BjZWk2wuLwiM87THJs6QPGrsctGgKBMuKcTHnnB8BN0WPvOAQEq5aQl4lfC4+k57U2qx5qy0X7baJ6luOMGJeCdGhEHsjwSZsL+bn+rKxs/Indbna2eKFUUnEje8KexoUnjx1fP7Ih5/i+V91YWKabDUvZM1qp6F0vx2JZ2e/kRSQc16Bx99+aWHmbKGxG87hpJK8Z/bzSPJttvj4A== 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=lItaN3oOr/4bmBu55HvMExX6fQvhf70t2NUVpy8T2hg=; b=YYHMCUuDVkC00975Q9stFTnRlinfzp0DehKkfl7cEqVWeKhFcLO4lIkBEm13P2gX/u1CT5mnFdDnTy5QrqElDTSOQDVlgywOI4Ad1FmV4+cV9JkbR2fNoPKKe5TYfDJCNvyc/YohTPBC6kemdsFTmq7WnNwYvg4T+zW03qlMxIZvkCfkusLuRtaGF26WjGcMjTYPDLYNvKFIyMHfv431XzWcLHfq+EVvsiBovL/ck7qF53DtuXbh0rG8YdQzzh0bd4nYygva5nAif4opsP9l+XSuLQ195QmLjtPBBxTrulIfZDXI55U46S5lTmzuNr+ug90ByvMA8V9GQGmrqwhgVg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 222.71.101.198) smtp.rcpttodomain=arm.com smtp.mailfrom=cixtech.com; dmarc=bestguesspass action=none header.from=cixtech.com; dkim=none (message not signed); arc=none (0) Received: from SG2P153CA0007.APCP153.PROD.OUTLOOK.COM (2603:1096::17) by SEYPR06MB6615.apcprd06.prod.outlook.com (2603:1096:101:172::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.688.10; Tue, 1 Dec 2026 03:24:38 +0000 Received: from SG1PEPF000082E8.apcprd02.prod.outlook.com (2603:1096::cafe:0:0:6e) by SG2P153CA0007.outlook.office365.com (2603:1096::17) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.709.3 via Frontend Transport; Tue, 1 Dec 2026 03:24:37 +0000 X-MS-Exchange-Authentication-Results: mx.microsoft.com 1; spf=pass (sender IP is 222.71.101.198) smtp.mailfrom=cixtech.com; dkim=none (message not signed) header.d=none;dmarc=bestguesspass action=none header.from=cixtech.com; Received-SPF: Pass (protection.outlook.com: domain of cixtech.com designates 222.71.101.198 as permitted sender) receiver=protection.outlook.com; client-ip=222.71.101.198; helo=smtprelay.cixcomputing.com; pr=C Received: from smtprelay.cixcomputing.com (222.71.101.198) by SG1PEPF000082E8.mail.protection.outlook.com (10.167.240.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.688.5 via Frontend Transport; Tue, 1 Dec 2026 03:24:36 +0000 Received: from localhost.localdomain (unknown [172.16.66.33]) by smtprelay.cixcomputing.com (Postfix) with ESMTPSA id 00CEF427EFC0; Tue, 1 Dec 2026 11:24:36 +0800 (CST) From: Luo Liu To: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Liviu Dudau , Russell King , dri-devel@lists.freedesktop.org Cc: Ayan Halder , Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Kory Maincent , Luca Ceresoli , David Airlie , Simona Vetter , linux-kernel@vger.kernel.org, cix-kernel-upstream@cixtech.com, Wuyi.Shen@cixtech.com Subject: [PATCH v6 0/3] drm/komeda: use the bridge connector Date: Tue, 1 Dec 2026 11:24:32 +0800 Message-Id: <20261201032435.969586-1-Luo.Liu@cixtech.com> X-Mailer: git-send-email 2.25.1 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SG1PEPF000082E8:EE_|SEYPR06MB6615:EE_ Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 56aaf626-c34f-45b6-8419-08df4f5aa078 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|7416014|36860700016|23010399003|1800799024|82310400026|42112799006|261009220027099003|56012099006|10067099003|261021123027099003|261026140227099003|261028144727099003|261022105027099003|261009221727099003|261009221227099003|261009223027099003|261009223327099003|261026121527099003|261022075727099003|261102123227099003|261021121427099003|18002099003|6133799003; X-Microsoft-Antispam-Message-Info: uFnzleLRqXWjyg69OVOBFKrNOmdMG+1egnYwZC5z6NaDs+Y1NcT5dwmeuANfoDSjHw14AOq5EgcihkjQKE5BuysglJS1L0yXAAEeKkvLiZQ3FtfOYKaa3WOXhZXotmDVyHti3f2YkU2OWSIbZgR4NRGxyi89AF0iCe08hzzcOaoRFBEc9cuWK6Luh1XwxJdpKfKm3wIprpbTfDhYSRCp2UTSHAhSi+G0meQgVUqPwwSIZIddazkiZLfmCZdbKgN84yHpBZy/UPAwLXEXFrIGxUuO6aGvBxasOdIMjbDGP61Jbp5biRNM0lCr52RYB9zbo07rDkfMMjmJ8QSwaLCt02mFCtvlz/OpUk/t7neWSN/ZmCVX98TgOqyasaJdpT/PI57PU9YS51uRG2ETVN4UIbB+OZcm8iu6U22tVbOqAAkLjelgjo9foXYOon566AMqk7G5x1kWhExew2FQN7YIgdvH16D301JwwWufuFV4DXBGBoOe4bBaykfkhnkO4pazMIXpuCm7F//BgMABeiIfTnn90EhesAzWB5m8hXa1xKlG/8TUgfvHmQR4OmNQnLH7abkW/NraHdCtWvqjKlpsKMashdAvfpy8lmRv2chxGKrfPUr1K8yIYCQbuCUNQVgoaSbdMNHGlqPXvgEwy7dlsvhHGvWceP9nR0uRpYY30eCp2rOUaXBY6BdMAzMPiDdYbTdYWYEjOr9x1XjjZMkmzA== X-Forefront-Antispam-Report: CIP:222.71.101.198;CTRY:CN;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:smtprelay.cixcomputing.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(376014)(7416014)(36860700016)(23010399003)(1800799024)(82310400026)(42112799006)(261009220027099003)(56012099006)(10067099003)(261021123027099003)(261026140227099003)(261028144727099003)(261022105027099003)(261009221727099003)(261009221227099003)(261009223027099003)(261009223327099003)(261026121527099003)(261022075727099003)(261102123227099003)(261021121427099003)(18002099003)(6133799003);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: v0pwqCdZkgHJbgNpmK0IYwpqdV1gdxe4PHaw4szuYbr13drbswTYZMWugahn0OSWi0UQEiWJWGPwbE2Ub/F8pUz0vEobyrDmwj7ndcl93nsezASYgT0uCATNaHNitwWDqtShKrByqtIFDdpCVTUmlstLrpVxuBOErY0IZVlQFofhJtZM8vqVP61Mwd/qoz5otSTdvhQnn5xO+udZjTPxBzkaaXuqOIhNQB0wR2PbDmMcVlJBlN1XVb3dc/G2QTkTwYOLVrezDiWEhTPAJr339/AS1uEWfGHe1EDCEU7LaLTI6ukDbzSRyR8zqGzXORb0OamoJgKB/HHuEPxIAHoYUtVVl+SQgNjgfqcymeSQTe2b7XE6Y5ofzMMIVqHTzfqxT82gq7xMnKaVp1wu4BVKyCz29SfABhPtgnIVn7B0NQEx9B2WONWNiN2/maGWsBkx X-OriginatorOrg: cixtech.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Dec 2026 03:24:36.6148 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 56aaf626-c34f-45b6-8419-08df4f5aa078 X-MS-Exchange-CrossTenant-Id: 0409f77a-e53d-4d23-943e-ccade7cb4811 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=0409f77a-e53d-4d23-943e-ccade7cb4811;Ip=[222.71.101.198];Helo=[smtprelay.cixcomputing.com] X-MS-Exchange-CrossTenant-AuthSource: SG1PEPF000082E8.apcprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEYPR06MB6615 Bridges following the new DRM bridge model no longer create a connector themselves: the display driver has to attach them with DRM_BRIDGE_ATTACH_NO_CONNECTOR and create one connector for the whole chain with drm_bridge_connector_init(). drm_bridge_connector_init() creates the connector with drmm_connector_init(), which does not allow a ->destroy hook, so the mode configuration has to be released by DRM as well. The first patch switches komeda to drmm_mode_config_init() and adapts the private object cleanup to the new teardown order, as a preparation for the connector switch. The second patch converts komeda to the new model. The third patch frees the interrupt before the mode configuration and drm->dev_private are torn down, so the shared interrupt handler cannot dereference a cleared dev_private. Changes in v6: - Rebased on drm-misc/drm-misc-next. - Swapped the first two patches, so the drmm_mode_config_init() change comes first as a preparation for the connector switch. - Reworded the drmm_mode_config_init() changelog accordingly. Luo Liu (3): drm/komeda: Use drmm_mode_config_init() drm/komeda: Use the bridge connector drm/komeda: Free the IRQ before clearing dev_private drivers/gpu/drm/arm/display/Kconfig | 2 + .../gpu/drm/arm/display/komeda/komeda_crtc.c | 18 ++++++-- .../gpu/drm/arm/display/komeda/komeda_kms.c | 41 +++++++++++-------- .../gpu/drm/arm/display/komeda/komeda_kms.h | 2 +- .../arm/display/komeda/komeda_private_obj.c | 23 ++++++++--- 5 files changed, 61 insertions(+), 25 deletions(-) -- 2.25.1