From patchwork Thu Oct 14 02:14:15 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jason Wang X-Patchwork-Id: 251801 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id o9E2Kf2c011278 for ; Thu, 14 Oct 2010 02:20:42 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753924Ab0JNCKO (ORCPT ); Wed, 13 Oct 2010 22:10:14 -0400 Received: from mail.windriver.com ([147.11.1.11]:34758 "EHLO mail.windriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753827Ab0JNCKN (ORCPT ); Wed, 13 Oct 2010 22:10:13 -0400 Received: from ALA-MAIL03.corp.ad.wrs.com (ala-mail03 [147.11.57.144]) by mail.windriver.com (8.14.3/8.14.3) with ESMTP id o9E2A1o3024684; Wed, 13 Oct 2010 19:10:01 -0700 (PDT) Received: from [128.224.163.220] ([128.224.163.220]) by ALA-MAIL03.corp.ad.wrs.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 13 Oct 2010 19:10:01 -0700 Message-ID: <4CB66777.5060309@gmail.com> Date: Thu, 14 Oct 2010 10:14:15 +0800 From: Jason Wang User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: Grazvydas Ignotas CC: Jason Wang , Dmitry Torokhov , vapier@gentoo.org, linux-input@vger.kernel.org, linux-omap@vger.kernel.org, grant.likely@secretlab.ca, roman.tereshonkov@nokia.com Subject: Re: [PATCH 4/4] Input: ads7846 - modificatons of _stop()/_disable() conditions References: <1284634286-8871-1-git-send-email-jason77.wang@gmail.com> <1284634286-8871-4-git-send-email-jason77.wang@gmail.com> <1284634286-8871-5-git-send-email-jason77.wang@gmail.com> <201009162339.06395.dmitry.torokhov@gmail.com> <4C9332CE.6040905@gmail.com> <20100917160709.GC14186@core.coreip.homeip.net> <4C9718E9.5040104@gmail.com> <4CB4314C.7050308@gmail.com> <20101012160055.GA6355@core.coreip.homeip.net> <4CB523B7.8010209@gmail.com> In-Reply-To: X-OriginalArrivalTime: 14 Oct 2010 02:10:01.0463 (UTC) FILETIME=[E89B4870:01CB6B44] Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Thu, 14 Oct 2010 02:20:42 +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); }