From patchwork Thu Jan 21 11:40:48 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: George Shore X-Patchwork-Id: 74363 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 o0LE9YdD019591 for ; Thu, 21 Jan 2010 14:09:34 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 1NXxj1-0000l9-D0; Thu, 21 Jan 2010 14:09:31 +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 1NXxj0-0000kx-Hz for spi-devel-general@lists.sourceforge.net; Thu, 21 Jan 2010 14:09:30 +0000 X-ACL-Warn: Received: from smtp3.34sp.com ([80.82.115.202]) by sfi-mx-2.v28.ch3.sourceforge.com with esmtp (Exim 4.69) id 1NXxiu-0008WQ-Fi for spi-devel-general@lists.sourceforge.net; Thu, 21 Jan 2010 14:09:29 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp3.34sp.com (Postfix) with ESMTP id 75250151000F; Thu, 21 Jan 2010 11:41:05 +0000 (GMT) X-Virus-Scanned: amavisd-new at smtp.34sp.com Received: from smtp3.34sp.com ([127.0.0.1]) by localhost (smtp3.34sp.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id OSZR2vQJBhDt; Thu, 21 Jan 2010 11:41:05 +0000 (GMT) Received: from localhost.localdomain (87-194-181-195.bethere.co.uk [87.194.181.195]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: binarymage) by smtp3.34sp.com (Postfix) with ESMTP id 2257D1500004; Thu, 21 Jan 2010 11:41:05 +0000 (GMT) From: George Shore To: spi-devel-list , Grant Likely , David Brownell Date: Thu, 21 Jan 2010 11:40:48 +0000 Message-Id: <1264074052-2214-1-git-send-email-george@georgeshore.com> X-Mailer: git-send-email 1.6.6.264.gd0743 X-Sender-Verify: failed, postmaster X-Spam-Score: 0.5 (/) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. 0.5 VA_SENDER_VERIFY_POSTMASTER Unable to Verify postmaster@domain.tld X-Headers-End: 1NXxiu-0008WQ-Fi Cc: George Shore Subject: [spi-devel-general] [PATCH 1/5] include/linux/spi/dw_spi.h: enable platform specific chipselect. 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: , MIME-Version: 1.0 Errors-To: spi-devel-general-bounces@lists.sourceforge.net diff --git a/include/linux/spi/dw_spi.h b/include/linux/spi/dw_spi.h index 1a127a3..cc813f9 100644 --- a/include/linux/spi/dw_spi.h +++ b/include/linux/spi/dw_spi.h @@ -172,6 +172,10 @@ static inline void spi_chip_sel(struct dw_spi *dws, u16 cs) { if (cs > dws->num_cs) return; + + if (dws->cs_control) + dws->cs_control(1); + dw_writel(dws, ser, 1 << cs); }