Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1951971rwd; Wed, 17 May 2023 03:52:18 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ75Pok77Lh1gkZNvVCZ3jnm0wI/j8dC8Nqli96wFD35H8kOHZ4qF/Tju4Mlr9XgS4l5cNuX X-Received: by 2002:a05:6a20:6a2b:b0:105:6d0e:c037 with SMTP id p43-20020a056a206a2b00b001056d0ec037mr15288250pzk.38.1684320738189; Wed, 17 May 2023 03:52:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684320738; cv=none; d=google.com; s=arc-20160816; b=OD0tuYb7mXZ0NgZzVlB78gLAxDXf5qJ9P/plnM2J0H1It8wlvEXC79b2cPRAqK4owp 56ouvDQBu3RSpo6V+THwRqh36KKii+PLtn+f8XOihsGhbaDAuMkfnH39U77oWF6M/VrB aqg3+I9HGetzkZiwLwBSB3Fc/R1o/Hty3deqQbAwtsOXw/phuRAT7zxE9if+EucmsriI 5cLcRPNGihvoP6S9aLCdBEsvueIkWdbRH7hNE7cjeayfO1d460N1XA8KQjmNr17tAuAC VN5JWZOwvZ58IgdyhLjHPRhTxVUuJequ+/oG3pFos3K5bkH6G+NYOMS1tPRl1O28/D6z nFfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:from :dkim-signature; bh=wwJ2jZY3dnjuT0EUFOXSV7VbKcctKtPzov6U1NhPAW4=; b=BLqaXKdI7710tclNdzwQeqfoWuSqcSGqrkQ/zhsRHRs2EK+UxF62n7TliCY5NJMZx8 aV/9iuSS2l/wIWcChKwytq/1X72/kbAD1wxYgss0qLlrbmpAemTlFFz5P2BJ07Olxjlh xYMkYSjkjPUlQPgao2+Ho4tPey0LBu8Ur4bqy3AMUFZBXgO4Vq/1vozblpwqpirHda20 hmHMOmXWLPt4szzwnRJA756IW3iJJdFtT+2LpEstCoGHzqws72M2J+k6Sij1lNo0an9S HZSp2LcBlxxGJSvR9QJhdj1y4rtEQEzbH0mYlsRGOv6GHXYyDb8PgyugIHmP9lI8Nhfh 97sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20221208 header.b=HQhZP+Wp; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j184-20020a638bc1000000b004ff6eee7176si20882886pge.261.2023.05.17.03.52.05; Wed, 17 May 2023 03:52:18 -0700 (PDT) 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=fail header.i=@gmail.com header.s=20221208 header.b=HQhZP+Wp; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230391AbjEQKbA (ORCPT + 99 others); Wed, 17 May 2023 06:31:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49224 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230296AbjEQKaw (ORCPT ); Wed, 17 May 2023 06:30:52 -0400 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D29FD3C1E; Wed, 17 May 2023 03:30:50 -0700 (PDT) Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-96aae59bbd6so102983866b.3; Wed, 17 May 2023 03:30:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684319449; x=1686911449; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=wwJ2jZY3dnjuT0EUFOXSV7VbKcctKtPzov6U1NhPAW4=; b=HQhZP+Wp86x1Uus2oyWNXBtJ8lRewWxzTwOG8b2mWcBX7OOl8oOdFulpCWXQrc9LtN mmbAl6v2a0AoUqnJS8LlAc2EpYdKgEOauo0KzYIX1+FlsTEbFhPLVLjIshf1pa/UKF5h eSrEzfFvYNTobR3SeJZbr/+dPi61VG0mXTvdAvRfwzABPx45ktvI9D2ZuEUrqhxRbW0x 7gsYkEjU/UTfWrQgIOn4FTwPXxf9XPz+7DGXtDPEURQ4RliWFeuLIJac1ePlzCKMfLys UXUm2vkyTKzjf/s+Qkh1/kURK07hytgRXq4OgWduc8BZumlatqJ780xhNAM4rb38Qg4J DonQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684319449; x=1686911449; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wwJ2jZY3dnjuT0EUFOXSV7VbKcctKtPzov6U1NhPAW4=; b=CGslV2WmA7JBOhzfXGQKb4O+2PLzcd13SFUh8Fow0H6Y49hMK5+9hD9Ul8yIIL7ufD zsBjvG56WpZfmD05sZs1O3GwGQfH4JUjh9TMT7fkhDhsLYGYvCP38ZR1nM7osdHi9VU5 IuzJmdcoWftZo+KwAyCMMYxYwGx8e9Cg2buNFbepKH2pErnMr9h74I1OJ9WE2twWQpzC YLihmxdbBDVUn9yA49/4nKEL3QYby9HIO0hbr6e+6ySsd1skYf2KeOsPORIBCvw+vEaJ cAgJsXmVhHNUMhfpAwMotJG3vJ3HdO+Sy3Zo8BAbK/wpmz8rbuowEQQQRRh8Iga03pRD 7prA== X-Gm-Message-State: AC+VfDxq9auYZ4VhjU/2O6PkZ/u7vgwnl5qyXp0A0ysvqVdVknzoCvs5 YujaBwjw4/3sEzNF41FYvQqdHfUtpXb66D7+ X-Received: by 2002:a17:907:31c9:b0:94f:6627:22b5 with SMTP id xf9-20020a17090731c900b0094f662722b5mr35712100ejb.47.1684319448765; Wed, 17 May 2023 03:30:48 -0700 (PDT) Received: from wslxew193.fritz.box (p200300c78700c900d536eaeb32769819.dip0.t-ipconnect.de. [2003:c7:8700:c900:d536:eaeb:3276:9819]) by smtp.gmail.com with ESMTPSA id bu2-20020a170906a14200b0096654fdbe34sm12235758ejb.142.2023.05.17.03.30.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 May 2023 03:30:48 -0700 (PDT) From: Boerge Struempfel Cc: boerge.struempfel@gmail.com, bstruempfel@ultratronik.de, andy.shevchenko@gmail.com, festevam@gmail.com, amit.kumar-mahapatra@amd.com, broonie@kernel.org, Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , NXP Linux Team , linux-spi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] spi: spidev: add SPI_MOSI_IDLE_LOW mode bit Date: Wed, 17 May 2023 12:30:07 +0200 Message-Id: <20230517103007.26287-3-boerge.struempfel@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230517103007.26287-1-boerge.struempfel@gmail.com> References: <20230517103007.26287-1-boerge.struempfel@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Allow userspace to set SPI_MOSI_IDLE_LOW mode bit using the SPI_IOC_WR_MODE32 ioctl. Signed-off-by: Boerge Struempfel --- drivers/spi/spidev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spidev.c b/drivers/spi/spidev.c index 39d94c850839..e50da54468ec 100644 --- a/drivers/spi/spidev.c +++ b/drivers/spi/spidev.c @@ -64,7 +64,7 @@ static_assert(N_SPI_MINORS > 0 && N_SPI_MINORS <= 256); | SPI_NO_CS | SPI_READY | SPI_TX_DUAL \ | SPI_TX_QUAD | SPI_TX_OCTAL | SPI_RX_DUAL \ | SPI_RX_QUAD | SPI_RX_OCTAL \ - | SPI_RX_CPHA_FLIP) + | SPI_RX_CPHA_FLIP | SPI_MOSI_IDLE_LOW) struct spidev_data { dev_t devt; -- 2.25.1