From patchwork Tue Jul 13 13:26:09 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jason Wang X-Patchwork-Id: 111795 Received: from lists.sourceforge.net (lists.sourceforge.net [216.34.181.88]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o6DDQiL7026165 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 13 Jul 2010 13:27:20 GMT Received: from localhost ([127.0.0.1] helo=sfs-ml-1.v29.ch3.sourceforge.com) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1OYfVN-00032j-9x; Tue, 13 Jul 2010 13:26:37 +0000 Received: from sfi-mx-1.v28.ch3.sourceforge.com ([172.29.28.121] helo=mx.sourceforge.net) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1OYfVL-00032Y-SK for spi-devel-general@lists.sourceforge.net; Tue, 13 Jul 2010 13:26:35 +0000 Received-SPF: pass (sfi-mx-1.v28.ch3.sourceforge.com: domain of gmail.com designates 209.85.160.47 as permitted sender) client-ip=209.85.160.47; envelope-from=jason77.wang@gmail.com; helo=mail-pw0-f47.google.com; Received: from mail-pw0-f47.google.com ([209.85.160.47]) by sfi-mx-1.v28.ch3.sourceforge.com with esmtp (Exim 4.69) id 1OYfVK-0005T3-Sn for spi-devel-general@lists.sourceforge.net; Tue, 13 Jul 2010 13:26:35 +0000 Received: by pwi10 with SMTP id 10so2459472pwi.34 for ; Tue, 13 Jul 2010 06:26:29 -0700 (PDT) Received: by 10.115.46.13 with SMTP id y13mr8404667waj.154.1279027589018; Tue, 13 Jul 2010 06:26:29 -0700 (PDT) Received: from [192.168.0.183] ([180.77.200.150]) by mx.google.com with ESMTPS id b1sm5843154rvn.2.2010.07.13.06.26.17 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 13 Jul 2010 06:26:27 -0700 (PDT) Message-ID: <4C3C6971.5010004@gmail.com> Date: Tue, 13 Jul 2010 21:26:09 +0800 From: jason User-Agent: Thunderbird 2.0.0.24 (X11/20100317) MIME-Version: 1.0 To: roman.tereshonkov@nokia.com References: <1277381565-6305-1-git-send-email-jason77.wang@gmail.com> <4C24A182.4060009@gmail.com> <4C289CCB.7010409@gmail.com> <4C2C82E9.2010103@gmail.com> In-Reply-To: X-Spam-Score: -0.9 (/) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -1.5 SPF_CHECK_PASS SPF reports sender host as permitted sender for sender-domain -0.0 SPF_PASS SPF: sender matches SPF record -0.0 DKIM_VERIFIED Domain Keys Identified Mail: signature passes verification 0.0 DKIM_SIGNED Domain Keys Identified Mail: message has a signature 0.6 AWL AWL: From: address is in the auto white-list X-Headers-End: 1OYfVK-0005T3-Sn Cc: david-b@pacbell.net, linux-arm-kernel@lists.infradead.org, spi-devel-general@lists.sourceforge.net Subject: Re: [spi-devel-general] [PATCH] spi/omap2_mcspi: disable and enable chan between each SPI transfer X-BeenThere: spi-devel-general@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list List-Id: Linux SPI core/device drivers discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: spi-devel-general-bounces@lists.sourceforge.net X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Tue, 13 Jul 2010 13:27:20 +0000 (UTC) diff --git a/drivers/spi/omap2_mcspi.c b/drivers/spi/omap2_mcspi.c index b3a94ca..43fab41 100644 --- a/drivers/spi/omap2_mcspi.c +++ b/drivers/spi/omap2_mcspi.c @@ -644,6 +644,12 @@ omap2_mcspi_txrx_pio(struct spi_device *spi, struct spi_transfer *xfer) } else if (mcspi_wait_for_reg_bit(chstat_reg, OMAP2_MCSPI_CHSTAT_EOT) < 0) dev_err(&spi->dev, "EOT timed out\n"); + + /* disable chan to purge rx datas received in TX_ONLY transfer, + * otherwise these rx datas will affect the direct following + * RX_ONLY transfer. + */ + omap2_mcspi_set_enable(spi, 0); } out: