Root/target/linux/ar71xx/patches-3.2/203-spi-ath79-remove-superfluous-chip-select-code.patch

1From 7385ff2cb72d6a0107890760466b9564aa5204c1 Mon Sep 17 00:00:00 2001
2From: Gabor Juhos <juhosg@openwrt.org>
3Date: Mon, 9 Jan 2012 15:03:28 +0100
4Subject: [PATCH 3/7] spi/ath79: remove superfluous chip select code
5
6The spi_bitbang driver calls the chipselect function
7of the driver from spi_bitbang_setup in order to
8deselect the given SPI chip, so we don't have to
9initialize the CS line here.
10
11Signed-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@@ -121,12 +121,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;
31

Archive Download this file



interactive