Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp4418688ybc; Fri, 15 Nov 2019 04:27:07 -0800 (PST) X-Google-Smtp-Source: APXvYqw6kLmCjXnfTPfHJjh8EjHGF/YxKcJF3iRmTYjrz8I5lGdIDixuUIscdmqDqeIkw0qh063e X-Received: by 2002:a1c:dc09:: with SMTP id t9mr13898760wmg.65.1573820826918; Fri, 15 Nov 2019 04:27:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573820826; cv=none; d=google.com; s=arc-20160816; b=F5JzDVBEP8rqvXq3JgUfUg1IqYjPgb/4xcB3FgDU4F8GTSs69TEb00b9ByZE/46gZP upQarCF8dT6UYLawMwLJGw5YKLL6V9MCE+QThMfzkaJ4uidxghJ0zQWT23tyhcfRaZz7 LChpXIkZx+DeAob8rj4J1yAFPyt+9dBM77RH68qIpJcTrX8wPQEhbnZ97nl/BT96KHdj zfpSFkicauiNtIcV8QWqPz58Kl4DlFMWvew4+R4fZy3Kfq3o+kbvSA/S4eCNxIcRrzzk 5+E8pByvVYNDzzoXmNR9vm/YYgjsuWuhPQBTHH6d/41ksm/+4S6nzWxlLJHBGxVOUPaF ikLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:in-reply-to:subject:cc:to :from:dkim-signature; bh=Re2hQTtNAD8CYEK6W+NpLcveT//8Obo4//e0YXTuxTc=; b=LV2TycPMQPzyUocPeOxGzpHQYmEs+PHS2um7TgqH55kMqpMuUa7caJ2FeEV1L/s9lI asBrJw8xLjH6zmrGx6XE6C9wrm/7wO3M+fetB7S3vpz4z8Ny6rViQo+AOhhiKvwlwGqs oHIg8XygUKSahJ/a60bCC6OVT6IEeSTFGAoC4I0HdbNFou7VVTh7SUUrhlWHmSxzGMzr gZ2aPg2dM7QJk9blSLXfV3eyN0lZHne9SHHmOl7pIa35QJ2cKvIWSErdEW1RDxhtJ/Hm Pi/ki2JUsTQKoUXPmkODAAXRZ71TFWW4bwnlMxnMOLJt68iXCvsAbweYK21EV21c8FkH i6Vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=jFUZ7q7H; 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 e50si6508227ede.59.2019.11.15.04.26.41; Fri, 15 Nov 2019 04:27:06 -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; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=jFUZ7q7H; 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 S1727736AbfKOMZU (ORCPT + 99 others); Fri, 15 Nov 2019 07:25:20 -0500 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:33046 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727587AbfKOMZS (ORCPT ); Fri, 15 Nov 2019 07:25:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=Date:Message-Id:In-Reply-To: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:References: List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner: List-Archive; bh=Re2hQTtNAD8CYEK6W+NpLcveT//8Obo4//e0YXTuxTc=; b=jFUZ7q7H99n3 xPQxQwwN0FSWoZ4uDzb52Mb2epbh5Dk1Pu4v30mUzg4m2Tg2ytDV1g9i9KMQcFA0tV4ikY96WpUep tX7rbioDKzEJGCoLKywvVyc3NG+AnZxUhoiVokGz3Dua7cWzwUduasdtTK+DBdmn6tpeLNEJwsC0S jakRc=; Received: from cpc102320-sgyl38-2-0-cust46.18-2.cable.virginm.net ([82.37.168.47] helo=ypsilon.sirena.org.uk) by heliosphere.sirena.org.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iVaf4-0000Lk-F0; Fri, 15 Nov 2019 12:25:14 +0000 Received: by ypsilon.sirena.org.uk (Postfix, from userid 1000) id EF8D427415A7; Fri, 15 Nov 2019 12:25:13 +0000 (GMT) From: Mark Brown To: Chuhong Yuan Cc: "Cc:"@sirena.co.uk, "Cc:"@sirena.co.uk, Jonathan Hunter , Laxman Dewangan , linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org, linux-tegra@vger.kernel.org, Mark Brown , Thierry Reding Subject: Applied "spi: tegra20-slink: add missed clk_unprepare" to the spi tree In-Reply-To: <20191115083122.12278-1-hslester96@gmail.com> X-Patchwork-Hint: ignore Message-Id: <20191115122513.EF8D427415A7@ypsilon.sirena.org.uk> Date: Fri, 15 Nov 2019 12:25:13 +0000 (GMT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patch spi: tegra20-slink: add missed clk_unprepare has been applied to the spi tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-5.5 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 04358e40ba96d687c0811c21d9dede73f5244a98 Mon Sep 17 00:00:00 2001 From: Chuhong Yuan Date: Fri, 15 Nov 2019 16:31:22 +0800 Subject: [PATCH] spi: tegra20-slink: add missed clk_unprepare The driver misses calling clk_unprepare in probe failure and remove. Add the calls to fix it. Signed-off-by: Chuhong Yuan Link: https://lore.kernel.org/r/20191115083122.12278-1-hslester96@gmail.com Signed-off-by: Mark Brown --- drivers/spi/spi-tegra20-slink.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/spi/spi-tegra20-slink.c b/drivers/spi/spi-tegra20-slink.c index 51573f41ed12..7f4d932dade7 100644 --- a/drivers/spi/spi-tegra20-slink.c +++ b/drivers/spi/spi-tegra20-slink.c @@ -1072,7 +1072,7 @@ static int tegra_slink_probe(struct platform_device *pdev) ret = clk_enable(tspi->clk); if (ret < 0) { dev_err(&pdev->dev, "Clock enable failed %d\n", ret); - goto exit_free_master; + goto exit_clk_unprepare; } spi_irq = platform_get_irq(pdev, 0); @@ -1145,6 +1145,8 @@ static int tegra_slink_probe(struct platform_device *pdev) free_irq(spi_irq, tspi); exit_clk_disable: clk_disable(tspi->clk); +exit_clk_unprepare: + clk_unprepare(tspi->clk); exit_free_master: spi_master_put(master); return ret; @@ -1158,6 +1160,7 @@ static int tegra_slink_remove(struct platform_device *pdev) free_irq(tspi->irq, tspi); clk_disable(tspi->clk); + clk_unprepare(tspi->clk); if (tspi->tx_dma_chan) tegra_slink_deinit_dma_param(tspi, false); -- 2.20.1