Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp632995pxv; Thu, 15 Jul 2021 12:02:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz+Ei7PePeGlS+Mq5HeX9aRJP6JCu/BN9K4LjJYnnkfNWXcnwWo5zKX5UfDbiDPCTH7NzFc X-Received: by 2002:a05:6e02:a:: with SMTP id h10mr3653430ilr.285.1626375756787; Thu, 15 Jul 2021 12:02:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626375756; cv=none; d=google.com; s=arc-20160816; b=gvU/cvy7lru8nkr7RNWKNT7tape2GUqVXcYm5O7SimSaOBw84AbWGQPzAUIucWYic/ 0QREBuGSTF9lIVyheXcLuqqiDmO940mC94NTrqhconorTDiA04TVjc+DaywKO8poqtdO tzZVUyCAKbWljraU90y/JKjAryb3knZwehGXOq/4PtoeR3EvchZAvIrqIkIGCDmutDNH wmlQdfCcg/rgjz7QB8/xzttJeUvkeZRVrwMx1fuYkRVKu54bX9q0JeYuV/AztDr6jIvV Tnk+X+Na9w+yStScLa7v7Yvz6G0g29RIzhc5GecW8cG2ZhXYkZy0HSwazF4+cY8qrj93 OXkA== 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=mtpIwGNdVR3P9mvOKVKq0+rouewqk8jqzl/9NE3feCc=; b=zHO+oJqnvbJ1+RnuiuU4+b3N9OkgGJzmx7bp1Tdxg/ehTh1azZSEdlRUlIcZkpChCE a1lTLo2jd75Ok26gArYc+scMIcLThNjyZXWFH7gwAEMpUEQW4sCmjVnNejShAYnHR4o1 fCeNoHx+doIQYNKA8legjy/NujPEs131dyNDhLQKm5y8AGVHGnPOUM+QGB6UpNcPdvjO xkdcFh2Qw0uLk0Bwxvz/LJ35SLJBJ6MZqHcvFeA1nuPTo6U+upKYC799okx30vfQWlpJ tvMYDk+CeiIEe1unu3bR1PAfjbU+WF0M57x3BVdU7wpi67dHZ2sll34GuPMVmhAPbytU Tk9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=cVUe1hhB; 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 p10si260623iov.66.2021.07.15.12.02.23; Thu, 15 Jul 2021 12:02:36 -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=cVUe1hhB; 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 S243359AbhGOTET (ORCPT + 99 others); Thu, 15 Jul 2021 15:04:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:58132 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241460AbhGOSy0 (ORCPT ); Thu, 15 Jul 2021 14:54:26 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 516B3613D0; Thu, 15 Jul 2021 18:51:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626375092; bh=bt7xYdT3o41wmLlK6OKXwu3KBxgrFKysomVDbmPufA4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cVUe1hhBhQI1lG8os/rTRU0cgFgwjnvwJ+ZYNPXcSzhef4ZD9qeze/np43SGjeKRB vMcDKAKJ7FCgC8QzwEd+vpwYjey1KnDQLRJ5Yn5HCb0ggpG7esQwh++K2Dnv6cwjv4 nnQEIi6eg8S+dCHaIFJBvZ+etbtAvA2YAfc1gOu4= 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.10 157/215] drm/rockchip: dsi: remove extra component_del() call Date: Thu, 15 Jul 2021 20:38:49 +0200 Message-Id: <20210715182627.285847411@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210715182558.381078833@linuxfoundation.org> References: <20210715182558.381078833@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 @@ -243,7 +243,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 { @@ -1141,9 +1140,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;