Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp657357pxv; Thu, 15 Jul 2021 12:40:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx2iBCd+cXrgPF+dR86A1q35uW4rG3iQ7BuPCW41HREpXMCOanoMcQyKCWQKFUv23xFCK+X X-Received: by 2002:a92:d2ca:: with SMTP id w10mr3426398ilg.38.1626378015256; Thu, 15 Jul 2021 12:40:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626378015; cv=none; d=google.com; s=arc-20160816; b=h+wUS5Gc5/A9biaY5isGqkD6fEvcMv12L/pfAtO5mWnX1TZ3lDCJOQ3x2hcyd6fHuV WmnQEM5MOTXWeiyR1CJPXnuDk+yZHoATmyPyOAADEV6sudsv508wHd6wlKy8UVy5eeHu i2W5Kqwd5187xpRyrnGV8YaFRzEhCHp1sGZ3fOy2c7csxaynvoyq1h9fkFVS1ECNCKAD ldxNFsvyK4P2ow08Qw6+AYoTRfxhsFy1wo/Ygbf3IUCUj9OdiywDW3GxF/e0y5oaL0ji 2NdD7FD8lUM1RJ9PA1Csj4/zu0m3bav7eHVnLcxgm1PP5Y/GrERUTZVMdf2xIA/IFR6F OpMw== 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=TwC3Dl76fbl2Kl5YvvTN7wLHl+2R/07GPpbVZ5Ya5HV+jyi4yXrJMNOHEqv5rleVmI gMALVFdl1mEdQNDh93YgUGDpB6Mr7OXpFbavqQYcrVpgfM+VtK33jv/ce3x57hNGiOCr imw1UMcg/EIgryMAx7CdtwDZQcsKrct2sjLfneFwHzzqn+wukIFVE9mpmUA4lSO6Ofl1 Ntdi9GVssxAwxLc3MH7dEYA8TtmPRgptvG9E72Hqa+rkYxo5bKzDm+S3zdCTdd5Ya6ZW E48AtDvZHZYKALFkDGjALAwMv5akleUqQ04Bqqhcu4U3B1Y1QUVzrZ+rSh7hIa+8Djcf XOBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=NzqBTKyQ; 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 y14si7324865iot.9.2021.07.15.12.40.02; Thu, 15 Jul 2021 12:40:15 -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=NzqBTKyQ; 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 S1344699AbhGOTly (ORCPT + 99 others); Thu, 15 Jul 2021 15:41:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:51430 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244666AbhGOTPC (ORCPT ); Thu, 15 Jul 2021 15:15:02 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2DAB561417; Thu, 15 Jul 2021 19:11:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626376264; bh=bt7xYdT3o41wmLlK6OKXwu3KBxgrFKysomVDbmPufA4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NzqBTKyQbfo4wkIlbSo5sTeV1VcFX5ughhzDkeYRGp1PSSKpeSXSUCpLYiOg5JFIr O3SGaYSMr9v8Y5/ZLQTMJNTfOsqSH/QMR2ZDCnF1BUewhUMYAXMMQ4LXwlv4+2Newy KxO20grin6yVOReK9AZqkleztoKL4JCiyw5lG7K4= 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.13 196/266] drm/rockchip: dsi: remove extra component_del() call Date: Thu, 15 Jul 2021 20:39:11 +0200 Message-Id: <20210715182645.189552399@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210715182613.933608881@linuxfoundation.org> References: <20210715182613.933608881@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;