Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp673931ybh; Tue, 10 Mar 2020 06:15:50 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtTsKECqvCI3YtIwIJFxNOdF2RS+zXC8qyWxE6ZlWQ1CqPR8NFdjLr1Kix3w1gv79BSCqpj X-Received: by 2002:aca:be09:: with SMTP id o9mr1100975oif.177.1583846150192; Tue, 10 Mar 2020 06:15:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583846150; cv=none; d=google.com; s=arc-20160816; b=lyuWPXZuRP7z6jaTe8gfG7HJ+6N67B3dgV/b0gD2jUrFKyDt+EQ57hhDhx0Kc1JLL9 BWFAlP0nVVn/ekxqbVkfBytibHCZhkZGVza45GwY+ezkXe3aXJHQtkPQRtFIRzz2W2zH 3MXHyTTI7zNfiCGgf3qw3DtccndeBMkDqFf8RFMpZsMmb2XX+lrj4AjcBiqCwIbrLOw8 1d27mlZec0asIbw84EWf15OGVHOHqmPI/S7uBIG+FXSdLc71wIDEY2Kz5xvaprezv+aO ZtweBHc0J6f+kT+1GQUHS4Xaxb0fnn4l19yHd4I9btozv134wjm0PQFxvWFqxM1c0RHo DRkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=BRr94HiNTkvDjRChwuq5V5vTYcJf7uL6voZjrhm+tqg=; b=CXMiXRp782QRGS1KsvhesLcffBMB5lI3Z60L4xsJ/fE8BMquO3RVxeXto1skd1XhJg NIjCpBSz5mDYT7EB734C4BmxNOo39uojoied5AIdlqs7KIHEIcCAbebHzqld9aRi0cVg D1peQXgOI6tZxNBR/FHbRHu8qW9fawhHzfrgFbbFrUXFfO5tdFvpvxe89eZnY33rabKz j/ilunVw7fTFZ9oXv0VxLnDRrXxZKCKy4RaZ2DwAz1rHw1bvxOsGtCk+0tGymuT0rq0T lFoISlrjuGHEYMzn30U3eCRzKTkY92PbzBraKfFJOYWD3YikbJPWNqLZX0LhOuE+8aNX AWkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=b6M1Bror; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f21si8382785otf.128.2020.03.10.06.15.37; Tue, 10 Mar 2020 06:15:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=b6M1Bror; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731785AbgCJNNt (ORCPT + 99 others); Tue, 10 Mar 2020 09:13:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:36916 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731782AbgCJNNr (ORCPT ); Tue, 10 Mar 2020 09:13:47 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D49382468C; Tue, 10 Mar 2020 13:13:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1583846027; bh=/CU3mvUbfKrgSRnu4lrZ0glLn0Q5SoFRYLGyMaHLNmI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=b6M1Bror49Q4XYGcasd2LIEIg7ERme1m8n7fOBD4pdfcJs0DXxMZdFYloLy87s29B +vQo5dEsOkttH5Wb1k1Vf5Z/l8+WrdUXXo1Yt7hzAKRPhAvQmjkqtSA9kxkAgUj07G CrAbKtfXaTXlNHmKIU7g73V49stGrclDrVOl4g6Y= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Christophe JAILLET , Jonas Gorski , Mark Brown Subject: [PATCH 4.19 59/86] spi: bcm63xx-hsspi: Really keep pll clk enabled Date: Tue, 10 Mar 2020 13:45:23 +0100 Message-Id: <20200310124533.985288833@linuxfoundation.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200310124530.808338541@linuxfoundation.org> References: <20200310124530.808338541@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Christophe JAILLET commit 51bddd4501bc414b8b1e8f4d096b4a5304068169 upstream. The purpose of commit 0fd85869c2a9 ("spi/bcm63xx-hsspi: keep pll clk enabled") was to keep the pll clk enabled through the lifetime of the device. In order to do that, some 'clk_prepare_enable()'/'clk_disable_unprepare()' calls have been added in the error handling path of the probe function, in the remove function and in the suspend and resume functions. However, a 'clk_disable_unprepare()' call has been unfortunately left in the probe function. So the commit seems to be more or less a no-op. Axe it now, so that the pll clk is left enabled through the lifetime of the device, as described in the commit. Fixes: 0fd85869c2a9 ("spi/bcm63xx-hsspi: keep pll clk enabled") Signed-off-by: Christophe JAILLET Acked-by: Jonas Gorski Link: https://lore.kernel.org/r/20200228213838.7124-1-christophe.jaillet@wanadoo.fr Signed-off-by: Mark Brown Signed-off-by: Greg Kroah-Hartman --- drivers/spi/spi-bcm63xx-hsspi.c | 1 - 1 file changed, 1 deletion(-) --- a/drivers/spi/spi-bcm63xx-hsspi.c +++ b/drivers/spi/spi-bcm63xx-hsspi.c @@ -371,7 +371,6 @@ static int bcm63xx_hsspi_probe(struct pl goto out_disable_clk; rate = clk_get_rate(pll_clk); - clk_disable_unprepare(pll_clk); if (!rate) { ret = -EINVAL; goto out_disable_pll_clk;