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=52.101.127.72 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796117082; b=212rWSzzYCxyFfhryh+/snksP3V4DcbQmgmR9gf7cwUtshqiGuMT4BofgiCFGO9c1BVH v2/ruLIcFu6HfwQHgvq/vHeMPBVrUGcwInvNr3Q8l5kmgk483rT3It4IIeY/s2TFofbCl 3T2QTWFsiv4NGoN5jC1VRgU05LVJ7N9IcJl6W6hjpMYQxyCErlf8QnleVxspDIzMIwyST qARJTdTXO/FT35GLXE6lulG27lG32MDug4RuezdsGp+dgr54xxyRNFWgeKGvT1cj613o9 kzN9Hbg0pFHjMCUrkGiqxOOJYGQsfBm3MK8ybqtrUndc+GOTtTS9SMS3552ahKWMtSQ== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796117082; 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=kugYziJQbPUq/Ezb/MakrkKD+sBvGgBRMPhpAGMNK5c=; b=W6Oyb1xrN+in5drxWx16IQsUvV0QN0Ho5VkI8UItcCAP/bHH+i7he13v2qVx0yR12UHA 8GU8FWpconRsMD/at+p7Kg50XXq8Ddh55q/RIacHeWymdyqcEPwHTCTdTJW1L7N1qm2IU WRqHlb58IulaK03qWRAP1bGljPBJfydqwNWr/9S4X2gS14N5zH5tcK6D6WWwTa/2SNshX L9zEzLC6xPaG1mu2TKATGiY2mp5CW1nl4q7JB8Zm6gJNEU88zCsz8fSm1XS3rwUiroon3 Q7AKHEDllzpdHtJOeYzSmWcHYsvNBSl/e81+aTs12alRjjbxEOhyk7iln+U9He64JMw== 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=52.101.127.72 Received: from TYDPR03CU002.outbound.protection.outlook.com (mail-japaneastazon11023072.outbound.protection.outlook.com [52.101.127.72]) (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 0069C606A32E for ; Tue, 1 Dec 2026 09:24:41 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 0069C606A32E 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=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-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: 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 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