From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CD8DB1C31 for ; Wed, 23 Nov 2022 09:41:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 28F33C433C1; Wed, 23 Nov 2022 09:41:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1669196481; bh=L/nM+BqdI8CQ0JsCB003896I7ZgPq+TeFIFtwjcT/VQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1xvj2mKInLaEZeINEZSTUNuIlIwkmDpixwrHYy0ZiH82ESkjwSpQ4lFsEbU2M+toz eoClD48PbZ9GQ54pl16hZpzFNMzfVyEmA1vo0Yi2AyotBAO57rZcTf6ne2j6FeFImu SHL45wjBeyFXtySf0F/yO52wGlovJWReiQk9kekI= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Krishna Yarlagadda , Mark Brown , Sasha Levin Subject: [PATCH 6.0 003/314] spi: tegra210-quad: Fix combined sequence Date: Wed, 23 Nov 2022 09:47:28 +0100 Message-Id: <20221123084625.639401875@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221123084625.457073469@linuxfoundation.org> References: <20221123084625.457073469@linuxfoundation.org> User-Agent: quilt/0.67 Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Krishna Yarlagadda [ Upstream commit 8777dd9dff4020bba66654ec92e4b0ab6367ad30 ] Return value should be updated to zero in combined sequence routine if transfer is completed successfully. Currently it holds timeout value resulting in errors. Signed-off-by: Krishna Yarlagadda Link: https://lore.kernel.org/r/20221001122148.9158-1-kyarlagadda@nvidia.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- drivers/spi/spi-tegra210-quad.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/spi/spi-tegra210-quad.c b/drivers/spi/spi-tegra210-quad.c index c89592b21ffc..904972606bd4 100644 --- a/drivers/spi/spi-tegra210-quad.c +++ b/drivers/spi/spi-tegra210-quad.c @@ -1157,6 +1157,11 @@ static int tegra_qspi_combined_seq_xfer(struct tegra_qspi *tqspi, msg->actual_length += xfer->len; transfer_phase++; } + if (!xfer->cs_change) { + tegra_qspi_transfer_end(spi); + spi_transfer_delay_exec(xfer); + } + ret = 0; exit: msg->status = ret; -- 2.35.1