ar71xx: merge machine patches
[openwrt.git] / target / linux / ar71xx / patches-3.6 / 202-spi-ath79-remove-superfluous-chip-select-code.patch
1 From 06752f9b169493cd1323f8337c147ad2dd31025c Mon Sep 17 00:00:00 2001
2 From: Gabor Juhos <juhosg@openwrt.org>
3 Date: Mon, 9 Jan 2012 15:03:28 +0100
4 Subject: [PATCH 30/34] spi/ath79: remove superfluous chip select code
5
6 The spi_bitbang driver calls the chipselect function
7 of the driver from spi_bitbang_setup in order to
8 deselect the given SPI chip, so we don't have to
9 initialize the CS line here.
10
11 Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
12 ---
13  drivers/spi/spi-ath79.c |    6 ------
14  1 files changed, 0 insertions(+), 6 deletions(-)
15
16 --- a/drivers/spi/spi-ath79.c
17 +++ b/drivers/spi/spi-ath79.c
18 @@ -128,12 +128,6 @@ static int ath79_spi_setup_cs(struct spi
19                         gpio_free(cdata->gpio);
20                         return status;
21                 }
22 -       } else {
23 -               if (spi->mode & SPI_CS_HIGH)
24 -                       sp->ioc_base |= AR71XX_SPI_IOC_CS0;
25 -               else
26 -                       sp->ioc_base &= ~AR71XX_SPI_IOC_CS0;
27 -               ath79_spi_wr(sp, AR71XX_SPI_REG_IOC, sp->ioc_base);
28         }
29  
30         return 0;