Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp1789962ybm; Thu, 23 May 2019 06:50:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqxU1Tbd8Mq7GBTYWAdzMiL7Whokxjx5eaZVhcnkqNld4d80Q7tsTDSYdpiOHCoOH570bHEp X-Received: by 2002:a63:1c16:: with SMTP id c22mr37553416pgc.333.1558619453338; Thu, 23 May 2019 06:50:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558619453; cv=none; d=google.com; s=arc-20160816; b=R5Gm9AHXHJ1N+TIeS4VRThI8eFtrVkd4axic41udUZ26taM+X0i56WnM7j10pVRZbL G/Sm/Dx2bVkiKBgxBZ/IJp9TKUpREda/SK6I3mSRgLpWZ1IOg6QmqZeRxO9OU9wTZqxK qOxCZtFFuHLni7s6f3IUsh3CtbRZ80ciCU+Afoj68jaVd4cLM3hcbjMk/oreSX96zIxE zfvPOx28JGSWD11hzSXt6ZPCt9hZWxsv/b/ZUc+eFXb3ULYDzbweG3I54nabWCPEktMb Z8s8XhTL+tNBv9lhAqpgn/SPDTtHAHw7qimooLCvLDFmJlDTeZeHyhUvX3WwdEkvxeRi P5zg== 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=BPHoXQdQWP2vtoG73l1wLxzzNqUjSr1fvg2ItXFSI74=; b=wlBBLHYahyXYy/0+Y1+AElMstOGajKkZKlcphuJCD5XwMgSi15Tlh0YsZM9+PWNMva pGJjopLCYGC0XUQAqVNlx6jhQ+xrP8c86FM1gcRm/Gf08oSlss0emM+dZwVHcQTRCILr uSsR2TrhgUnXv7UmM3ZnO0LD+GghV4vDi5D9DuA1Cfdeu2ELGb7Diz54bQm87mn4c7rc WeFNw9WdswW4nYjfAz/avSItukYok8N/xy1NadX3uciPTXL0uTbxGgXjlQfP0saJj7Ne 3Pw5OTM5tRa0nw88bl4VZGsctpyhJhKjISnreYCtp5CC8C72wy0r2qrWl9/QenZQZLwW 0OAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b="Iwlg/7nx"; 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 n3si31637447pgh.53.2019.05.23.06.50.37; Thu, 23 May 2019 06:50:53 -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="Iwlg/7nx"; 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 S1730963AbfEWNtP (ORCPT + 99 others); Thu, 23 May 2019 09:49:15 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:45268 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730935AbfEWNtN (ORCPT ); Thu, 23 May 2019 09:49:13 -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=BPHoXQdQWP2vtoG73l1wLxzzNqUjSr1fvg2ItXFSI74=; b=Iwlg/7nxyjgR XWoqm5mKzTA5MZ7n2C8A/shhWK/3x5Qge8wzWGlUTs+6BwPKCo3WI1dnN8oNK6z5n1WDGX+ugAqKv Zf8swcSp7R2S5r8X+Lwnh3FFfF0GJbNkuhc+mX/ZPdXVYT+C2Uk1Qpi10d2jquaOjv1HFf8LghGfn xpZpI=; 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-0000FT-DQ; Thu, 23 May 2019 13:49:08 +0000 Received: by debutante.sirena.org.uk (Postfix, from userid 1000) id F15B31126D2A; Thu, 23 May 2019 14:49:07 +0100 (BST) From: Mark Brown To: Christophe Leroy Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-spi@vger.kernel.org, Mark Brown Subject: Applied "spi: spi-fsl-spi: call spi_finalize_current_message() at the end" to the spi tree In-Reply-To: <9c1b9545e6683666a795cd89070fa9491f33b9da.1558522754.git.christophe.leroy@c-s.fr> X-Patchwork-Hint: ignore Message-Id: <20190523134907.F15B31126D2A@debutante.sirena.org.uk> Date: Thu, 23 May 2019 14:49:07 +0100 (BST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patch spi: spi-fsl-spi: call spi_finalize_current_message() at the end has been applied to the spi tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-5.2 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 44a042182cb1e9f7916e015c836967bf638b33c4 Mon Sep 17 00:00:00 2001 From: Christophe Leroy Date: Wed, 22 May 2019 11:00:36 +0000 Subject: [PATCH] spi: spi-fsl-spi: call spi_finalize_current_message() at the end spi_finalize_current_message() shall be called once all actions are finished, otherwise the last actions might step over a newly started transfer. Fixes: c592becbe704 ("spi: fsl-(e)spi: migrate to generic master queueing") Signed-off-by: Christophe Leroy Signed-off-by: Mark Brown --- drivers/spi/spi-fsl-spi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spi-fsl-spi.c b/drivers/spi/spi-fsl-spi.c index b36ac6aa3b1f..7fbdaf066719 100644 --- a/drivers/spi/spi-fsl-spi.c +++ b/drivers/spi/spi-fsl-spi.c @@ -432,7 +432,6 @@ static int fsl_spi_do_one_msg(struct spi_master *master, } m->status = status; - spi_finalize_current_message(master); if (status || !cs_change) { ndelay(nsecs); @@ -440,6 +439,7 @@ static int fsl_spi_do_one_msg(struct spi_master *master, } fsl_spi_setup_transfer(spi, NULL); + spi_finalize_current_message(master); return 0; } -- 2.20.1