diff mbox

[1/5] include/linux/spi/dw_spi.h: enable platform specific chipselect.

Message ID 1264074052-2214-1-git-send-email-george@georgeshore.com (mailing list archive)
State Accepted
Headers show

Commit Message

George Shore Jan. 21, 2010, 11:40 a.m. UTC
None
diff mbox

Patch

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);
 }