From patchwork Tue Mar 1 14:43:18 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oleksij Rempel X-Patchwork-Id: 8465671 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 21D809F9A0 for ; Tue, 1 Mar 2016 14:47:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5EC99200C6 for ; Tue, 1 Mar 2016 14:47:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 627F320304 for ; Tue, 1 Mar 2016 14:47:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754053AbcCAOrM (ORCPT ); Tue, 1 Mar 2016 09:47:12 -0500 Received: from mout.gmx.net ([212.227.15.18]:62008 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753746AbcCAOrL (ORCPT ); Tue, 1 Mar 2016 09:47:11 -0500 Received: from localhost.localdomain ([80.187.99.114]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0LwaMR-1ZpeR22Uhj-018N7E; Tue, 01 Mar 2016 15:46:56 +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 4/6] spi: davinci: set new SPI_FC_* flags Date: Tue, 1 Mar 2016 15:43:18 +0100 Message-Id: <1456843400-20696-4-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:Jlmna4Ofa1FYJO0b5hBGjlkOD053Utudf9uZGfNtbSt32M4fyx+ n978ehid+k0zKckDs+ZJybFrP38fQjpDUsdlspdgZP2jw5Cn+SrvsXTbh2Guie2Scx9As5o wWl4CWkiDw3SVzVsbGvK95KBuwTXxP4nwZogcxsR6saTe7XTdT756MOQ2+jSfd0ionoADJi EH6BQoyT9o25c/y7RRiXw== X-UI-Out-Filterresults: notjunk:1; V01:K0:R3/ibvgytho=:nR85oDxv8yhYtSY+VOkv7j oHTIVVEbajJnkqXgi4gTyb1X/8xXeOS9JtHs2KnhYvtYSgxFsmAAynmyyLTb7R0IT9iirh5jo KMTRDelPp2XCMZXxw0shi9jc3SZsN8lwHhhC6rbRtqL2X1ZrpmG9ipBANtnO3UM26uVWpHoUu LJTizSABcZKQpsdPkY8rm0XbdwJ2wCOoRYhclHCYK4+pMHvI6hUy44w9GqgHEXulds2BEOF7R y+mSi0LRU9040I+poHEmG0EWRdsV2p+RgPQGBqEhkSU2+78+ekvVDELsIfJ0hIswsATQNVEsn m2Dl05q33yNOYBJY1T6Mh2L7jY6sEuDPsHIzgI0VI5NeRtlTINNO6oIuc2EvHSeoqsym6vBnT +9o+IT7XBibc5YG4DwK2rGbz844+7xblWrUSgh0WeOxY0Wm7wq4Blbj5Zrt9L0locaDsETDJN ixce6QnnJWf9/oCIDA7X68Gl5BqyYDbZJHyGJAHwCjfEv3Emz3Kkq0mDu6FVb2n4iscaMlKwc 6JDaK5npCCNF2TbGDQ3Qsv5+y9wRAsUmi7eDGGWlyn3IwI3vPO/M0AlYFiCzFb9+E0jLYDYdw P2b1bnGO6C8DT/tMdmqT2LRaa2i2qsuoYdpv1HWaxv429LghDPXWXE8JwRcGI5oYYDbltMcCS 96KxuosSzyHKliMnKqVAA2pgUmf0zC3ssWocWDZbNC47rqsrlNA/XPZ7UXrumbn5hcAQEUqBp 10B4QCBc0fX2Y+Im8uDyXYhshIo/wx4Fl+/Pev9iqin0pa/W1bpMIKpc9Qrijn4CIXjcr4/l3 hCyAM1z 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-davinci.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/spi/spi-davinci.c b/drivers/spi/spi-davinci.c index fddb7a3..8728df9 100644 --- a/drivers/spi/spi-davinci.c +++ b/drivers/spi/spi-davinci.c @@ -351,8 +351,8 @@ static int davinci_spi_setup_transfer(struct spi_device *spi, * * Version 2 hardware supports an optional handshaking signal, * so it can support two more modes: - * - 5 pin SPI variant is standard SPI plus SPI_READY - * - 4 pin with enable is (SPI_READY | SPI_NO_CS) + * - 5 pin SPI variant is standard SPI plus SPI_FC_READY + * - 4 pin with enable is (SPI_FC_READY | SPI_NO_CS) */ if (dspi->version == SPI_VERSION_2) { @@ -374,7 +374,7 @@ static int davinci_spi_setup_transfer(struct spi_device *spi, & SPIDELAY_T2CDELAY_MASK; } - if (spi->mode & SPI_READY) { + if (spi->mode & SPI_FC_READY) { spifmt |= SPIFMT_WAITENA_MASK; delay |= (spicfg->t2edelay << SPIDELAY_T2EDELAY_SHIFT) & SPIDELAY_T2EDELAY_MASK; @@ -452,7 +452,7 @@ static int davinci_spi_setup(struct spi_device *spi) set_io_bits(dspi->base + SPIPC0, 1 << spi->chip_select); } - if (spi->mode & SPI_READY) + if (spi->mode & SPI_FC_READY) set_io_bits(dspi->base + SPIPC0, SPIPC0_SPIENA_MASK); if (spi->mode & SPI_LOOP) @@ -1021,7 +1021,7 @@ static int davinci_spi_probe(struct platform_device *pdev) dspi->bitbang.flags = SPI_NO_CS | SPI_LSB_FIRST | SPI_LOOP; if (dspi->version == SPI_VERSION_2) - dspi->bitbang.flags |= SPI_READY; + dspi->bitbang.flags |= SPI_FC_HW_ONLY | SPI_FC_READY | SPI_FC_PAUSE; if (pdev->dev.of_node) { int i;