From patchwork Tue Jan 19 14:20:53 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean-Hugues Deschenes X-Patchwork-Id: 73885 Received: from lists.sourceforge.net (lists.sourceforge.net [216.34.181.88]) by demeter.kernel.org (8.14.3/8.14.2) with ESMTP id o0JEL51s015928 for ; Tue, 19 Jan 2010 14:21:05 GMT Received: from localhost ([127.0.0.1] helo=sfs-ml-4.v29.ch3.sourceforge.com) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1NXEx3-0006Ix-N5; Tue, 19 Jan 2010 14:21:01 +0000 Received: from sfi-mx-3.v28.ch3.sourceforge.com ([172.29.28.123] helo=mx.sourceforge.net) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1NXEx2-0006Ij-5n for spi-devel-general@lists.sourceforge.net; Tue, 19 Jan 2010 14:21:00 +0000 X-ACL-Warn: Received: from mail.octasic.com ([70.54.254.106] helo=MAILEXCH.octasic.com) by sfi-mx-3.v28.ch3.sourceforge.com with esmtp (Exim 4.69) id 1NXEx1-0004c0-6n for spi-devel-general@lists.sourceforge.net; Tue, 19 Jan 2010 14:21:00 +0000 Received: from station520.octasic.com ([142.138.24.20]) by MAILEXCH.octasic.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 19 Jan 2010 09:20:53 -0500 Message-ID: <4B55BFC5.506@octasic.com> Date: Tue, 19 Jan 2010 09:20:53 -0500 From: Jean-Hugues Deschenes User-Agent: Thunderbird 2.0.0.22 (X11/20090625) MIME-Version: 1.0 To: Feng Tang References: <20100119112033.74a0f5be@feng-desktop> In-Reply-To: <20100119112033.74a0f5be@feng-desktop> X-OriginalArrivalTime: 19 Jan 2010 14:20:53.0739 (UTC) FILETIME=[9BE493B0:01CA9912] X-Spam-Score: -0.3 (/) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -0.4 AWL AWL: From: address is in the auto white-list X-Headers-End: 1NXEx1-0004c0-6n Cc: spi-devel-list , David Brownell Subject: Re: [spi-devel-general] [PATCH 3/3] spi: dw_spi: refine the IRQ mode working flow 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 diff --git a/drivers/spi/dw_spi.c b/drivers/spi/dw_spi.c index 31620fa..01ad79a 100644 --- a/drivers/spi/dw_spi.c +++ b/drivers/spi/dw_spi.c @@ -832,6 +832,11 @@ int __devinit dw_spi_add_host(struct dw_spi *dws) goto exit; } + if (!dws->num_cs) + dws->num_cs = 4; + if (!dws->fifo_len) + dws->fifo_len = 40; + dws->master = master; dws->type = SSI_MOTO_SPI; dws->prev_chip = NULL;