ac7cb2fdd0d210bf708afe9fea52fd73b63d1efd
[openwrt/openwrt.git] / target / linux / brcm2708 / patches-4.1 / 0094-spi-bcm2708-Increase-timeout-from-150ms-to-1s.patch
1 From bb1fa51567d23d5ff27e4011257ee25bb97675d8 Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.org>
3 Date: Tue, 30 Jun 2015 10:33:52 +0100
4 Subject: [PATCH 094/148] spi-bcm2708: Increase timeout from 150ms to 1s
5
6 See: https://github.com/raspberrypi/linux/issues/260
7 ---
8 drivers/spi/spi-bcm2708.c | 4 ++--
9 1 file changed, 2 insertions(+), 2 deletions(-)
10
11 --- a/drivers/spi/spi-bcm2708.c
12 +++ b/drivers/spi/spi-bcm2708.c
13 @@ -70,9 +70,9 @@
14 #define SPI_CS_CS_10 0x00000002
15 #define SPI_CS_CS_01 0x00000001
16
17 -#define SPI_TIMEOUT_MS 150
18 +#define SPI_TIMEOUT_MS 1000
19
20 -#define DRV_NAME "bcm2708_spi"
21 +#define DRV_NAME "bcm2708_spi"
22
23 struct bcm2708_spi {
24 spinlock_t lock;