[PATCH] blspec: fix erroneus free in entry_is_of_compatible()

2016-09-26 Thread Ulrich Ölmann
Whenever of_unflatten_dtb() encountered an error it already released the memory before returning the error code. Make this apparent by setting the pointer to NULL to avoid an erroneus free. Signed-off-by: Ulrich Ölmann --- common/blspec.c | 1 + 1 file changed, 1

[PATCH v2] scripts: kwboot: improve reliability on Armada XP

2016-09-26 Thread Uwe Kleine-König
This introduces several changes that improve pushing a boot image via UART to an Armada XP based machine (Netgear RN 2120 with BootROM 1.20). They were found by inspecting the source, the actual communication and disassembling the boot ROM. The changes are: - Don't use non-blocking open. This

[PATCH 0/2 (try 2)] mtd: ubi: implement the new command 'ubirename'

2016-09-26 Thread Giorgio Dal Molin
Here a new set of patches implementing the command 'ubirename'. They are based on a patch serie from Sascha that restructures a bit the barebox UBI APIs. In particular it is now easier to find the ubi volume ids from the command code. Moreover the command code uses now api functions to do the

[PATCH 2/2] mtd: ubi: commands: added the new command 'ubirename'.

2016-09-26 Thread Giorgio Dal Molin
Signed-off-by: Giorgio Dal Molin --- commands/ubi.c | 72 ++ 1 file changed, 72 insertions(+) diff --git a/commands/ubi.c b/commands/ubi.c index 7c55195..34247d6 100644 --- a/commands/ubi.c +++ b/commands/ubi.c @@ -328,3

Re: [PATCH 1/2] firmware: altera-serial: Make the driver match the dt binding documentation

2016-09-26 Thread Uwe Kleine-König
Hello Sascha I just noticed there is an additional change needed: diff --git a/drivers/firmware/altera_serial.c b/drivers/firmware/altera_serial.c index ddee991ed073..b119778d720d 100644 --- a/drivers/firmware/altera_serial.c +++ b/drivers/firmware/altera_serial.c @@ -328,7 +328,7 @@ out:

[PATCH 2/2] firmware: altera-serial: simplify handling of optional gpio

2016-09-26 Thread Uwe Kleine-König
Signed-off-by: Uwe Kleine-König --- drivers/firmware/altera_serial.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/drivers/firmware/altera_serial.c b/drivers/firmware/altera_serial.c index 5486d9ec63e9..ddee991ed073 100644 ---

[PATCH/RFT] scripts: kwboot: improve reliability on Armada XP

2016-09-26 Thread Uwe Kleine-König
This introduces several changes that improve pushing a boot image via UART to an Armada XP based machine (Netgear RN 2120 with BootROM 1.20). They were found by inspecting the source, the actual communication and disassembling the boot ROM. The changes are: - Don't use non-blocking open. This

Re: [PATCH] Documentation: clarify that patches should target the master branch.

2016-09-26 Thread Sascha Hauer
On Thu, Sep 22, 2016 at 07:14:22PM +0200, Robert Schwebel wrote: > I asked Sascha if he still prefers patches against 'next', and it turned > out that this is not true any more and patches should be sent against > master. > > Signed-off-by: Robert Schwebel > --- >

Re: [PATCH v2] environment: "wrong magic" gives the impression of an error

2016-09-26 Thread Sascha Hauer
On Thu, Sep 22, 2016 at 09:16:34PM +0200, Sam Ravnborg wrote: > From 15e7ff689cfda27eab10aacda5c26a1ba47979ec Mon Sep 17 00:00:00 2001 > From: Sam Ravnborg > Date: Thu, 22 Sep 2016 06:54:42 +0200 > Subject: [PATCH 1/1] environment: "wrong magic" give the impression of an > error >

Re: [PATCH 1/3] nand: denali: use correct interrupts in read_page

2016-09-26 Thread Sascha Hauer
On Thu, Sep 22, 2016 at 04:46:37PM +0200, Steffen Trumtrar wrote: > The interrupt mask is incorrect in case of HW error correction. > The driver will time out waiting for the wrong interrupts. > > Signed-off-by: Steffen Trumtrar > --- > drivers/mtd/nand/nand_denali.c

Re: [PATCH 2/3] watchdog: add designware driver

2016-09-26 Thread Sascha Hauer
On Thu, Sep 22, 2016 at 02:33:47PM +0200, Steffen Trumtrar wrote: > Port the linux v4.8-rc1 Synopsys DesignWare watchdog driver to barebox. > > Signed-off-by: Steffen Trumtrar > --- > drivers/watchdog/Kconfig | 6 ++ > drivers/watchdog/Makefile | 1 + >

Re: [PATCH 1/3] reset: import socfpga-reset driver from linux

2016-09-26 Thread Sascha Hauer
On Thu, Sep 22, 2016 at 02:33:46PM +0200, Steffen Trumtrar wrote: > Port the linux v4.8-rc1 reset-socfpga driver to barebox. > > Signed-off-by: Steffen Trumtrar > --- > drivers/reset/Makefile| 1 + > drivers/reset/reset-socfpga.c | 125 >