From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=217.140.110.172 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796311564; b=hROk4aEzgd+t9IB2ZXOcj5cpgmYgRUGGld/U6WYPQTgmusqvhrXOYTHzVd+MruFvXQoH oq/JAQyfhv8FOW65sAR+5osO61w9xbCTbgSARpzV+tAevLgbOP7gANH3feTyTCS8CFE8X i7hnKRQEY2d/sTmHGYB4iNB3BPpPDe02nYjBr/d8J5H5brYozuL3IYVpH1W1bjk/JyTH0 ivDGGZiZPztVeNgFp80WkyYZkjqAzKyOcsky5aHIWfQiblJ3Bc56nDOJWoTxbrRpwNomA HY3K/IF48gp0QwkoaYhn7xWjpCYv720dliUm1melWoy20qHo2G9CSHTMVkR2QF4tVgg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796311564; h=DMARC-Filter:Received:Received:DKIM-Signature:Date:From:To:Cc: Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:Content-Transfer-Encoding:In-Reply-To; bh=nIfb6RklEt9KbBPo4ccniDiL3+FXfplUmmqH0+VApMA=; b=ZYBsHP9R7RuPDSTVwOJ8ZPsqjI1+g7AVFkrJENJNdNnLA/VdP9yQSlBv0bRv+4vwFXG+ Je1n3zvf/3hKUNuuwakU91kovkJqrMWMRNfFxkj1vxKbP9ZVGwxVvNF+4mRdVNLz5tCZ9 YE2ACw6hP8bbrdq7aqvhHWEpUyUt0qwlOj//79yr1QgcwZYtvAZxVeQvvUeFQtJl88+zo iOXP6eF94fAGg298GOHvaG3jGr6Au5FvfYkjfcOGth5pqWCXOLjq59LYZfZ5F0s/8sABc LIwz8PdG7Pm9FQwReL2ojGV9k9pM4HIoRvnvmIMOhpQ3BNejE5GaPKEYN2BKcAtEHeg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=arm.com; spf=pass smtp.mailfrom=arm.com; dkim=pass header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=foss header.b=MzbUh7DS; arc=none smtp.remote-ip=217.140.110.172 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D7F24606A322 for ; Thu, 3 Dec 2026 15:26:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org D7F24606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=foss header.b=MzbUh7DS Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 6B836497 for ; Thu, 3 Dec 2026 07:26:00 -0800 (PST) Received: from [10.2.11.19] (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 044023F7D8 for ; Thu, 3 Dec 2026 07:26:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1796311563; bh=6sVi0cX1IqXGB9W81RrtWiwXcyUydl03eZDKzvZ3u5k=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=MzbUh7DSIxaSwQWt4ifGgAcgw2Y+AZ0B+0IUj1Dkg6uLCjW2z74w8DqoWzDwb+Kya yxYjAQ80v9SJ8lXiDxW2EaPstdUYA5P/pQf1BwBHawqcKVA35w+cQxCGGlh3Ul7+0z o/vVZrC1FgAhDB74XhOtXiXHSuuiYueUiubyNT3c= Date: Thu, 3 Dec 2026 15:25:41 +0000 From: Liviu Dudau To: Luo Liu Cc: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Russell King , dri-devel@lists.freedesktop.org, 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: Re: [PATCH v7 0/4] drm/komeda: use the bridge connector Message-ID: References: <20261201092432.387696-1-Luo.Liu@cixtech.com> 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-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20261201092432.387696-1-Luo.Liu@cixtech.com> On Tue, Dec 01, 2026 at 05:24:28PM +0800, Luo Liu wrote: > 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 > Pushed to drm-misc-next. Best regards, Liviu -- ==================== | I would like to | | fix the world, | | but they're not | | giving me the | \ source code! / --------------- ¯\_(ツ)_/¯