Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3350597yba; Tue, 16 Apr 2019 09:34:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqy2DdyhnRTQjPpzZGVs/3O+NtGToFxuMjfQfSTkq92uZRaeVMZ75chexqxEE17nk3P19f80 X-Received: by 2002:a62:e213:: with SMTP id a19mr84957341pfi.85.1555432462424; Tue, 16 Apr 2019 09:34:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555432462; cv=none; d=google.com; s=arc-20160816; b=AUKF4S9SUXbm9eXv//JJ+mlr9r15Qz+J7urVqYAvJEKW+30HEqEoo6psNyqmKohwQD JyY9e2OpQlkvRZQsJD7MoTiGis8uJdkBFLRotyfeQUX8/XW8oLNbX/5WFnLfLEgm4clK ccs8q0gPjZgodJFxGOwpquMPEOxxi4/i5H3Gb2Y+e3YsPOnSWRdWrz+kE0C7PWOT0oOF mXsQqG1+wXE9pj4adBoAu92teDKxjX5F9c0EYM2xI7Cvf2B2wrnYtZR0cwysrFgd0oCn 1rfLMODlCGBJvKRQnPADRXPGI/PhoQ00GWl/hln0dqPwxdCeyq/AEpLHAGT+gF717JF9 PsXg== 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=WRZTYL0qKzDTJkr5+DO6NFqzZol0XgpRy+qpj9E/6y0=; b=gA2LiBUGISuj3+4x4FsB9YZqQgBr1vZ01uXrFiVGt7YoQHcmjbZxP4yyZIveB5UFHG Krp0a6QKTInK0nWeKMZeJJ8CtFC/IU9EkQMuZaJHfjJ/4fUubRWKEGi6VG/2RwCbnJ33 IpkcvMZpxJDZsQ3QiG8+D+oT+cQXaP4tY2yBROkKhGYUsDrOrNXwqOv/bujOTNZ2rE93 GTafAlDi9/bJ2B0rOBjkr4d+R6hn+yfUbPaS+WjBy/pGsLs8qeZG+IDM8J/imYQbK6IB WqEi11ldW4UPqgHX6jfDVQsf3d2rxvMAb61RJHtx0hxpmKgghKQ8gMCKJEzw1Y/TysJF dDww== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b="kGBns/O4"; 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 k71si46347906pgd.583.2019.04.16.09.34.06; Tue, 16 Apr 2019 09:34:22 -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="kGBns/O4"; 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 S1730100AbfDPQdM (ORCPT + 99 others); Tue, 16 Apr 2019 12:33:12 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:32930 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730050AbfDPQdI (ORCPT ); Tue, 16 Apr 2019 12:33:08 -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=WRZTYL0qKzDTJkr5+DO6NFqzZol0XgpRy+qpj9E/6y0=; b=kGBns/O4RtAn Wd90T+TlOXH1Z9b0M9X84r8YR/PlYQkYI5DJt7ThiCOwRUT2acjF/quoMssBtdS/X+YGLKcKV/cLz 8nTfPxCB/QFQ4gMVtuTzKMUIiXWkrsDwHgUWie4DsLgPmTfTQ9eczaxyfLHJofBarxtTWZgvl48Em a/2wQ=; 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 1hGR15-0007rm-5x; Tue, 16 Apr 2019 16:33:03 +0000 Received: by debutante.sirena.org.uk (Postfix, from userid 1000) id 956F211281C6; Tue, 16 Apr 2019 17:32:57 +0100 (BST) From: Mark Brown To: Sowjanya Komatineni Cc: broonie@kernel.org, devicetree@vger.kernel.org, jonathanh@nvidia.com, kyarlagadda@nvidia.com, ldewangan@nvidia.com, linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org, linux-tegra@vger.kernel.org, Mark Brown , mark.rutland@arm.com, robh+dt@kernel.org, skomatineni@nvidia.com, talho@nvidia.com, thierry.reding@gmail.com Subject: Applied "spi: tegra114: fix PIO transfer" to the spi tree In-Reply-To: <1555363834-32155-2-git-send-email-skomatineni@nvidia.com> X-Patchwork-Hint: ignore Message-Id: <20190416163257.956F211281C6@debutante.sirena.org.uk> Date: Tue, 16 Apr 2019 17:32:57 +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: fix PIO transfer has been applied to the spi tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-5.1 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 3f6e3f7843a6a1667ed890ca51a1388fc7bf3429 Mon Sep 17 00:00:00 2001 From: Sowjanya Komatineni Date: Mon, 15 Apr 2019 14:30:26 -0700 Subject: [PATCH] spi: tegra114: fix PIO transfer This patch fixes PIO mode transfer to use PIO bit in SPI_COMMAND1 register. Current driver uses DMA_EN instead of PIO bit. Signed-off-by: Sowjanya Komatineni Signed-off-by: Mark Brown --- drivers/spi/spi-tegra114.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/spi/spi-tegra114.c b/drivers/spi/spi-tegra114.c index b57f10182fae..21e4fdad013f 100644 --- a/drivers/spi/spi-tegra114.c +++ b/drivers/spi/spi-tegra114.c @@ -641,8 +641,9 @@ static int tegra_spi_start_cpu_based_transfer( tspi->is_curr_dma_xfer = false; - val |= SPI_DMA_EN; - tegra_spi_writel(tspi, val, SPI_DMA_CTL); + val = tspi->command1_reg; + val |= SPI_PIO; + tegra_spi_writel(tspi, val, SPI_COMMAND1); return 0; } -- 2.20.1