Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp71741yba; Mon, 1 Apr 2019 01:55:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqxNC2D22Blgq0AN3p1fw4nkEOaaa+EMT0+H0JjII4RcaYVOs7h/EqqxOt3Man0Ks4JYUVxb X-Received: by 2002:a63:be02:: with SMTP id l2mr37700477pgf.48.1554108954064; Mon, 01 Apr 2019 01:55:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554108954; cv=none; d=google.com; s=arc-20160816; b=OhCGp7O0stGNbKgVFOlet5jelqMaquR5V0ooZ/BAMOe3KWDPM4XLCGQfjd1T5hoFFe T2Qqte93SJH8iX/oTpKst8Dq5kLUtroiLS/qxTBMHod6Y9OJS5SlHtttzapxFgDew7Kf yQmfIFAuXi0r1fbOMg2bDKMNrRN/SSJXqPjO4uYIChZphGWyB99U7CkBbRmLc8GkUgfz xzleMxuA8UC56+tMSuvOyOv/a2K1aG8rhmDJoGlNHGj0KeoHRtSqg37fQe6TvQwoAD/m 2+RVwIOlvf/OPjKGh4ZgmMXBWSwiHQbABvPXMHkhM/TkJdXt9YCqLo9FAhjeMXy4Qa7t 7XQA== 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=cJgPI9Gj+y6hKPumTwgJ+NLdRyKtEqoGlDM7FOLE/pE=; b=sMxsDUEk2ISC1IQyzc3jT1289qmIaTqYIAjyVGM3stfHfdlqMztQRdruuQwrwDCyBy XuQeIwjGS5MnQ9axer8aA9DM3wfiND5QQ6h08dxcZyjFYJLrdQmuzFJr6mmDIpiw7lKN TYmpHLgJxY+Zk+02913XrakR1Tqq+pcLzS4sdPzYW8EPl0G58zsSvG2tx6mxqTy2WDKV GBYgGxz4ycpp6kQG5QYKWL1rbyQWjl0qbE/5KvTDRNY1OlUpfl66rzCzpS+HSdC7Jn5N euI6K++ex8Y3IicAqI7lS35yPbvUucztAikujHkxwUdAwArwpyxXPUiDEhBX9zRvsnjW bHcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=Rb9KHPnT; 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 v24si8211459pgi.286.2019.04.01.01.55.38; Mon, 01 Apr 2019 01:55:54 -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=Rb9KHPnT; 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 S1728838AbfDAIyg (ORCPT + 99 others); Mon, 1 Apr 2019 04:54:36 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:33400 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728796AbfDAIye (ORCPT ); Mon, 1 Apr 2019 04:54:34 -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=cJgPI9Gj+y6hKPumTwgJ+NLdRyKtEqoGlDM7FOLE/pE=; b=Rb9KHPnTQ3XH +F/a98pGj6Z5ZBIWoJX3Sltd8jFef42QayNTviLBlL3Ar7ZcnX8+0/OtWKpaW3pFQOuiuN0JENc4J r/Q6w/szxIhRyCmiaAWjZxmWUpG/jNuWLndDgD+KnJS6HmDiDrS6j9GO8qwNFClZ4SexRvB6Qlayd 3AMHU=; Received: from [147.50.13.10] (helo=finisterre.ee.mobilebroadband) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hAsi5-0008Pr-VI; Mon, 01 Apr 2019 08:54:30 +0000 Received: by finisterre.ee.mobilebroadband (Postfix, from userid 1000) id 177EA440083; Mon, 1 Apr 2019 09:54:27 +0100 (BST) From: Mark Brown To: Rasmus Villemoes Cc: Mark Brown , Mark Brown , "linux-spi@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Fabio Estevam , Rasmus Villemoes , linux-spi@vger.kernel.org Subject: Applied "spi: spi-fsl-spi: remove always-true conditional in fsl_spi_do_one_msg" to the spi tree In-Reply-To: <20190327143040.16013-2-rasmus.villemoes@prevas.dk> X-Patchwork-Hint: ignore Message-Id: <20190401085427.177EA440083@finisterre.ee.mobilebroadband> Date: Mon, 1 Apr 2019 09:54:27 +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: remove always-true conditional in fsl_spi_do_one_msg has been applied to the spi tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git 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 24c363623361b430fb79459ca922e816e6f48603 Mon Sep 17 00:00:00 2001 From: Rasmus Villemoes Date: Wed, 27 Mar 2019 14:30:50 +0000 Subject: [PATCH] spi: spi-fsl-spi: remove always-true conditional in fsl_spi_do_one_msg __spi_validate() in the generic SPI code sets ->speed_hz and ->bits_per_word to non-zero values, so this condition is always true. Signed-off-by: Rasmus Villemoes Signed-off-by: Mark Brown --- drivers/spi/spi-fsl-spi.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/spi/spi-fsl-spi.c b/drivers/spi/spi-fsl-spi.c index 3d7b50c65f36..6d114daa178a 100644 --- a/drivers/spi/spi-fsl-spi.c +++ b/drivers/spi/spi-fsl-spi.c @@ -384,12 +384,10 @@ static int fsl_spi_do_one_msg(struct spi_master *master, cs_change = 1; status = -EINVAL; list_for_each_entry(t, &m->transfers, transfer_list) { - if (t->bits_per_word || t->speed_hz) { - if (cs_change) - status = fsl_spi_setup_transfer(spi, t); - if (status < 0) - break; - } + if (cs_change) + status = fsl_spi_setup_transfer(spi, t); + if (status < 0) + break; if (cs_change) { fsl_spi_chipselect(spi, BITBANG_CS_ACTIVE); -- 2.20.1