From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ED7D54014B2 for ; Fri, 15 May 2026 08:40:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778834407; cv=none; b=Uju9ME0CfsKjM8TDr4HX63suhGAydyXBgIXboJp5qfFKXg8hP49cBnpp4IfjnQKIHl+IeIuFqS6GVGgj+W2KHcrxKh97DRfhCwTZCw4M5CoQfQx4/Xqxm+t5HyrKVbCYlfbexWvFE5Fa3UGdqmwQxQ8el9jIUGO4YInhtTF07uA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778834407; c=relaxed/simple; bh=TgQcBUus2QgMEnft0VYjFNui3IMhtY1GwKlvb3dX0Ls=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=ZNxNzMwyd90dzcl9p5/b/MHjFoA/p0NMwr46W7Zyy4Zxnz66o11BoSlDj3GF4SVndXN/lexLYGJflA7rgd+FlIJEVnIgZJtap2gp6aFa6vhSbu28CF1p/W6pHYRznVTkAy1BDDNxDnxFiZpKZLmASH/d1DXJsp4JnzAvogvPMoc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=fyKNHXRL; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="fyKNHXRL" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 155CBC2BCB0; Fri, 15 May 2026 08:40:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778834406; bh=TgQcBUus2QgMEnft0VYjFNui3IMhtY1GwKlvb3dX0Ls=; h=Subject:To:Cc:From:Date:From; b=fyKNHXRL66s/2de+JlcrItjsIzK0gAN4WkYAV2Boa15pyxzp2PHptuFrjAdxyQiYj UnOmBReK5Bb/G+pKn/m7uDlp+GjLzOgPiH4dhjOu5Qo1bNS31dvPC349vfVDLTZmP+ SrHJ8OKSufh1cv6nJWH5XgaI5rL+ijLxuvsss86E= Subject: FAILED: patch "[PATCH] drm/exynos: remove bridge when component_add fails" failed to apply to 6.1-stable tree To: osama.abdelkader@gmail.com,luca.ceresoli@bootlin.com,rgallaispou@gmail.com Cc: From: Date: Fri, 15 May 2026 10:40:02 +0200 Message-ID: <2026051502-safeguard-perch-b99a@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The patch below does not apply to the 6.1-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.1.y git checkout FETCH_HEAD git cherry-pick -x 26f6654a9a60eb4d241f42a0ec85412e8821480b # git commit -s git send-email --to '' --in-reply-to '2026051502-safeguard-perch-b99a@gregkh' --subject-prefix 'PATCH 6.1.y' HEAD^.. Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From 26f6654a9a60eb4d241f42a0ec85412e8821480b Mon Sep 17 00:00:00 2001 From: Osama Abdelkader Date: Thu, 23 Apr 2026 22:06:20 +0200 Subject: [PATCH] drm/exynos: remove bridge when component_add fails MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use devm_drm_bridge_add() so the bridge is released if probe fails after registration, and drop the manual drm_bridge_remove() in remove(). Check the return value of devm_drm_bridge_add(). Signed-off-by: Osama Abdelkader Fixes: 576d72fbfb45 ("drm/exynos: mic: add a bridge at probe") Cc: stable@vger.kernel.org Reviewed-by: Raphaƫl Gallais-Pou Reviewed-by: Luca Ceresoli Link: https://patch.msgid.link/20260423200622.325076-2-osama.abdelkader@gmail.com Signed-off-by: Luca Ceresoli diff --git a/drivers/gpu/drm/exynos/exynos_drm_mic.c b/drivers/gpu/drm/exynos/exynos_drm_mic.c index 29a8366513fa..e68c954ec3e6 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_mic.c +++ b/drivers/gpu/drm/exynos/exynos_drm_mic.c @@ -423,7 +423,9 @@ static int exynos_mic_probe(struct platform_device *pdev) mic->bridge.of_node = dev->of_node; - drm_bridge_add(&mic->bridge); + ret = devm_drm_bridge_add(dev, &mic->bridge); + if (ret) + goto err; pm_runtime_enable(dev); @@ -443,12 +445,8 @@ static int exynos_mic_probe(struct platform_device *pdev) static void exynos_mic_remove(struct platform_device *pdev) { - struct exynos_mic *mic = platform_get_drvdata(pdev); - component_del(&pdev->dev, &exynos_mic_component_ops); pm_runtime_disable(&pdev->dev); - - drm_bridge_remove(&mic->bridge); } static const struct of_device_id exynos_mic_of_match[] = {