Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp1790394ybm; Thu, 23 May 2019 06:51:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqxajUxwnoK5KzzvtF83V88k0PLjGeCGQqgW7KJLfiuqwZ9tUQ4/3e7vk6AdaCwZb0cZ1Ss2 X-Received: by 2002:aa7:9104:: with SMTP id 4mr73709183pfh.66.1558619478680; Thu, 23 May 2019 06:51:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558619478; cv=none; d=google.com; s=arc-20160816; b=Qd2AfQVAoKAZJEs+5DEmy3fzWbG7o/ZUaWQSrUThBlrDOpwDnGY5sg4FF4RtOmiTnz hzEBsFQtO4O1gNBWpxfBu8CGVp7thNhFc7oflBGg5bfjA5CmR9s92M7KHbLf7XVagLNA GLSFNPUO4i90CeHryLbc3j8gXGeZDZu8hH3sRK+QzOALccz2pmugS8bhzWnGZf/0tlUW IuJeD1sgxTfSAO4o3QfGlPdgSdmMNrlXtvvwXRLRP5s3bMuKuWEdjCPHBnWajqQNlAHl m15oYnofjpHBDHgqhcdD9JudjffRwAOW9aqi5NIu0keE6yFTWtXNJv9+A617ur5Y8XJg 5J7g== 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=1kjp5B2XtNPpJsBQ7cTydAyUIRbu7ky/JeLneZsTG7w=; b=aQU4vlqEq+TxhXJqixmzT33YRqXztr1HzDSB1qVRDb2l7cWqd7LM8I1PkN/NBZcmXu YsBxvMshOA5YmJyVIczVO9b8xfUaXkJ4nbf8vtb8WzOFbM9zS/2OxctzcrBvDK01Oa2b FBuAN3dpRm3oA6O7AaweLx+PeSoiQtyCM3B6WmfLdLVVUW/RBXzXQf6N63zGuuuB6e6S XsFQjhP3Q3xTh8YJsjr8Q/fTi32ELttKP/P6AzYPQgin/XMRdNr0m0hEKitGhVJdC+O1 hqhj++meli817gjFIePlJ4mxrNpW26wPbAmEbR8F5AlO5iHeQU/D814HsuXUGH4KzLMb Lw7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=Hmwi4vH6; 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 q124si7439390pgq.381.2019.05.23.06.51.03; Thu, 23 May 2019 06:51:18 -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=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=Hmwi4vH6; 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 S1731032AbfEWNt2 (ORCPT + 99 others); Thu, 23 May 2019 09:49:28 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:45232 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730916AbfEWNtM (ORCPT ); Thu, 23 May 2019 09:49:12 -0400 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=1kjp5B2XtNPpJsBQ7cTydAyUIRbu7ky/JeLneZsTG7w=; b=Hmwi4vH6Io2f jremk+WTRjz/gl7NgjzxDjZ/TrPF3FBmhqZllJlfRwqnUdqk6gxQiR7HcFkPIdEdYlIpDKkV9pzNj waetbex3+oyh/5XvBrnVUbsOSFS7Edlz1oQGVHGH5WWNr4e0kiruMCvCYFd2F0dv18PwS3sDOQDqY wTD6E=; Received: from cpc102320-sgyl38-2-0-cust46.18-2.cable.virginm.net ([82.37.168.47] helo=debutante.sirena.org.uk) by heliosphere.sirena.org.uk with esmtpa (Exim 4.89) (envelope-from ) id 1hTo5k-0000FU-MJ; Thu, 23 May 2019 13:49:08 +0000 Received: by debutante.sirena.org.uk (Postfix, from userid 1000) id A81C51126D25; Thu, 23 May 2019 14:49:06 +0100 (BST) From: Mark Brown To: Sowjanya Komatineni Cc: broonie@kernel.org, jonathanh@nvidia.com, ldewangan@nvidia.com, linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org, linux-tegra@vger.kernel.org, Mark Brown , natechancellor@gmail.com, thierry.reding@gmail.com Subject: Applied "spi: tegra114: set master cleanup and also invoke it on probe error" to the spi tree In-Reply-To: <1558574945-19275-1-git-send-email-skomatineni@nvidia.com> X-Patchwork-Hint: ignore Message-Id: <20190523134906.A81C51126D25@debutante.sirena.org.uk> Date: Thu, 23 May 2019 14:49:06 +0100 (BST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patch spi: tegra114: set master cleanup and also invoke it on probe error has been applied to the spi tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-5.3 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 0e896f380b845d3fb889f27eb6026cd494bb3cd8 Mon Sep 17 00:00:00 2001 From: Sowjanya Komatineni Date: Wed, 22 May 2019 18:29:04 -0700 Subject: [PATCH] spi: tegra114: set master cleanup and also invoke it on probe error This patch sets master cleanup and also invokes tegra spi clean on tegra spi probe failure to release tegra spi client data. Signed-off-by: Sowjanya Komatineni Signed-off-by: Mark Brown --- drivers/spi/spi-tegra114.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/spi/spi-tegra114.c b/drivers/spi/spi-tegra114.c index 253a7f182fc9..15f9368fc0f8 100644 --- a/drivers/spi/spi-tegra114.c +++ b/drivers/spi/spi-tegra114.c @@ -966,6 +966,8 @@ static int tegra_spi_setup(struct spi_device *spi) ret = pm_runtime_get_sync(tspi->dev); if (ret < 0) { dev_err(tspi->dev, "pm runtime failed, e = %d\n", ret); + if (cdata) + tegra_spi_cleanup(spi); return ret; } @@ -1331,6 +1333,7 @@ static int tegra_spi_probe(struct platform_device *pdev) SPI_TX_DUAL | SPI_RX_DUAL | SPI_3WIRE; master->bits_per_word_mask = SPI_BPW_RANGE_MASK(4, 32); master->setup = tegra_spi_setup; + master->cleanup = tegra_spi_cleanup; master->transfer_one_message = tegra_spi_transfer_one_message; master->set_cs_timing = tegra_spi_set_hw_cs_timing; master->num_chipselect = MAX_CHIP_SELECT; -- 2.20.1