From patchwork Thu Feb 25 10:36:01 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ernst Schwab X-Patchwork-Id: 81959 Received: from lists.sourceforge.net (lists.sourceforge.net [216.34.181.88]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o1PAaRiA019284 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 25 Feb 2010 10:37:03 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 1Nkb4y-00078t-Il; Thu, 25 Feb 2010 10:36:24 +0000 Received: from sfi-mx-1.v28.ch3.sourceforge.com ([172.29.28.121] helo=mx.sourceforge.net) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1Nkb4x-00078k-Pl for spi-devel-general@lists.sourceforge.net; Thu, 25 Feb 2010 10:36:23 +0000 X-ACL-Warn: Received: from moutng.kundenserver.de ([212.227.17.10]) by sfi-mx-1.v28.ch3.sourceforge.com with esmtp (Exim 4.69) id 1Nkb4w-0007JQ-AE; Thu, 25 Feb 2010 10:36:23 +0000 Received: from ip065 (koln-5d8138da.pool.mediaWays.net [93.129.56.218]) by mrelayeu.kundenserver.de (node=mrbap1) with ESMTP (Nemesis) id 0M0KrN-1NUSIK43iv-00uORS; Thu, 25 Feb 2010 11:35:59 +0100 Date: Thu, 25 Feb 2010 11:36:01 +0100 From: Ernst Schwab To: Grant Likely Message-Id: <20100225113601.fc8cf2c1.eschwab@online.de> In-Reply-To: References: <20100218124425.599c4d76.eschwab@online.de> <20100218131057.40f9e623.eschwab@online.de> X-Mailer: Sylpheed 3.0.0 (GTK+ 2.10.14; i686-pc-mingw32) Mime-Version: 1.0 X-Provags-ID: V01U2FsdGVkX18Ei+PWN5kr4VkdTIuO9Ie6HTleCjNRBiJVoCH 93/JQAKwYrSLjErNv0IldI5iMxW7eLgX74jLXROAL1unphq3PW jbXe8IaKj1yzCtA2EtCABWtp2y97uuF X-Spam-Score: 0.1 (/) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.1 AWL AWL: From: address is in the auto white-list X-Headers-End: 1Nkb4w-0007JQ-AE Cc: David Brownell , vapier@gentoo.org, spi-devel-general@lists.sourceforge.net, yi.li@analog.com Subject: Re: [spi-devel-general] [PATCH 1/2 V2] spi/mmc_spi: SPI bus locking API, using mutex 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]); Thu, 25 Feb 2010 10:37:03 +0000 (UTC) diff -uprN a/drivers/spi/spi.c b/drivers/spi/spi.c --- a/drivers/spi/spi.c 2010-02-23 16:51:35.000000000 +0100 +++ b/drivers/spi/spi.c 2010-02-25 11:21:45.000000000 +0100 @@ -731,15 +731,11 @@ int spi_async(struct spi_device *spi, st int ret; unsigned long flags; - spin_lock_irqsave(&master->bus_lock_spinlock, flags); - if (master->bus_lock_flag) ret = -EBUSY; else ret = __spi_async(spi, message); - spin_unlock_irqrestore(&master->bus_lock_spinlock, flags); - return ret; } EXPORT_SYMBOL_GPL(spi_async);