Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp2412693ybf; Mon, 2 Mar 2020 08:08:13 -0800 (PST) X-Google-Smtp-Source: APXvYqyEge2crIV+spfOVpUct6FEfbFMRkfpUvBgAEbxHG/ECajyJMTqpp//JwH/tVi4rZIlvaKu X-Received: by 2002:a05:6830:15c2:: with SMTP id j2mr12919909otr.351.1583165293783; Mon, 02 Mar 2020 08:08:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583165293; cv=none; d=google.com; s=arc-20160816; b=0bXEsxyihyWfoWPJEu8LuHBZIZg0iU/584p0E4SfCxxYb7VpBXvI36IdYoy5RuwXdO TeP4tTtE9SMhmpQymoEP9z9piNZ00/w82HmbsZ4m4zn7UGImO1uiSf+1WHDljWXBH/Xc 1NyFyDAmo6FbjeSY8KD0WD4ieeLU6qjnzRxa+hxt3Z5uTWgPyl3fMxV5G03TD+ZBPbrf mU8NiK0eLw6KesXhVwGIz5dDZPfSEQQkgme2RZ0bnyEvDQk3bnC2s3dXLs4UHXpZfTAP 9z6LLgRQHRsws51gfNXrMpKJ+Dpe3Yrky+swU9SNpxznTWUNqiA2/OFKwUT8NybHcBFe yPbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:in-reply-to:subject:cc:to:from :date; bh=Ge4Nom79rjkKtC3Qe/aW+RajdiWhB+B5WHkP4qm4Exc=; b=ROzIvj/xcIK2NtPcaSh72MntEx0YdMOHiaJoob87FwxyH4U0UFUUUBwm3a3/jFtWDL dEWGQeCpV2hgvAsY3Wzqku6EOAajlKP8FJ4i+JQXCdNMrvyFu4qPdLfSUswBVDHJ9PBE 1bOJ1inkUCOxbpiv3RS39WpQLT81W1HSeOvoO4QIsjbWxb+uiSwZnF6WxWyNF8mU8MmP /ro5V7m1hcYRYmVZk6PjRUrlBFji9UM1OQhpDh8qFudVPk0L9dBVQpB5OtgjTyudPWgk 9T4iUxSQU4FZSEUXyJB5KpXZqi+K2FcTBgbTY/YwnW50K/MP4MPxTvNaxouEQtDdwsw+ E8hQ== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f9si7083488oti.44.2020.03.02.08.08.01; Mon, 02 Mar 2020 08:08:13 -0800 (PST) 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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727487AbgCBQF1 (ORCPT + 99 others); Mon, 2 Mar 2020 11:05:27 -0500 Received: from foss.arm.com ([217.140.110.172]:34698 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727154AbgCBQF0 (ORCPT ); Mon, 2 Mar 2020 11:05:26 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id DE0782F; Mon, 2 Mar 2020 08:05:25 -0800 (PST) Received: from localhost (unknown [10.37.6.21]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 5CCD53F534; Mon, 2 Mar 2020 08:05:25 -0800 (PST) Date: Mon, 02 Mar 2020 16:05:23 +0000 From: Mark Brown To: Christophe JAILLET Cc: bcm-kernel-feedback-list@broadcom.com, broonie@kernel.org, f.fainelli@gmail.com, jonas.gorski@gmail.com, Jonas Gorski , kernel-janitors@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org, Mark Brown Subject: Applied "spi: bcm63xx-hsspi: Really keep pll clk enabled" to the spi tree In-Reply-To: <20200228213838.7124-1-christophe.jaillet@wanadoo.fr> Message-Id: X-Patchwork-Hint: ignore Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patch spi: bcm63xx-hsspi: Really keep pll clk enabled has been applied to the spi tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark From 51bddd4501bc414b8b1e8f4d096b4a5304068169 Mon Sep 17 00:00:00 2001 From: Christophe JAILLET Date: Fri, 28 Feb 2020 22:38:38 +0100 Subject: [PATCH] spi: bcm63xx-hsspi: Really keep pll clk enabled 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 --- drivers/spi/spi-bcm63xx-hsspi.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/spi/spi-bcm63xx-hsspi.c b/drivers/spi/spi-bcm63xx-hsspi.c index 7327309ea3d5..6c235306c0e4 100644 --- a/drivers/spi/spi-bcm63xx-hsspi.c +++ b/drivers/spi/spi-bcm63xx-hsspi.c @@ -366,7 +366,6 @@ static int bcm63xx_hsspi_probe(struct platform_device *pdev) goto out_disable_clk; rate = clk_get_rate(pll_clk); - clk_disable_unprepare(pll_clk); if (!rate) { ret = -EINVAL; goto out_disable_pll_clk; -- 2.20.1