From patchwork Sat Jul 3 11:21:45 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jason Wang X-Patchwork-Id: 110012 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 o63BMDmg008258 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 3 Jul 2010 11:22:49 GMT Received: from localhost ([127.0.0.1] helo=sfs-ml-3.v29.ch3.sourceforge.com) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1OV0nO-0008Tv-3J; Sat, 03 Jul 2010 11:22:06 +0000 Received: from sfi-mx-2.v28.ch3.sourceforge.com ([172.29.28.122] helo=mx.sourceforge.net) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1OV0nM-0008Tq-Iq for spi-devel-general@lists.sourceforge.net; Sat, 03 Jul 2010 11:22:04 +0000 Received-SPF: pass (sfi-mx-2.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-2.v28.ch3.sourceforge.com with esmtp (Exim 4.69) id 1OV0nL-0004wm-83 for spi-devel-general@lists.sourceforge.net; Sat, 03 Jul 2010 11:22:04 +0000 Received: by pwi10 with SMTP id 10so1741366pwi.34 for ; Sat, 03 Jul 2010 04:21:57 -0700 (PDT) Received: by 10.142.172.17 with SMTP id u17mr326508wfe.78.1278156117529; Sat, 03 Jul 2010 04:21:57 -0700 (PDT) Received: from [192.168.0.183] ([180.77.192.186]) by mx.google.com with ESMTPS id g37sm1979343rvb.5.2010.07.03.04.21.51 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 03 Jul 2010 04:21:56 -0700 (PDT) Message-ID: <4C2F1D49.3090802@gmail.com> Date: Sat, 03 Jul 2010 19:21:45 +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: -1.1 (-) 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.4 AWL AWL: From: address is in the auto white-list X-Headers-End: 1OV0nL-0004wm-83 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]); Sat, 03 Jul 2010 11:22:49 +0000 (UTC) diff --git a/drivers/spi/omap2_mcspi.c b/drivers/spi/omap2_mcspi.c index b3a94ca..76bbdeb 100644 --- a/drivers/spi/omap2_mcspi.c +++ b/drivers/spi/omap2_mcspi.c @@ -40,6 +40,8 @@ #include #include +#define VERBOSE + #define OMAP2_MCSPI_MAX_FREQ 48000000 /* OMAP2 has 3 SPI controllers, while OMAP3 has 4 */ @@ -482,6 +484,10 @@ omap2_mcspi_txrx_pio(struct spi_device *spi, struct spi_transfer *xfer) tx = xfer->tx_buf; do { +#ifdef VERBOSE + dev_dbg(&spi->dev, "after do stat reg: %08x\n", + __raw_readl(chstat_reg)); +#endif c -= 1; if (tx != NULL) {