Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3622180pxb; Mon, 24 Jan 2022 13:43:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJzmkstUbg4Lhs5eGaw74PPYz/KpY43ZCrZmjhKVYVPXKQhh6beja/iWOZEdja3irSDyZ2Au X-Received: by 2002:a17:902:aa43:b0:14a:ca21:979a with SMTP id c3-20020a170902aa4300b0014aca21979amr16746307plr.18.1643060627258; Mon, 24 Jan 2022 13:43:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643060627; cv=none; d=google.com; s=arc-20160816; b=uXHiY3SH8Nv/5zF1Ny9XdpJP+6qsBE6U8FTj30PPBc4O12pNRi5KLLwy8ei/9xOwVY Dv03OKF4WOr8rHw+IEXXLGOKjIhazWrFqiGN3YudT9Om9CQZtrl2dbXFunc2w0tY3bE2 VVtEckXafyV6GF5q7n1N5fZNaTI2F3eQWRtLpUHalChuxxWclxSFnFWx2D2aUfwfgs2e D8YRpJOMD6L0YhA8VoYgJzp9LyCg+aSpFd0IL4Ur2o5sx8SVKeLFzqkgnxQ6q0+AOy0e RqfsEw3jVLafbySh9yiDoHEq6WfV8UnQwDXI/3/TtUXhuqWwKwoVhIQ9jPtugClVv6zJ KhgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=8iHoyyxm9AdQrZ+pzOQMuAIKm2Tj9vAeotMwKdomnhE=; b=eVJktZFa0O0gDORQpxwIgJgKzt+8SddT1HNzjdzqsQZBzqSmFz66IE5fi0gOV88NIE mAt/r9lmtR7hqjguurSrO1ME7jpKuH2Lmm8erO8CU8PL98yDhDaclVNj2zvYCMenl2pY orN6i3nXAZV3RHqGOol+wWdGZGLzbG6UdqRXbcG2EjnVCKc8/5f31XJKODOWWvNBcGeM +k/ubsp4jMejLATLsXqnAIw+gtJahyVKlrwzMNcTQ8DaSTDAzst9eYg+NYavS3irH7on anYoeW6fAPxoLZ08KPw8szEZwasoI1L1Q5AtHR10tB7JKNB2Jlxu0XUCsHBV/QQL2RRB Acbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=AwFvmi2h; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t17si389327pjy.73.2022.01.24.13.43.26; Mon, 24 Jan 2022 13:43:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=AwFvmi2h; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1452210AbiAXVYS (ORCPT + 99 others); Mon, 24 Jan 2022 16:24:18 -0500 Received: from dfw.source.kernel.org ([139.178.84.217]:46816 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241281AbiAXU5h (ORCPT ); Mon, 24 Jan 2022 15:57:37 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id DDA94612E9; Mon, 24 Jan 2022 20:57:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B2763C340E8; Mon, 24 Jan 2022 20:57:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643057856; bh=RFhbMtU9WWHcwmOOT93T6numiDfaJre4ODtUp/i8QeU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AwFvmi2hJ/qrIGIZg+LAq5torC0PZsrJXfeE2QC/PU4JCTKRnrhkXh5PMjQ+A7N/p pMnpLwTB1jQOyM+svNQhZVF1nKSlVvND/OgmEyFiJAxhwVWv0CYuB6vQNOshLlqany 3pEAJ+mxzoA8Q6ojT0l7Xu2T/1RFn+frVREMChj8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sam Ravnborg , Marek Vasut , Maxime Ripard , Sasha Levin Subject: [PATCH 5.16 0102/1039] drm/bridge: sn65dsi83: Fix bridge removal Date: Mon, 24 Jan 2022 19:31:31 +0100 Message-Id: <20220124184128.591074711@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184125.121143506@linuxfoundation.org> References: <20220124184125.121143506@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Maxime Ripard [ Upstream commit c05f1a4e2c4b8a217b448828c4e59fb47454dc75 ] Commit 24417d5b0c00 ("drm/bridge: ti-sn65dsi83: Implement .detach callback") moved the unregistration of the bridge DSI device and bridge itself to the detach callback. While this is correct for the DSI device detach and unregistration, the bridge is added in the driver probe, and should thus be removed as part of its remove callback. Acked-by: Sam Ravnborg Reviewed-by: Marek Vasut Fixes: 24417d5b0c00 ("drm/bridge: ti-sn65dsi83: Implement .detach callback") Signed-off-by: Maxime Ripard Link: https://patchwork.freedesktop.org/patch/msgid/20211025151536.1048186-14-maxime@cerno.tech Signed-off-by: Sasha Levin --- drivers/gpu/drm/bridge/ti-sn65dsi83.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/ti-sn65dsi83.c b/drivers/gpu/drm/bridge/ti-sn65dsi83.c index ba1160ec6d6e8..07917681782d2 100644 --- a/drivers/gpu/drm/bridge/ti-sn65dsi83.c +++ b/drivers/gpu/drm/bridge/ti-sn65dsi83.c @@ -297,7 +297,6 @@ static void sn65dsi83_detach(struct drm_bridge *bridge) mipi_dsi_detach(ctx->dsi); mipi_dsi_device_unregister(ctx->dsi); - drm_bridge_remove(&ctx->bridge); ctx->dsi = NULL; } @@ -711,6 +710,7 @@ static int sn65dsi83_remove(struct i2c_client *client) { struct sn65dsi83 *ctx = i2c_get_clientdata(client); + drm_bridge_remove(&ctx->bridge); of_node_put(ctx->host_node); return 0; -- 2.34.1