From patchwork Fri Jan 24 09:27:32 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 232999 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4B24BC35242 for ; Fri, 24 Jan 2020 11:15:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 185542071A for ; Fri, 24 Jan 2020 11:15:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579864549; bh=Yi5qu4aHdDgsV1KKN5baiA4feFpXNXK78xm7HNeFLCU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=P+N1ItIa26Y7noIYmiF2Td8Y7QRKX95r9yTiiFu7hqt3ZTc6tKvWNI7STdUkpraTD 5gZj66FnZB5OpnaaLG3eEHQ2ugsSL2UGNhoSU9l8w9nRtGRjdN4MUrUeKBYstOnvBt qIHfpdqOP8+5YFf50dsoi4vrM6/g3giM1gioTQac= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390154AbgAXLPo (ORCPT ); Fri, 24 Jan 2020 06:15:44 -0500 Received: from mail.kernel.org ([198.145.29.99]:52346 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390166AbgAXLPo (ORCPT ); Fri, 24 Jan 2020 06:15:44 -0500 Received: from localhost (ip-213-127-102-57.ip.prioritytelecom.net [213.127.102.57]) (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 EE11E20663; Fri, 24 Jan 2020 11:15:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579864543; bh=Yi5qu4aHdDgsV1KKN5baiA4feFpXNXK78xm7HNeFLCU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=geIMqApNBQFgGaOWC7U9TQ+ctmWGC+fCfkqeNxZCBpMGAxkJhkweMBVAtXaVeIRlW z72zPHqVasmoPkmY7DNyDsWX5IjnotcIMHgZ6GkuWBlFmc62mCbfZ2w3cRmmemqTCw C8e6lxXUYs2YamgrupRa/Lc5OOxl7QogkucNh9io= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sowjanya Komatineni , Mark Brown , Sasha Levin Subject: [PATCH 4.19 282/639] spi: tegra114: clear packed bit for unpacked mode Date: Fri, 24 Jan 2020 10:27:32 +0100 Message-Id: <20200124093122.140135179@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200124093047.008739095@linuxfoundation.org> References: <20200124093047.008739095@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Sowjanya Komatineni [ Upstream commit 7b3d10cdf54b8bc1dc0da21faed9789ac4da3684 ] Fixes: Clear packed bit when not using packed mode. Packed bit is not cleared when not using packed mode. This results in transfer timeouts for the unpacked mode transfers followed by the packed mode transfers. Signed-off-by: Sowjanya Komatineni Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- drivers/spi/spi-tegra114.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/spi/spi-tegra114.c b/drivers/spi/spi-tegra114.c index a1888dc6a938a..fd039cab768a0 100644 --- a/drivers/spi/spi-tegra114.c +++ b/drivers/spi/spi-tegra114.c @@ -730,6 +730,8 @@ static int tegra_spi_start_transfer_one(struct spi_device *spi, if (tspi->is_packed) command1 |= SPI_PACKED; + else + command1 &= ~SPI_PACKED; command1 &= ~(SPI_CS_SEL_MASK | SPI_TX_EN | SPI_RX_EN); tspi->cur_direction = 0;