Hi Grant,
On Thu, 27 Dec 2012 10:42:24 +0100, Gabor Juhos juh...@openwrt.org wrote:
The driver uses the as fast as it can approach
to drive the SCK signal. However this does not
work with certain low speed SPI chips (e.g. the
PCF2123 RTC chip).
The patch adds per-bit slowdowns in order
2013.02.05. 14:02 keltezéssel, Grant Likely írta:
-static int ath79_spi_remove(struct platform_device *pdev)
+static void __ath79_spi_remove(struct platform_device *pdev)
{
struct ath79_spi *sp = platform_get_drvdata(pdev);
@@ -304,13 +304,23 @@ static int ath79_spi_remove(struct
in a kexec'd
kernel because the SPI driver does not restore
the special mode during shutdown.
The patch adds a shutdown handler to fix this
issue.
Signed-off-by: Gabor Juhos juh...@openwrt.org
---
Changes since v1:
- call ath79_spi_remote(pdev) directly from ath79_spi_shutdown()
---
drivers/spi
The driver uses the as fast as it can approach
to drive the SCK signal. However this does not
work with certain low speed SPI chips (e.g. the
PCF2123 RTC chip).
The patch adds per-bit slowdowns in order to be
able to use the driver with such chips as well.
Signed-off-by: Gabor Juhos juh
The 'ath79_spi_txrx_mode0' function does not
set the SCK signal to LOW at the end of a word
transfer. This causes communications errors with
certain devices (e.g. the PCF2123 RTC chip).
The patch ensures that the SCK signal will be LOW.
Signed-off-by: Gabor Juhos juh...@openwrt.org
---
drivers
in a kexec'd
kernel because the SPI driver does not restore
the special mode during shutdown.
The patch adds a shutdown handler to fix this
issue.
Signed-off-by: Gabor Juhos juh...@openwrt.org
---
drivers/spi/spi-ath79.c | 12 +++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff
Use gpio_request_one() instead of multiple gpiolib calls.
Signed-off-by: Gabor Juhos juh...@openwrt.org
---
drivers/spi/spi-ath79.c | 22 +++---
1 file changed, 11 insertions(+), 11 deletions(-)
diff --git a/drivers/spi/spi-ath79.c b/drivers/spi/spi-ath79.c
index a725e62
This patch set contain various fixes for the spi-ath79 driver.
Gabor Juhos (6):
spi/ath79: add delay between SCK changes
spi/ath79: add missing HIGH-LOW SCK transition
spi/ath79: remove superfluous chip select code
spi/ath79: use gpio_request_one
spi/ath79: avoid multiple initialization
The spi_bitbang driver calls the chipselect function
of the driver from spi_bitbang_setup in order to
deselect the given SPI chip, so we don't have to
initialize the CS line here.
Signed-off-by: Gabor Juhos juh...@openwrt.org
---
drivers/spi/spi-ath79.c |6 --
1 file changed, 6 deletions
those from probe/response in order to avoid
the mutliple initialization of the controller.
Signed-off-by: Gabor Juhos juh...@openwrt.org
---
drivers/spi/spi-ath79.c | 41 -
1 file changed, 24 insertions(+), 17 deletions(-)
diff --git a/drivers/spi/spi
/spi-ath79.c:281:1: warning: type defaults to 'int' in declaration
of 'MODULE_ALIAS'
drivers/spi/spi-ath79.c:281:14: warning: function declaration isn't a prototype
Signed-off-by: Gabor Juhos juh...@openwrt.org
---
drivers/spi/spi-ath79.c |1 +
1 files changed, 1 insertions(+), 0 deletions
2011.01.03. 18:02 keltezéssel, Grant Likely írta:
On Sun, Jan 02, 2011 at 07:56:22PM +0100, Gabor Juhos wrote:
The Atheros AR71XX/AR724X/AR913X SoCs have a built-in SPI controller. This
patch implements a driver for that.
Mostly looks okay to me. A few comments below. Do you want this one
The Atheros AR71XX/AR724X/AR913X SoCs have a built-in SPI controller. This
patch implements a driver for that.
Signed-off-by: Gabor Juhos juh...@openwrt.org
Cc: David Brownell dbrown...@users.sourceforge.net
Cc: spi-devel-general@lists.sourceforge.net
Acked-by: Grant Likely grant.lik
The Atheros AR71XX/AR724X/AR913X SoCs have a built-in SPI controller. This
patch implements a driver for that.
Signed-off-by: Gabor Juhos juh...@openwrt.org
Cc: David Brownell dbrown...@users.sourceforge.net
Cc: spi-devel-general@lists.sourceforge.net
---
Changes since RFC:
- remove DRV_DESC
The Atheros AR71XX/AR724X/AR913X SoCs have a built-in SPI controller. This
patch implements a driver for that.
Signed-off-by: Gabor Juhos juh...@openwrt.org
Cc: David Brownell dbrown...@users.sourceforge.net
Cc: spi-devel-general@lists.sourceforge.net
---
Changes since RFC:
- remove DRV_DESC
The Atheros AR71XX/AR724X/AR913X SoCs have a built-in SPI controller. This
patch implements a driver for that.
Signed-off-by: Gabor Juhos juh...@openwrt.org
Cc: Grant Likely grant.lik...@secretlab.ca
Cc: David Brownell dbrown...@users.sourceforge.net
Cc: spi-devel-general@lists.sourceforge.net
2010.11.15. 5:04 keltezéssel, Grant Likely írta:
On Sun, Nov 14, 2010 at 10:03:56PM +0100, Gabor Juhos wrote:
+static inline u32 ath79_spi_rr(struct ath79_spi *sp, unsigned reg)
+{
+ return __raw_readl(sp-base + reg);
+}
+
+static inline void ath79_spi_wr(struct ath79_spi *sp, unsigned reg
Hi Grant,
...
+#include asm/mach-ath79/ath79_spi_platform.h
+
+#define DRV_DESCSPI controller driver for Atheros AR71XX/AR724X/AR91X
Used exactly once. Don't bother with a #define
Ok.
+#define DRV_NAMEath79-spi
+
+struct ath79_spi {
+struct spi_bitbang bitbang;
+
The Atheros AR71XX/AR724X/AR913X SoCs have a built-in SPI controller. This
patch implements a driver for that.
Signed-off-by: Gabor Juhos juh...@openwrt.org
Cc: David Brownell dbrown...@users.sourceforge.net
Cc: spi-devel-general@lists.sourceforge.net
---
.../include/asm/mach-ath79
The Atheros AR71XX/AR724X/AR913X SoCs have a built-in SPI controller. This
patch implements a driver for that.
Signed-off-by: Gabor Juhos juh...@openwrt.org
Cc: David Brownell dbrown...@users.sourceforge.net
Cc: spi-devel-general@lists.sourceforge.net
---
Sorry for sending this twice, i forgot
20 matches
Mail list logo