From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A73A8606A32E for ; Tue, 1 Dec 2026 09:24:44 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 35B9510F6C4; Tue, 1 Dec 2026 09:24:43 +0000 (UTC) Received: from SEYPR02CU001.outbound.protection.outlook.com (mail-koreacentralazon11023122.outbound.protection.outlook.com [40.107.44.122]) by gabe.freedesktop.org (Postfix) with ESMTPS id B45A210F6CD for ; Tue, 1 Dec 2026 09:24:41 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=BZAZhT+RiwZWNZuO9wg1JRx74q3uH+wAzlyazPTCCZrsvY3PgxZ+x6p4KgbZkhNbGWhCouuFQyLI/YpCAlyoZUkzi8r34WJeBNSgkjZ4VSWNuS/K+YIZdHLcqnd5/S6FgFWZFqy4pMTQgTPxZhf1pBEW7GdJZN0VqsPxO5LwJsksqAzQE2iaBSEhN8bgSKgWG9m62+axfe7U0zEl1IHEjQ6M1ugA6pSLNF+LXtTPiNC9agt6bIFMV2CiaoCuusqcEmIZ+TcIny+GGEF/zRzL5yrI6MNh8KhqcLPDet0llJvq3nwkDRCGNo0c2cL4AUleNqpoYF6ZwgKZHmN3hdx/4A== 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=kugYziJQbPUq/Ezb/MakrkKD+sBvGgBRMPhpAGMNK5c=; b=TpHzjVz+U/Dn47K7J0D/kCKRWo6qYwYpRqZFetcRdJ9t/56cuy4XNBpRRX5OJILk9LhCbjoN0IE9pzXyvpTZswID9dsIJYqXODfncnQZXvUn7QUAFoRiO68jwuEKg2ONhFG81gBQRqr5Ft0/er1rsFMgH/Qh4HVRQhdaHWWxvy/yyaaUS27QbeWBRe+Mhypbv3+zqsLsNbb1JHRm6nqpbirjtxwqQcdGUrlg7sfXjGc+lQ4vOzdY4VBNDdtdTRei0dPj72aiOf6N8OoQQPxU7MJY/gndiQAXB+vZOA3AIaele4Qosr1VYE8S1Nb9jtrc5BQEjzQbpmwmY1L76TCLQw== 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 PS2PR03CA0011.apcprd03.prod.outlook.com (2603:1096:300:5b::23) by TY0PR06MB4984.apcprd06.prod.outlook.com (2603:1096:400:1ac::13) 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 09:24:35 +0000 Received: from OSA0EPF000000C8.apcprd02.prod.outlook.com (2603:1096:300:5b:cafe::51) by PS2PR03CA0011.outlook.office365.com (2603:1096:300:5b::23) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.688.10 via Frontend Transport; Tue, 1 Dec 2026 09:24:34 +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 OSA0EPF000000C8.mail.protection.outlook.com (10.167.240.54) 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 09:24:33 +0000 Received: from localhost.localdomain (unknown [172.16.66.33]) by smtprelay.cixcomputing.com (Postfix) with ESMTPSA id A941E427EFC0; Tue, 1 Dec 2026 17:24:32 +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 v7 0/4] drm/komeda: use the bridge connector Date: Tue, 1 Dec 2026 17:24:28 +0800 Message-Id: <20261201092432.387696-1-Luo.Liu@cixtech.com> X-Mailer: git-send-email 2.25.1 X-Archived-By: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: OSA0EPF000000C8:EE_|TY0PR06MB4984:EE_ Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 936336b5-80bb-463f-0b20-08df4f8ce93f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|42112799006|82310400026|7416014|376014|36860700016|1800799024|23010399003|6133799003|261009223027099003|261009221227099003|261009223327099003|261009220027099003|261009221727099003|18002099003|56012099006|261102123227099003|261021123027099003|261028144727099003|261021121427099003|10067099003|261022105027099003|261026121527099003|261026140227099003|261022075727099003; X-Microsoft-Antispam-Message-Info: OisXhJ2Msg26etXOZAlAP+W8d74XZ7dkDrfrm8klUgThSULC9eTgMdqew88cmobJ0f749+/FUjyLBSIkfaXoMh3eQzbZfatQWRN9mMaGm55d4inA3RN1CLFp21bgV8IP4653KMOnyHPZwlNDyzTKZDDEixK7sC8tG9CsGbeCzF6Xydp8/qryjtCnEfEkQvOvp824yoUmHg8HrYImNK6Sny5Lg7EzwnUqPK3pfHzlY4EMcQa7tAio0od/zH8cq6+/CNG9cH7PRuVU51VzZ6UDIEtkw4yKCEl+9L2nCRfaSnQOsFozdX56TehZSdVjSksdZBcIWciXCjy9YsQH5STFCUAvNiDwCaNC/exSxru4KaQAGUgjKAPv1EBajgB4fF4WJHMnEZ6pExSu+tU2FfrqfmE48bJDG333NmJO1iv2KwP03Fr5Zw40m/Lp/C56988pMY7v9Oc0lDx826FW2xRIkUEqfuitse++za3SSQSF6mUoj4b0zTIL1KrBwIEsbgOive/JlNLVS+XzVBTgeuOF9n5ZYn1SdOKjWa8O3QKsWbim79K+vqQHtBMGqquADRWDvbtmnNSColH01IQ2t9evLf5X2IElUQz2RVXWhiaEG619tK3dPjIsGOfXG3mq4fbXixJaVSnP+2ne/DF2fa90Q2dTVYaSXlYLSAakiQ4tcFQJIAlr2Yv5DcHk2YAbbtUo0pdHJpz6TXGypFB7rT6wjA== 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)(42112799006)(82310400026)(7416014)(376014)(36860700016)(1800799024)(23010399003)(6133799003)(261009223027099003)(261009221227099003)(261009223327099003)(261009220027099003)(261009221727099003)(18002099003)(56012099006)(261102123227099003)(261021123027099003)(261028144727099003)(261021121427099003)(10067099003)(261022105027099003)(261026121527099003)(261026140227099003)(261022075727099003); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: rxk30B7EVGUDj+/55ELGylNA2ExZEiL94CeaRZVHwLhgaEz+AKAmjDaLI2isszEYpOt2caBaxU56i3glcmQRn8N7CPKxu2EYBEoqbPfkq7BuT7KJbAZ56DdJZr0f1S6fXLADOn6pIdtXjH77m3lkdTByKuM05el0CgXGXsYF+gDVmD/CAFgLOWDzxMRw7ojGbY4mK/QyGnxRUPRlHiK7QcEqMxVbj/H3uPFmy++gqlcBVZtug/aE9Ac6998pGyU71e1Qgzwwa9QCPwAAf4ulWS99onlOLl6Ye879NkQBzFK30K5i0VmRe2mHp2bGtN2PiYkInWQMXTuABKA4bzOI0i3U+Ke8wHT3s3pgOxtFLOX4fi5A3iuBjVK4TRZ/w2KAuNEunAWpVGBIpFU4iqPrA/jIu0a42V5e8TnU/dkeDVlc6LKcJkpB4ISgXckOyThY X-OriginatorOrg: cixtech.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Dec 2026 09:24:33.5064 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 936336b5-80bb-463f-0b20-08df4f8ce93f 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: OSA0EPF000000C8.apcprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY0PR06MB4984 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "dri-devel" X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 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(). komeda_attach_bridge() is reached from the probe path, so the first patch reports its attach failures with dev_err_probe(). 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 second 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 third patch converts komeda to the new model. The fourth 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 v7: - Added a preparation patch that uses dev_err_probe() when attaching a bridge, and used dev_err_probe() for the bridge connector init failure. Luo Liu (4): drm/komeda: Use dev_err_probe() when attaching a bridge 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 | 17 ++++++-- .../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, 59 insertions(+), 26 deletions(-) -- 2.25.1