Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp711389pxv; Thu, 15 Jul 2021 14:09:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzgU7M+CBK4gOD3jsHmbr9yA1Ky54dm6GnNbPgjOhdV7MvgRXSKf14D66nbd49qDSOL9V8B X-Received: by 2002:a05:6402:31a6:: with SMTP id dj6mr9868816edb.248.1626383350846; Thu, 15 Jul 2021 14:09:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626383350; cv=none; d=google.com; s=arc-20160816; b=tUSRObg9tw2+rYRWjbiyX7IepuPbJn2+1f3/Tc0A9s34Udx40zqvATe2YP0iD6px9B aT5vWryLDLZzo2dXz1luJrlUYxeO6qdKTRrRBrAFCf/T2ej/fNCj2u1Bcrc4sOJFUwi0 MyHLuFb0qHFEIhUO+Pm8it4IjMvfSv2nm9di+wqabOWI91qRaApLBL2v2CfOy8iug2KS rmrTpLBMONkUUTLSqMIqLX4cINQzHZLGFegg3LPVreIxs5AkXkZq/ZDIiNpi6uS4TEYz veRqqNdJInS9HqFT6X6QaigEmfvKy0VF0TPcG+ztFpu2wRAaPaZL+ucRfA4YV2qo6Dgp /GnQ== 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=y0UFi6i/OS+urlEyH9dyIabQLCYMI4O7qu/cvrkWhivxuReis+Xv1WHqkWCFVsloBz izWAh0A2Mzs3Bf0aJ7gb31e7xL3HVz3yns34w12UNbOMCkOo2RaTHOj7lyrG7xN4jHzC pUeTUkyZAnlh8U7jK585VDYUVGbYDmSa96oVgMY51L2WcCVX9+Tpf4e3Aw4XMaO3dbvH qbx5JjdeulsLCPJ8mtNIOr3MV8Aygw8UR7GV0Wyof0lo8xDt3RPqBefIhkmdSXkDe6dg 6z5FdBQHL1CO24vy0yKC0qktZDdiUWNRQ3V/uAXnS+DSuGpO2th8FXQcabumPpemWFO9 EPSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=VtoynqVQ; 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 u8si8390966edo.576.2021.07.15.14.08.47; Thu, 15 Jul 2021 14:09:10 -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=VtoynqVQ; 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 S245082AbhGOTTQ (ORCPT + 99 others); Thu, 15 Jul 2021 15:19:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:38800 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243687AbhGOTEj (ORCPT ); Thu, 15 Jul 2021 15:04:39 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6261861408; Thu, 15 Jul 2021 19:00:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626375635; bh=bt7xYdT3o41wmLlK6OKXwu3KBxgrFKysomVDbmPufA4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VtoynqVQe7GNRDBr03hlUyHeVqBibfv6VdsGEdqbXSxdeENhA62W8zJbgATi+19Kd tw4FP6jKhKDVe3E6Hi5+mdfnq8zLknMBd9po8q2FPyRlCwpAa5oHUXPBvqBST78t/M Xwobrp7Oon3ld61nYmWXDLYt7OPmgmbm9Dy+8GJc= 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.12 172/242] drm/rockchip: dsi: remove extra component_del() call Date: Thu, 15 Jul 2021 20:38:54 +0200 Message-Id: <20210715182623.491971242@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210715182551.731989182@linuxfoundation.org> References: <20210715182551.731989182@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;