mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/4] firmware: Add missing include
@ 2014-10-08 14:46 Sascha Hauer
  2014-10-08 14:46 ` [PATCH 2/4] firmware: Let SoCFPGA firmware loader depend on ARCH_SOCFPGA Sascha Hauer
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Sascha Hauer @ 2014-10-08 14:46 UTC (permalink / raw)
  To: barebox

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
 common/firmware.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/common/firmware.c b/common/firmware.c
index 2a62a81..a6f75bf 100644
--- a/common/firmware.c
+++ b/common/firmware.c
@@ -17,6 +17,7 @@
 #include <xfuncs.h>
 #include <fcntl.h>
 #include <libbb.h>
+#include <libfile.h>
 #include <fs.h>
 #include <linux/list.h>
 #include <linux/stat.h>
-- 
2.1.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 2/4] firmware: Let SoCFPGA firmware loader depend on ARCH_SOCFPGA
  2014-10-08 14:46 [PATCH 1/4] firmware: Add missing include Sascha Hauer
@ 2014-10-08 14:46 ` Sascha Hauer
  2014-10-08 14:46 ` [PATCH 3/4] firmware: altera_serial: gpio_set_value returns void Sascha Hauer
  2014-10-08 14:46 ` [PATCH 4/4] firmware: altera_serial: fix dev_dbg format Sascha Hauer
  2 siblings, 0 replies; 4+ messages in thread
From: Sascha Hauer @ 2014-10-08 14:46 UTC (permalink / raw)
  To: barebox

This driver does not compile on other architectures and is of no
use there anyway.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
 drivers/firmware/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/firmware/Kconfig b/drivers/firmware/Kconfig
index 5866063..a907eaf 100644
--- a/drivers/firmware/Kconfig
+++ b/drivers/firmware/Kconfig
@@ -10,5 +10,6 @@ config FIRMWARE_ALTERA_SERIAL
 
 config FIRMWARE_ALTERA_SOCFPGA
 	bool "Altera SoCFPGA fpga loader"
+	depends on ARCH_SOCFPGA
 
 endmenu
-- 
2.1.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 3/4] firmware: altera_serial: gpio_set_value returns void
  2014-10-08 14:46 [PATCH 1/4] firmware: Add missing include Sascha Hauer
  2014-10-08 14:46 ` [PATCH 2/4] firmware: Let SoCFPGA firmware loader depend on ARCH_SOCFPGA Sascha Hauer
@ 2014-10-08 14:46 ` Sascha Hauer
  2014-10-08 14:46 ` [PATCH 4/4] firmware: altera_serial: fix dev_dbg format Sascha Hauer
  2 siblings, 0 replies; 4+ messages in thread
From: Sascha Hauer @ 2014-10-08 14:46 UTC (permalink / raw)
  To: barebox

So do not try to check the return value.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
 drivers/firmware/altera_serial.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/firmware/altera_serial.c b/drivers/firmware/altera_serial.c
index 23ba3b0..232f1a6 100644
--- a/drivers/firmware/altera_serial.c
+++ b/drivers/firmware/altera_serial.c
@@ -81,9 +81,7 @@ static int altera_spi_open(struct firmware_handler *fh)
 	}
 
 	/* arm the FPGA to await its new firmware */
-	ret = gpio_set_value(this->nconfig_gpio, 1);
-	if (ret)
-		return ret;
+	gpio_set_value(this->nconfig_gpio, 1);
 
 	/* once again, we might need padding the data */
 	this->padding_done = false;
-- 
2.1.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 4/4] firmware: altera_serial: fix dev_dbg format
  2014-10-08 14:46 [PATCH 1/4] firmware: Add missing include Sascha Hauer
  2014-10-08 14:46 ` [PATCH 2/4] firmware: Let SoCFPGA firmware loader depend on ARCH_SOCFPGA Sascha Hauer
  2014-10-08 14:46 ` [PATCH 3/4] firmware: altera_serial: gpio_set_value returns void Sascha Hauer
@ 2014-10-08 14:46 ` Sascha Hauer
  2 siblings, 0 replies; 4+ messages in thread
From: Sascha Hauer @ 2014-10-08 14:46 UTC (permalink / raw)
  To: barebox

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
 drivers/firmware/altera_serial.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/firmware/altera_serial.c b/drivers/firmware/altera_serial.c
index 232f1a6..00ed629 100644
--- a/drivers/firmware/altera_serial.c
+++ b/drivers/firmware/altera_serial.c
@@ -113,7 +113,7 @@ static int altera_spi_write(struct firmware_handler *fh, const void *buf, size_t
 	u32 dummy;
 	int ret;
 
-	dev_dbg(dev, "Start writing %d bytes.\n", __func__, sz);
+	dev_dbg(dev, "Start writing %d bytes.\n", sz);
 
 	spi_message_init(&m);
 
-- 
2.1.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-10-08 14:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-08 14:46 [PATCH 1/4] firmware: Add missing include Sascha Hauer
2014-10-08 14:46 ` [PATCH 2/4] firmware: Let SoCFPGA firmware loader depend on ARCH_SOCFPGA Sascha Hauer
2014-10-08 14:46 ` [PATCH 3/4] firmware: altera_serial: gpio_set_value returns void Sascha Hauer
2014-10-08 14:46 ` [PATCH 4/4] firmware: altera_serial: fix dev_dbg format Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox