[PATCH 2/2] complete: abstract path complete

2012-09-10 Thread Alexander Aring
Rewritten path complete, to use it maybe in another functions. Signed-off-by: Alexander Aring --- common/complete.c | 73 +-- include/libbb.h | 2 ++ lib/libbb.c | 64 +++- 3 files changed, 8

[PATCH 1/2] libbb: remove vi tabwidth setting

2012-09-10 Thread Alexander Aring
Remove vi tabwidth and tabstop setting. Signed-off-by: Alexander Aring --- lib/libbb.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/libbb.c b/lib/libbb.c index 9a0a60b..e0d7481 100644 --- a/lib/libbb.c +++ b/lib/libbb.c @@ -1,4 +1,3 @@ -/* vi: set sw=8 ts=8: */ /* * Utility routines

[PATCH] fs: fs.c fix cast

2012-09-10 Thread Alexander Aring
Fix casting on min argument, to avoid warnings on 64bit build. Signed-off-by: Alexander Aring --- fs/fs.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/fs/fs.c b/fs/fs.c index 38917bf..db4621a 100644 --- a/fs/fs.c +++ b/fs/fs.c @@ -1525,7 +1525,9 @@ ssize_t mem_read

[PATCH 2/3] commands: move nandtest to testing

2012-09-10 Thread Alexander Aring
Move nadntest in commands menu. Signed-off-by: Alexander Aring --- commands/Kconfig | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/commands/Kconfig b/commands/Kconfig index 8f3a15a..2ee8643 100644 --- a/commands/Kconfig +++ b/commands/Kconfig @@ -192,14 +192

[PATCH 3/3] commands: move memtest to testing

2012-09-10 Thread Alexander Aring
Move memtest to testing commands menu. Signed-off-by: Alexander Aring --- commands/Kconfig | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/commands/Kconfig b/commands/Kconfig index 2ee8643..4b9e8ba 100644 --- a/commands/Kconfig +++ b/commands/Kconfig @@ -31

[PATCH 1/3] commands: add testing menu

2012-09-10 Thread Alexander Aring
Add command menu for testing utilities. Signed-off-by: Alexander Aring --- commands/Kconfig | 4 1 file changed, 4 insertions(+) diff --git a/commands/Kconfig b/commands/Kconfig index f2756cc..8f3a15a 100644 --- a/commands/Kconfig +++ b/commands/Kconfig @@ -472,6 +472,10 @@ config CMD_OFTR

[PATCH 3/3] sandbox: add missed case statement

2012-09-10 Thread Alexander Aring
Add missed case statement to ignore 'i' parameter in first getopt loop. Signed-off-by: Alexander Aring --- arch/sandbox/os/common.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/sandbox/os/common.c b/arch/sandbox/os/common.c index e296574..d2aea38 100644 --- a/a

[PATCH 2/3] sandbox: fix posix_types

2012-09-10 Thread Alexander Aring
Fix setting of size_t ssize_t and ptrdiff_t for 32 bit and 64 bit systems. Signed-off-by: Alexander Aring --- arch/sandbox/include/asm/posix_types.h | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/sandbox/include/asm/posix_types.h b/arch/sandbox/include/asm/posix_types.

[PATCH 1/3] sandbox-unaligned: better usement of ifdef

2012-09-10 Thread Alexander Aring
GCC versions below 4.6 don't set __BYTE_ORDER__ with __ORDER_LITTLE_ENDIAN__. So it's better to use __BYTE_ORDER and __LITTLE_ENDIAN instead. Signed-off-by: Alexander Aring --- arch/sandbox/include/asm/unaligned.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/sandbox/i

[PATCH 1/1] genenv: fix files copy

2012-09-10 Thread Jean-Christophe PLAGNIOL-VILLARD
we may specify file in the defconfig Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- scripts/genenv |6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/genenv b/scripts/genenv index c84af0c..ff7972b 100755 --- a/scripts/genenv +++ b/scripts/genenv @@ -11,7 +11

[PATCH 2/3] amba-pl011: switch to amba bus

2012-09-10 Thread Jean-Christophe PLAGNIOL-VILLARD
switch as the same time the nomadik and versatile arch that use the driver. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- arch/arm/mach-nomadik/8815.c |9 + arch/arm/mach-versatile/core.c |7 +-- drivers/serial/amba-pl011.c| 34 --

[PATCH 1/3] Introduce ARM AMBA bus

2012-09-10 Thread Jean-Christophe PLAGNIOL-VILLARD
This will allow to detect the amba device and use the right driver for it at runtime. The code is base on linux 3.5. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- drivers/Makefile |1 + drivers/amba/Makefile|2 + drivers/amba/bus.c | 210

[PATCH 3/3] amba-pl011: add st specific init

2012-09-10 Thread Jean-Christophe PLAGNIOL-VILLARD
This is need on the new IP for ux500 Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- drivers/serial/amba-pl011.c | 40 ++-- include/linux/amba/serial.h | 29 + 2 files changed, 67 insertions(+), 2 deletions(-) diff --git a/

[PATCH 0/3 v2] AMBA Bus support

2012-09-10 Thread Jean-Christophe PLAGNIOL-VILLARD
Hi, v2: upadte comment this first patch series add the AMBA Bus support and is a preperation for the adding of the ST-E ux500 support please pull The following changes since commit 298d15571da8d1cb71e7fd87cc53cad3b2bf1d12: i.MX51: unbreak FEC iomux (2012-09-07 10:28:17

Re: [PATCH] smsc911x: Check platformdata pointer

2012-09-10 Thread Sascha Hauer
On Mon, Sep 10, 2012 at 01:33:29PM +0200, Jan Weitzel wrote: > If pdata is NULL smc911x_probe will crash. Checking the zero initialized > priv->shift results in default configuration if pdata is not set. > > Signed-off-by: Jan Weitzel Applied, thanks Sascha > --- > drivers/net/smc911x.c |

Re: [PATCH 1/2] drivers/nor/m25p80: add MTD support

2012-09-10 Thread Sascha Hauer
On Mon, Sep 10, 2012 at 10:55:46AM +0200, Jan Luebbe wrote: > This has been tested by using UBI with a N25Q128 connected to > a TI McSPI controller. > > Signed-off-by: Jan Luebbe Applied, thanks Sascha > --- > drivers/nor/m25p80.c | 71 > ++ >

Re: [for master PATCH 1/2] miidev: add phy_addr detection support

2012-09-10 Thread Jean-Christophe PLAGNIOL-VILLARD
On 17:48 Tue 14 Aug , Jean-Christophe PLAGNIOL-VILLARD wrote: > export via param the phy_addr and the phy_id detected > > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD > --- > Hi, > > this is need to fix the calao board support since the introduction of > the gigabit phy detect

Re: [PATCH 1/3 v2] net: introduce phylib

2012-09-10 Thread Jean-Christophe PLAGNIOL-VILLARD
On 09:14 Mon 10 Sep , Sascha Hauer wrote: > On Sun, Sep 09, 2012 at 05:44:00PM +0200, Jean-Christophe PLAGNIOL-VILLARD > wrote: > > Adapt phylib from linux > > > > switch all the driver to it > > > > This will allow to have > > - phy drivers > > - to only connect the phy at then opening of

[PATCH] smsc911x: Check platformdata pointer

2012-09-10 Thread Jan Weitzel
If pdata is NULL smc911x_probe will crash. Checking the zero initialized priv->shift results in default configuration if pdata is not set. Signed-off-by: Jan Weitzel --- drivers/net/smc911x.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/smc911x.c b/driv

[PATCH] fsl TSEC: register map boundary

2012-09-10 Thread Renaud Barbier
The end boundary of each registers set may overlap with the start of the next register set. Subtract 1 to the end boundary. Signed-off-by: Renaud Barbier --- arch/ppc/mach-mpc85xx/eth-devices.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/ppc/mach-mpc85xx/et

Re: [PATCH] omap: add SPI as a boot mode for xload

2012-09-10 Thread Baruch Siach
Hi Jan, On Mon, Sep 10, 2012 at 11:50:24AM +0200, Jan Luebbe wrote: > Signed-off-by: Jan Luebbe > --- > arch/arm/mach-omap/include/mach/xload.h |1 + > arch/arm/mach-omap/xload.c | 40 > +++ > 2 files changed, 41 insertions(+) [snip] > +void *oma

RE: [PATCH] video imx-ipu-fb: add clear screen

2012-09-10 Thread Alex Gershgorin
Hi Sascha, On Fri, Sep 07, 2012 at 01:46:39PM +0300, Alex Gershgorin wrote: > This patch clear screen before usage > > Signed-off-by: Alex Gershgorin > --- > drivers/video/imx-ipu-fb.c |4 > 1 files changed, 4 insertions(+), 0 deletions(-) > > diff --git a/drivers/video/imx-ipu-fb.c b/

Re: [PATCH] omap: add SPI as a boot mode for xload

2012-09-10 Thread Jan Lübbe
Note that this applies on top of Jan Weitzel's 'xload: get barebox size from barebox_arm_head'. -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phon

[PATCH] omap: add SPI as a boot mode for xload

2012-09-10 Thread Jan Luebbe
Signed-off-by: Jan Luebbe --- arch/arm/mach-omap/include/mach/xload.h |1 + arch/arm/mach-omap/xload.c | 40 +++ 2 files changed, 41 insertions(+) diff --git a/arch/arm/mach-omap/include/mach/xload.h b/arch/arm/mach-omap/include/mach/xload.h index

Re: [PATCH] arm: mxs: add proper resource length

2012-09-10 Thread Uwe Kleine-König
On Mon, Sep 10, 2012 at 11:31:07AM +0200, Wolfram Sang wrote: > For some reason, the mxs-boards missed some length paramters when adding > devices. This made reading from ocotp crash in the current version. > Provide missing lenghts, use a consistent format and fix the length for s/lenghts/length/

[PATCH] arm: mxs: add proper resource length

2012-09-10 Thread Wolfram Sang
For some reason, the mxs-boards missed some length paramters when adding devices. This made reading from ocotp crash in the current version. Provide missing lenghts, use a consistent format and fix the length for the LCDIF. Signed-off-by: Wolfram Sang --- arch/arm/boards/freescale-mx28-evk/mx28-

[PATCH 2/2] drivers/nor/cfi_flash: use IS_ENABLED instead of an ifdef

2012-09-10 Thread Jan Luebbe
Signed-off-by: Jan Luebbe --- drivers/nor/cfi_flash.c |8 +++- drivers/nor/cfi_flash.h |2 -- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/drivers/nor/cfi_flash.c b/drivers/nor/cfi_flash.c index 16885c0..d9347b2 100644 --- a/drivers/nor/cfi_flash.c +++ b/drivers/nor/

[PATCH 1/2] drivers/nor/m25p80: add MTD support

2012-09-10 Thread Jan Luebbe
This has been tested by using UBI with a N25Q128 connected to a TI McSPI controller. Signed-off-by: Jan Luebbe --- drivers/nor/m25p80.c | 71 ++ drivers/nor/m25p80.h |2 +- 2 files changed, 72 insertions(+), 1 deletion(-) diff --git a/driver

Re: [PATCH 1/1] uncompress: drop wrong BUG(uncompress_size)

2012-09-10 Thread Sascha Hauer
On Wed, Sep 05, 2012 at 04:59:45PM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote: > As uncompress_size is a static and will set if call uncompress_size multiple > time. > > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD Applied, thanks Sascha > --- > lib/uncompress.c |2 -- > 1 file cha

[PATCH 2/3] ARM: Add assembler function to get runtime offset

2012-09-10 Thread Sascha Hauer
This function returns the offset between the address barebox is linked at and the address barebox is currently running at. Signed-off-by: Sascha Hauer --- arch/arm/include/asm/barebox-arm.h |1 + arch/arm/lib/Makefile |2 ++ arch/arm/lib/runtime-offset.S | 17

[PATCH 3/3] ARM lowlevel: Use get_runtime_offset

2012-09-10 Thread Sascha Hauer
The current approach to get the offset between link and runtime address is fragile. It requires a big fat comment to put no code above it and it requires an extra linker section. Instead use a small assembler function. Signed-off-by: Sascha Hauer --- arch/arm/cpu/start-pbl.c | 12 +++

[PATCH v2] ARM lowlevel

2012-09-10 Thread Sascha Hauer
Changes since v1: - Make runtime offset function work in thumb2 mode - Remove accidently prototype changing of board_init_lowlevel_return() Sascha Hauer (3): ARM lowlevel: Update function documentation ARM: Add assembler

[PATCH 1/3] ARM lowlevel: Update function documentation

2012-09-10 Thread Sascha Hauer
Signed-off-by: Sascha Hauer --- arch/arm/cpu/start-pbl.c |3 +++ arch/arm/cpu/start-reset.c |3 +++ arch/arm/cpu/start.c |5 - 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/arch/arm/cpu/start-pbl.c b/arch/arm/cpu/start-pbl.c index 932a3da..09a1940 100644 -

Re: [PATCH 1/3] fec: restart autoneg at open instead of init

2012-09-10 Thread Eric Bénard
Hi Sascha, Le Mon, 10 Sep 2012 09:43:36 +0200, Sascha Hauer a écrit : > Regarding the phy issue I have the following plan: > > - for -next I think Jean-Christophes phylib will be ready to merge. > Hopefully it will for for you then again. I think this patch is > not necessary anymore then. >

Re: [PATCH 1/3] fec: restart autoneg at open instead of init

2012-09-10 Thread Sascha Hauer
Hi Eric, Regarding the phy issue I have the following plan: - for -next I think Jean-Christophes phylib will be ready to merge. Hopefully it will for for you then again. I think this patch is not necessary anymore then. - for -master I intend to take the "miidev: fix 1G wrong detection" pat

Re: [PATCH] video imx-ipu-fb: add clear screen

2012-09-10 Thread Sascha Hauer
On Fri, Sep 07, 2012 at 01:46:39PM +0300, Alex Gershgorin wrote: > This patch clear screen before usage > > Signed-off-by: Alex Gershgorin > --- > drivers/video/imx-ipu-fb.c |4 > 1 files changed, 4 insertions(+), 0 deletions(-) > > diff --git a/drivers/video/imx-ipu-fb.c b/drivers/vid

Re: [PATCH] [RFC] fec: fix calculation of mii bus speed on mxs

2012-09-10 Thread Sascha Hauer
Hi Uwe, On Thu, Sep 06, 2012 at 03:50:01PM +0200, Uwe Kleine-König wrote: > According to a comment in Linux' fec driver, i.MX28 uses the same > formula for determination of the frequency divider as i.MX6, that is > (different from the i.MX28 manual): > > parent clock / ((MII_SPEED + 1) * 2)

Re: [PATCH 1/3] Introduce ARM AMBA bus

2012-09-10 Thread Sascha Hauer
On Sat, Sep 01, 2012 at 02:36:28PM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote: > This will allow to detect the amba device and use the right driver for it at > runtime. > > The code is base on linux 3.5. > > + > +int amba_driver_register(struct amba_driver *drv) > +{ > + drv->drv.bus = &a

Re: [PATCH 1/3 v2] net: introduce phylib

2012-09-10 Thread Sascha Hauer
On Sun, Sep 09, 2012 at 05:44:00PM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote: > Adapt phylib from linux > > switch all the driver to it > > This will allow to have > - phy drivers > - to only connect the phy at then opening of the device > - if the phy is not ready fail on open > > Same