aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/spi
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/spi')
-rw-r--r--include/linux/spi/dw_spi.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/spi/dw_spi.h b/include/linux/spi/dw_spi.h
index 1a127a31e017..cc813f95a2f2 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)
172{ 172{
173 if (cs > dws->num_cs) 173 if (cs > dws->num_cs)
174 return; 174 return;
175
176 if (dws->cs_control)
177 dws->cs_control(1);
178
175 dw_writel(dws, ser, 1 << cs); 179 dw_writel(dws, ser, 1 << cs);
176} 180}
177 181