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 8119B407585 for ; Fri, 15 May 2026 08:39:58 +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=1778834398; cv=none; b=EeDmAAC3tGEw6MULfV1SRSN7AsZFGOBtvR7OlHz5OgQcd7R6WgRMxKZi2vGrNSEaAGVVgT3H23YVGwWkREeECUQ2dh9y261IikbW7hGLdkzSUrnNDiWQOXnG7fHvFF1zFivHS3zck0WhaTMDrzxybewBJvhT4FWRHb5EWKcWFsk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778834398; c=relaxed/simple; bh=/xmNWwsTG2rrx0UMVV8KGy9JGCopPIlfi2N/XkDPN3M=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=mvTJWAiUpevVY+hNhpSfzHnSMrvEcQy8VGK3GDU8tNi7I4+CLQkzoQkcCrHCBZITGHKHyfE2ytubY7ZRnvk2uaYGlZpFrr2NIWWEHRNQnKL6P7Cue+uoaonF372TmlKFrL9vrS2thYJMJGfzU1ksMjlKVYhRpcK0vENdTVCc/Ho= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Bq1tn0sm; 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="Bq1tn0sm" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B79AFC2BCB0; Fri, 15 May 2026 08:39:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778834398; bh=/xmNWwsTG2rrx0UMVV8KGy9JGCopPIlfi2N/XkDPN3M=; h=Subject:To:Cc:From:Date:From; b=Bq1tn0smz0iNqPg256fNnd3m7M81/CX2mbcfcPKSta5nwgpaUghjs+2ThPXRF1IN6 ibU8jD4VDzGRrO1frbHeHYbtlxrz9Zt8M8e7JBIGxmHosuGHNRuOxPHV8jLXcAEMzL rVkqF1kEA33jHGCSU2QqS0me8FFHyCKGGcJhfn+8= Subject: FAILED: patch "[PATCH] drm/exynos: remove bridge when component_add fails" failed to apply to 6.6-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-obedience-gloss-4273@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.6-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.6.y git checkout FETCH_HEAD git cherry-pick -x 26f6654a9a60eb4d241f42a0ec85412e8821480b # git commit -s git send-email --to '' --in-reply-to '2026051502-obedience-gloss-4273@gregkh' --subject-prefix 'PATCH 6.6.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[] = {