Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3859287pxv; Mon, 19 Jul 2021 10:26:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwWeYHE74h8Cg8y7IvD5A2tpShmNu1F52Gk4KmX6rWzptWK4SjWXQkqK3gv0/FT32UbWYrY X-Received: by 2002:a05:6402:278e:: with SMTP id b14mr15321202ede.277.1626715608749; Mon, 19 Jul 2021 10:26:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626715608; cv=none; d=google.com; s=arc-20160816; b=0tKHerYetVKJ+6GD26tO+ekG3c2fBIOaPWzhYVpfjfIZUnP7eCggMO4K9uj8xRej6r NEId2EPK/Nwl9t2YlNVk5KiRk+NH+Scd+IvxtZi4Rp3HIbQq4Q21ePyL6DMHuQx1vh8W nMiAzM8DCdEOtcZcuHfeVpxnng3DHVz9jsLHK5aBUq3a0UvD2Gz5aG0GRBcrGvrvsreV UlXgQTXq1Wst1zaX5/AHa3jJXvTyfuOdJ8dfo9xJbJoLerobUgKbSJACHl4YmpGcVrYW J3KywSW7AE1JeSrAu4Kycbv3kov0qPJi7fTreA28S9d4IiPUVI4sxo60TV3oz/2nvuRk 6wew== 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=ETpGaD7g57oQVn1GQ6q9lkrQZ3LQgs//LiVPzeEQMd4=; b=n6XiDtxiXCRn+rNtrmDj1zUO7H8HzpGNESnAP919Yu34LDAkZIIy8cKgJNq/Q0n5zA HF01A5MqIesgxUpZUdAfAwbcudsfhDY8rUVxhtcPIeB8NU9Xv6pU1mJA9R0mF4lGdjk3 +VssiaQuOCgEfTBitR36dDkrSg8z+lMLrkxViHgVCM7/QcSMa7yk+WCjivZ05By14DLD BiQ97J/OyXwQP45CypfTWGC8awX2hGv+XR40Q6fAgfFsQRaedQ9pnTjyfWUTdUsAXFjV rOFnIX1JQddDTDZzBDvJkT18hE9bHB1USZHL5ThYN03/pEP6VyzyAegntCaRy5WpirNp +ppA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=upgDdGWb; 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 a18si21367638edr.24.2021.07.19.10.26.25; Mon, 19 Jul 2021 10:26:48 -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=upgDdGWb; 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 S1356143AbhGSQkq (ORCPT + 99 others); Mon, 19 Jul 2021 12:40:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:56908 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347634AbhGSPUE (ORCPT ); Mon, 19 Jul 2021 11:20:04 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D14D261407; Mon, 19 Jul 2021 15:58:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626710335; bh=qZkyoG2FBn2OT+lhuZGNVpkXT/zpxIylfZrc701XAf8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=upgDdGWbKuG/hkBjtijOCQ3CDekgaL6Ak2EKsA6CBC+NZ1MH62h9QINsQE84llo4p nRSlca1MB6qUw+DKkMzaUIF46iOyVM/MpiVuT7FvwuXJvpBjImyRVY0dOvtkw1eCK2 1kHqZ1oo8ZaSk83zx6oTGl7yWnXAeIHjibaKythw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Thierry Reding , Sasha Levin Subject: [PATCH 5.10 172/243] pwm: imx1: Dont disable clocks at device remove time Date: Mon, 19 Jul 2021 16:53:21 +0200 Message-Id: <20210719144946.455418386@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210719144940.904087935@linuxfoundation.org> References: <20210719144940.904087935@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: Uwe Kleine-König [ Upstream commit 1bc6ea31cb41d50302a3c9b401964cf0a88d41f9 ] The .remove() callback disables clocks that were not enabled in .probe(). So just probing and then unbinding the driver results in a clk enable imbalance. So just drop the call to disable the clocks. (Which BTW was also in the wrong order because the call makes the PWM unfunctional and so should have come only after pwmchip_remove()). Fixes: 9f4c8f9607c3 ("pwm: imx: Add ipg clock operation") Signed-off-by: Uwe Kleine-König Signed-off-by: Thierry Reding Signed-off-by: Sasha Levin --- drivers/pwm/pwm-imx1.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/pwm/pwm-imx1.c b/drivers/pwm/pwm-imx1.c index f8b2c2e001a7..c17652c40e14 100644 --- a/drivers/pwm/pwm-imx1.c +++ b/drivers/pwm/pwm-imx1.c @@ -180,8 +180,6 @@ static int pwm_imx1_remove(struct platform_device *pdev) { struct pwm_imx1_chip *imx = platform_get_drvdata(pdev); - pwm_imx1_clk_disable_unprepare(&imx->chip); - return pwmchip_remove(&imx->chip); } -- 2.30.2