[PATCH 2/2] ifup: fix handling when ip env is not given

2016-06-13 Thread Alexander Aring
This patch handles the ip env to "" if no ip env is given. Otherwise we get a NULL pointer derefence. Signed-off-by: Alexander Aring --- net/ifup.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/net/ifup.c b/net/ifup.c index 17e1b2f..59df069 100644 --- a/net/ifup.c +++ b/net/ifup.c @@ -9

[PATCH 1/2] ifup: remove deletion of ip env

2016-06-13 Thread Alexander Aring
This patch removes the deletion of ip env and changes to the behaviour that it use previous ip=$TYPE assignments if ip env is not part of network env which will be sourced. Example: somewhere in shell: ip=dhcp \- in case of ip=$TYPE in network env: overwrites the ip env \- in case of NO ip=$TYPE i

Re: [PATCH 0/6] MIPS: ath79: sync dts stuff with linux v4.7-rc2

2016-06-13 Thread Sascha Hauer
On Tue, Jun 14, 2016 at 01:15:01AM +0300, Antony Pavlov wrote: > At the moment linux v4.7-rc2 has AR9331 device tree support. > This patchseries syncs barebox AR9331 device tree stuff > with linux v4.7-rc2. > > Antony Pavlov (6): > clk: ar933x: fix copyright header > MIPS: ath79: dts: sync clk

Re: [PATCH] Fix genphy_restart_aneg() for Micrel's ksz9031.

2016-06-13 Thread Sascha Hauer
Hi Guillermo, On Mon, Jun 13, 2016 at 07:29:15PM +0200, Guillermo Rodriguez Garcia wrote: > From: grodriguez > > Commit da89ee8f2e04 ("Center FLP timing at 16ms") breaks > genphy_restart_aneg() for Micrel's ksz9031. According to the > datasheet, the ksz9031 requires a wait of 1ms after clearing

Re: [PATCH RFC] common: env: handle var="" not as var=NULL

2016-06-13 Thread Sascha Hauer
On Mon, Jun 13, 2016 at 12:51:52PM +0200, Alexander Aring wrote: > This patch changes the behaviour which I think is used everywhere in > barebox code. Currently var="" and var=NULL will end in the same > behaviour. > > New behaviour is: > > setenv(name, "") -> sets name to "" > \-> getenv(n

Boot iMX6 from IRAM on new Variscite SOM

2016-06-13 Thread Michael D. Burkey
I have already spoken with Sascha about this a bit, but figured I'd throw it out here in case anyone had any suggestions. Specifically, I'm updating the support for the Variscite SOM to handle the newest version of their SOM -- which now includes an EEPROM that contains a "DCD-like" script for con

[PATCH 2/6] MIPS: ath79: dts: sync clk stuff with linux v4.7-rc2

2016-06-13 Thread Antony Pavlov
Please see these linux kernel ath79 commits: commit 1e6a3492e7bb12aa8ee26050ff6829c39ebaa152 Author: Antony Pavlov Date: Thu Mar 17 06:34:17 2016 +0300 MIPS: dts: qca: introduce AR9331 devicetree commit 5ae5c452e3361612cd8182eb8bdfecf0ebf42288 Author: Antony Pavlov

[PATCH 6/6] MIPS: ath79: dts: use ar9331.dtsi from linux v4.7-rc2

2016-06-13 Thread Antony Pavlov
Nowadays we have AR9331 devicetree from linux v4.7-rc2 in the file dts/src/mips/qca/ar9331.dtsi. Signed-off-by: Antony Pavlov --- arch/mips/dts/ar9331.dtsi | 59 - arch/mips/dts/black-swift.dts | 2 +- arch/mips/dts/tplink-mr3020.dts | 2 +- 3 fi

[PATCH 5/6] MIPS: ath79: dts: tplink-mr3020.dts: sync with linux v4.7-rc2

2016-06-13 Thread Antony Pavlov
Also sync black-swift.dts with tplink-mr3020.dts. And also see this linux kernel commit: commit 2c3694d2e6ead3964aafb31e4e529de219ced92b Author: Antony Pavlov Date: Thu Mar 17 06:34:19 2016 +0300 MIPS: ath79: add initial support for TP-LINK MR3020 Signed-off-by: Antony Pa

[PATCH 3/6] MIPS: ath79: dts: sync uart stuff with linux v4.7-rc2

2016-06-13 Thread Antony Pavlov
Signed-off-by: Antony Pavlov --- arch/mips/dts/ar9331.dtsi | 2 +- arch/mips/dts/black-swift.dts | 2 +- arch/mips/dts/tplink-mr3020.dts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/mips/dts/ar9331.dtsi b/arch/mips/dts/ar9331.dtsi index 4d43087..05ef93f 1006

[PATCH 0/6] MIPS: ath79: sync dts stuff with linux v4.7-rc2

2016-06-13 Thread Antony Pavlov
At the moment linux v4.7-rc2 has AR9331 device tree support. This patchseries syncs barebox AR9331 device tree stuff with linux v4.7-rc2. Antony Pavlov (6): clk: ar933x: fix copyright header MIPS: ath79: dts: sync clk stuff with linux v4.7-rc2 MIPS: ath79: dts: sync uart stuff with linux v4.

[PATCH 4/6] MIPS: ath79: dts: sync spi stuff with linux v4.7-rc2

2016-06-13 Thread Antony Pavlov
Signed-off-by: Antony Pavlov --- arch/mips/dts/ar9331.dtsi | 9 +++-- drivers/spi/ath79_spi.c | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/arch/mips/dts/ar9331.dtsi b/arch/mips/dts/ar9331.dtsi index 05ef93f..6e20bc5 100644 --- a/arch/mips/dts/ar9331.dtsi +++ b/arch

[PATCH 1/6] clk: ar933x: fix copyright header

2016-06-13 Thread Antony Pavlov
Signed-off-by: Antony Pavlov --- drivers/clk/clk-ar933x.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/clk-ar933x.c b/drivers/clk/clk-ar933x.c index 373f8cc..ffbd4df 100644 --- a/drivers/clk/clk-ar933x.c +++ b/drivers/clk/clk-ar933x.c @@ -1,7 +1,7 @@ /* - *

[PATCH] Fix genphy_restart_aneg() for Micrel's ksz9031.

2016-06-13 Thread Guillermo Rodriguez Garcia
From: grodriguez Commit da89ee8f2e04 ("Center FLP timing at 16ms") breaks genphy_restart_aneg() for Micrel's ksz9031. According to the datasheet, the ksz9031 requires a wait of 1ms after clearing the PDOWN bit and before read/write access to any PHY registers. --- drivers/net/phy/phy.c |9 ++

[PATCH RFC] common: env: handle var="" not as var=NULL

2016-06-13 Thread Alexander Aring
This patch changes the behaviour which I think is used everywhere in barebox code. Currently var="" and var=NULL will end in the same behaviour. New behaviour is: setenv(name, "")-> sets name to "" \-> getenv(name)-> "" setenv(name, NULL) -> deletes env \-> getenv(name)

Re: [PATCH v2] Add support for Baltos systems

2016-06-13 Thread Yegor Yefremov
On Mon, Jun 13, 2016 at 10:56 AM, Yegor Yefremov wrote: > On Mon, Jun 13, 2016 at 10:55 AM, Sascha Hauer wrote: >> On Mon, Jun 13, 2016 at 09:44:24AM +0200, Yegor Yefremov wrote: >>> On Wed, Jun 1, 2016 at 9:08 AM, Sascha Hauer wrote: >>> > On Mon, May 30, 2016 at 04:43:50PM +0200, yegorsli...@g

Re: [PATCH v2] Add support for Baltos systems

2016-06-13 Thread Yegor Yefremov
On Mon, Jun 13, 2016 at 10:55 AM, Sascha Hauer wrote: > On Mon, Jun 13, 2016 at 09:44:24AM +0200, Yegor Yefremov wrote: >> On Wed, Jun 1, 2016 at 9:08 AM, Sascha Hauer wrote: >> > On Mon, May 30, 2016 at 04:43:50PM +0200, yegorsli...@googlemail.com wrote: >> >> From: Yegor Yefremov >> >> >> >> O

Re: [PATCH v2] Add support for Baltos systems

2016-06-13 Thread Sascha Hauer
On Mon, Jun 13, 2016 at 09:44:24AM +0200, Yegor Yefremov wrote: > On Wed, Jun 1, 2016 at 9:08 AM, Sascha Hauer wrote: > > On Mon, May 30, 2016 at 04:43:50PM +0200, yegorsli...@googlemail.com wrote: > >> From: Yegor Yefremov > >> > >> OnRISC Baltos devices are based on a am335x SoC and can be boot

Re: [PATCH v2] Add support for Baltos systems

2016-06-13 Thread Yegor Yefremov
On Wed, Jun 1, 2016 at 9:08 AM, Sascha Hauer wrote: > On Mon, May 30, 2016 at 04:43:50PM +0200, yegorsli...@googlemail.com wrote: >> From: Yegor Yefremov >> >> OnRISC Baltos devices are based on a am335x SoC and can be booted >> either from MMC or NAND. >> >> Signed-off-by: Yegor Yefremov >> ---

Re: [PATCH] MIPS: dts: add generated files to clean rule

2016-06-13 Thread Sascha Hauer
On Fri, Jun 10, 2016 at 01:37:57PM +0300, Antony Pavlov wrote: > This commit is based on Sascha's ARM commits: > > commit a9e7e68279de3aec38b038211a15a80cfc612c4e > Author: Sascha Hauer > Date: Fri Dec 11 08:02:02 2015 +0100 > > ARM: dts: Add *.dtb.lzo to clean files > >