Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp988828rwb; Thu, 8 Dec 2022 05:36:19 -0800 (PST) X-Google-Smtp-Source: AA0mqf72e3qdPXJyfhh02/wHNOU2HFqmmWe3M0s6U1p/MdvqQnqw2kJVRx5/GMazF4UutPE8Ae8d X-Received: by 2002:a17:90a:4889:b0:20d:d531:97cc with SMTP id b9-20020a17090a488900b0020dd53197ccmr104592993pjh.164.1670506579371; Thu, 08 Dec 2022 05:36:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670506579; cv=none; d=google.com; s=arc-20160816; b=iJ2XTV25dxw2FLt86l+yDYQ+3QGDazbSsyKL5VfE+IuYCR1pbxIZBLb51agBKPUrh+ YzW35vHd8eoEdfR0Jwoy3kzuuobR04W1ZEP3oJJ803/ThOsjOQp5JGEjm1Dw1XtmiFrb +0I9IOERNpUHtZZPzbcTmzCxeYNUL3TnldDmtlybXgrCtp8lQlaWW2tm0pXfKmoaBhOU DoruQ6DgmDpXHuIL7wGt01dLkXphf+wB55jFWktryULiulDvN34skt9zO/kuUSj2jPjy o3icWz96Ny8CLIhXcbPBJjVxoZDyS1xu5x9+Czmhv0ykpb1yCEokOr3iyqDdg0BbXmA5 vcjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version:date :message-id:subject:references:in-reply-to:cc:to:from:dkim-signature; bh=HlHrYdrc6Q2cmXipDlAjyqDD+bz8SieU3bDztZH2P6w=; b=n9ZXCzZJ1JNf3kuibORlGEDDrRP6RcJ5udQsQbXHxHvnxXOVjJM0aWyjhiMApgh+pf 1FR0vY3BHqbjtKW9ahCBxmv03weV8mRaCZAQvaDzYvGd1YJzQFOfjriiU5+zV9FXlqh+ E0rlNzXiA9LJ4GCQJD84rFE0tCTvzW2PeQWPBb5s20biNLZohPO1/EgRqqjHM+OA7ids h2ttcBjcJCrNszSBPllE7hMDMBILVWkDdqDlcv0V/8BF6ZzvZUcAjQAIy6lx7jDU6Q7X xxXZ1Bclqu2ddImSwyKvJG4SGFMOXE9p7CZAnGiPeiGPt3NkGgvJLEAt2fh/Oovjbu6Q oSOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Bg4ZOmKd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k16-20020a634b50000000b00476759b878csi23479682pgl.328.2022.12.08.05.36.09; Thu, 08 Dec 2022 05:36:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Bg4ZOmKd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229806AbiLHNOc (ORCPT + 73 others); Thu, 8 Dec 2022 08:14:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229470AbiLHNO3 (ORCPT ); Thu, 8 Dec 2022 08:14:29 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C575E6F0DF; Thu, 8 Dec 2022 05:14:28 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 6E3B661F15; Thu, 8 Dec 2022 13:14:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E3CD5C433B5; Thu, 8 Dec 2022 13:14:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1670505267; bh=Eyjqsy/poZbmtld0z1O67wMazI0L2vkuP340AZ0o2T0=; h=From:To:Cc:In-Reply-To:References:Subject:Date:From; b=Bg4ZOmKdgdzm0qRkMh/rwiOdVa7vvHVEDjaNGvZNDiDOJHgI4PMFmo2jO1VnvvAce GmtpJ3IPqCuXTyUNJ+CIHIprcByqFuQqfvMTb6DmdX1Yjf561CLQb7qZwwHrr4Iyw2 ZuASbbC6FzUfFsU8b82yK0PHcTdSiWd+d3NbNbkjtUkEeEEGRORdi48g3ywDSZuhLK d9QeJca8mnkKW5v/bfbjO5lvklOJBRzaBa3a4uPEadUikLAMr73RKgGPGL4w0BlpBA 6c31Eb/cnYTmYR7j6trwTTHCgQr0XK3eZdkg9g4N62orY7uJA4mvvHc7hKTQacR6ga 4O/++nRI6tHmA== From: Mark Brown To: linux-spi@vger.kernel.org, Kris Bahnsen Cc: linux-kernel@vger.kernel.org, mark@embeddedTS.com In-Reply-To: <20221207230853.6174-1-kris@embeddedTS.com> References: <20221207230853.6174-1-kris@embeddedTS.com> Subject: Re: [PATCH] spi: spi-gpio: Don't set MOSI as an input if not 3WIRE mode Message-Id: <167050526663.166799.12502400746209838565.b4-ty@kernel.org> Date: Thu, 08 Dec 2022 13:14:26 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Mailer: b4 0.11.0-dev-b77ec X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 07 Dec 2022 15:08:53 -0800, Kris Bahnsen wrote: > The addition of 3WIRE support would affect MOSI direction even > when still in standard (4 wire) mode. This can lead to MOSI being > at an invalid logic level when a device driver sets an SPI > message with a NULL tx_buf. > > spi.h states that if tx_buf is NULL then "zeros will be shifted > out ... " If MOSI is tristated then the data shifted out is subject > to pull resistors, keepers, or in the absence of those, noise. > > [...] Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next Thanks! [1/1] spi: spi-gpio: Don't set MOSI as an input if not 3WIRE mode commit: 3a6f994f848a69deb2bf3cd9d130dd0c09730e55 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