Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp624361pxv; Thu, 15 Jul 2021 11:50:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwpqyzZlg8QHyfx41I99W3GuVcQmM2Mim3e7O6bLxXhp2hD6Lo3NbraGAGV+9TTKBHX6bQG X-Received: by 2002:a05:6602:2595:: with SMTP id p21mr4291802ioo.51.1626375000612; Thu, 15 Jul 2021 11:50:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626375000; cv=none; d=google.com; s=arc-20160816; b=mqPLEiqnuzomsgRvSK0yNuW1BackuOo08WKEKVUem9k/6eFZOc7dp/isKyt9lkx8ua mc7E+C+SHo9FMn++HfJDVV0oxX1Qlv7+/1779QPh2dHCCfd5Bt8L9xYNyToiqYXwEre7 AQUKFLWwaPZyh3apSfhwT1DBIv7YpaT59yzKFnyAIIqvI0P4q3QVhM7PwAzS3vLBWHep NarN7s220zVj0Ra+ArtjpNwKRE/vLoix9/+u6t6jOemnyLfHD/WMUEYzjKFEgUtwaExd FTrjBkqnFJuUuoNjR5OstuVu2JWcG8g5Nfn4R+ZpmjBd8Y0YbfyWiuUgMIkNUp+aF/Dr 2eGQ== 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=a2yN/sKTgXbcWxNtnvN9wxx2Nv+IKkTCel+XegwlX8A=; b=vx09k61Jy/dxVjMuWG4rkXn6aRYYJzBu+4Gr5A9eyrUdQ1OMhE6Z2NYrY94KehP3qX uEh8npX/Y58A23ViNVQ6/+svLezC7PzVWW9OlWVVQEbjC4Ng+RaBEGq5opVLbSH4O/+0 bqtq+xR3hM6xr64cltfNHW+Z83luefZT2GKByQFZLRC4G1AorBG8rfv8V23RsoaRoKNb tPCu9/S8Fsag5Sd5rbkXwrLs7WHmqucl73F9hK1NNBxntUnKUPo4BgrSjQ5H1/f11XZp +YIjPJN0D5Wt00OkLQfI6GkWAPOojXSoDl2kA8ufX7HxRi86+UJIAZn66++fjYGeuISu eDNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=GNTRZhRT; 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 e16si8565155iom.90.2021.07.15.11.49.47; Thu, 15 Jul 2021 11:50:00 -0700 (PDT) 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=GNTRZhRT; 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 S239914AbhGOSvC (ORCPT + 99 others); Thu, 15 Jul 2021 14:51:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:50694 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238252AbhGOSsU (ORCPT ); Thu, 15 Jul 2021 14:48:20 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0421D613D1; Thu, 15 Jul 2021 18:45:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626374726; bh=x2d3s+M9ffO8WKcKbJnipoQ6rY/uOJF9uGl6E3dC7IY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GNTRZhRT8aBBU1ID7amlMUr4zVE5CgOeVzJ1O0TYH1LSRZlFhfJ6N+8h2HjDnVHcU DBmhMkONHW7XjOfxLBmDlA4h3XjMBmDiBBuVruaCBK3ToqT05mJDKah+tlFhp4v2uc +hz304NkHsVa6B1FEzPYXBE5ZeQSXs+xXB+T7924= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Thomas Hebb , Heiko Stuebner Subject: [PATCH 5.4 079/122] drm/rockchip: dsi: remove extra component_del() call Date: Thu, 15 Jul 2021 20:38:46 +0200 Message-Id: <20210715182511.287062400@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210715182448.393443551@linuxfoundation.org> References: <20210715182448.393443551@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: Thomas Hebb commit b354498bbe65c917d521b3b56317ddc9ab217425 upstream. commit cf6d100dd238 ("drm/rockchip: dsi: add dual mipi support") added this devcnt field and call to component_del(). However, these both appear to be erroneous changes left over from an earlier version of the patch. In the version merged, nothing ever modifies devcnt, meaning component_del() runs unconditionally and in addition to the component_del() calls in dw_mipi_dsi_rockchip_host_detach(). The second call fails to delete anything and produces a warning in dmesg. If we look at the previous version of the patch[1], however, we see that it had logic to calculate devcnt and call component_add() in certain situations. This was removed in v6, and the fact that the deletion code was not appears to have been an oversight. [1] https://patchwork.kernel.org/project/dri-devel/patch/20180821140515.22246-8-heiko@sntech.de/ Fixes: cf6d100dd238 ("drm/rockchip: dsi: add dual mipi support") Cc: stable@vger.kernel.org Signed-off-by: Thomas Hebb Signed-off-by: Heiko Stuebner Link: https://patchwork.freedesktop.org/patch/msgid/201385acb0eeb5dfb037afdc6a94bfbcdab97f99.1618797778.git.tommyhebb@gmail.com Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c | 4 ---- 1 file changed, 4 deletions(-) --- a/drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c +++ b/drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c @@ -231,7 +231,6 @@ struct dw_mipi_dsi_rockchip { struct dw_mipi_dsi *dmd; const struct rockchip_dw_dsi_chip_data *cdata; struct dw_mipi_dsi_plat_data pdata; - int devcnt; }; struct dphy_pll_parameter_map { @@ -1001,9 +1000,6 @@ static int dw_mipi_dsi_rockchip_remove(s { struct dw_mipi_dsi_rockchip *dsi = platform_get_drvdata(pdev); - if (dsi->devcnt == 0) - component_del(dsi->dev, &dw_mipi_dsi_rockchip_ops); - dw_mipi_dsi_remove(dsi->dmd); return 0;