From patchwork Tue Mar 1 14:43:20 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oleksij Rempel X-Patchwork-Id: 8465691 Return-Path: X-Original-To: patchwork-linux-spi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 4C7A39F38C for ; Tue, 1 Mar 2016 14:48:12 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8EF2620154 for ; Tue, 1 Mar 2016 14:48:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A642A200D0 for ; Tue, 1 Mar 2016 14:48:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753862AbcCAOsJ (ORCPT ); Tue, 1 Mar 2016 09:48:09 -0500 Received: from mout.gmx.net ([212.227.15.19]:58755 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753523AbcCAOsI (ORCPT ); Tue, 1 Mar 2016 09:48:08 -0500 Received: from localhost.localdomain ([80.187.99.114]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0MN0jA-1aYZjD1qx6-006c2d; Tue, 01 Mar 2016 15:48:02 +0100 From: Oleksij Rempel To: fixed-term.Oleksij.Rempel@de.bosch.com, geert@linux-m68k.org, dirk.behme@de.bosch.com, broonie@kernel.org, linux-spi@vger.kernel.org, devicetree@vger.kernel.org, robh+dt@kernel.org Cc: Oleksij Rempel Subject: [PATCH 6/6] spi: bitbang: set new SPI_FC_* flags Date: Tue, 1 Mar 2016 15:43:20 +0100 Message-Id: <1456843400-20696-6-git-send-email-linux@rempel-privat.de> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1456843400-20696-1-git-send-email-linux@rempel-privat.de> References: <56D448E1.6090006@de.bosch.com> <1456843400-20696-1-git-send-email-linux@rempel-privat.de> X-Provags-ID: V03:K0:+4kW9dqEayZXpSYKcSyw2q2t0pJEwFbtvg654dIuqz70ku53Aa0 Koknk8gPnY5ljxwaoezf3uEZFjjVNYgGCF3zPX3X/ZtHRUFvXTTJXkO6TwiSmx0jPpLDpqu b0ICqLLSD81koV+SfNvqXhT22Bu4XmkpyQL9NxUsdsVVCMm69NvQUvyRjptoiQUj9uDdWxb FuuWNfGopgovTDK+lkrAQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:hiVkbM2j2II=:K4MIgF7gI1PZMAs1sebF+k G36L2/NZ3G+pzngc/tXwVmMWRU69yf1gcS028wdft8RwvlPQgLpLBRh3m5qEjWYkFyDV4w1xt Ti75e6fmifElOT7YPHpvdv/4XQlPTxzGp6EFH6vjg9WGV7bPtqtFoTGZpfgx43BEAdBk9ka/w HRbKtFRtZP28G2ZDNK+D8qxo2316XBKYf0RTh4ubuTDGQcMu3butJAp+PkFUZe695Grpm/wH+ jXOjdHTniAZhmypOiJMgUjVMLAY8wv7O7vcbCOLLspUnla3yEwginQDsCnONMevpNGATxw/+S RpACjZ+prB8tRNqI67ruo1u00ET56mWpp4da4tirLWiHwZxRy/J8SEl9UkJP9cLzGws1N8ehv 6JtE+COu1UQGoQWXFqJAs3DsUZ+ZIm8KnKeXdUomBAkK+56dGxc5agu1sddcLlK5hCF4mK0yV MJqrSgFMBgkWCg4T4w8AWSl6lOLMWcQfcv+/KpW4+cfrngApMnu7Al2L15Yl9Igj3RamLGw+B ZVTllkGGxtg9t9qmXzgelnqgW+i84oUE2OLblG78idMEVMuulS6c5x1adWx2j/pt1S0KBhvfQ lfH4Wt33XjR1hlFSK3Kl4jpO2Lm2kVafX1hFuNLyCSc2tkQLJE0Wd8DNtLj9mghFEk30sEdLE VpAu8lKVPl+YvuVKE5NdOFsNgMJpdkb6ibHfq9SLv/lubTV0E2lMpT9BMrbKw2Tv1W6zuxel+ SjrFYjYmX46smf1gb+UtUde3t10A74L7iNmqnfpOCVRNJOf0KhaFuUa3REoKcYko2SsDAUYm7 /4lFB3z Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP to indicate flow control support Signed-off-by: Oleksij Rempel --- drivers/spi/spi-bitbang.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/spi/spi-bitbang.c b/drivers/spi/spi-bitbang.c index 3aa9e6e..5b17295 100644 --- a/drivers/spi/spi-bitbang.c +++ b/drivers/spi/spi-bitbang.c @@ -363,7 +363,9 @@ int spi_bitbang_start(struct spi_bitbang *bitbang) mutex_init(&bitbang->lock); if (!master->mode_bits) - master->mode_bits = SPI_CPOL | SPI_CPHA | bitbang->flags; + master->mode_bits = SPI_CPOL | SPI_CPHA | + SPI_FC_READY | SPI_FC_STOP_ACK | + SPI_FC_REQUEST | bitbang->flags; if (master->transfer || master->transfer_one_message) return -EINVAL;