[PATCH 1/2] MAKEALL: explicitly use bash

2012-01-02 Thread Sascha Hauer
The script still contains bashisms, so use bash. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- MAKEALL |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/MAKEALL b/MAKEALL index 25b9977..1ba4710 100755 --- a/MAKEALL +++ b/MAKEALL @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin

Re: [PATCH 7/9] ARM: move exception vectors away from start of binary

2012-01-02 Thread Sascha Hauer
On Sun, Jan 01, 2012 at 05:37:17AM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: On 15:52 Sat 17 Dec , Sascha Hauer wrote: Traditionally U-Boot and barebox have the exception vectors at the start of the binary. There is no real reason in doing so, because in the majority of cases

Re: Adding New comand

2012-01-03 Thread Sascha Hauer
On Tue, Jan 03, 2012 at 09:27:04AM +, G Rajender wrote: Hi, Please do not top post. I want to configure the USB OTG port in iMX35 board as a device by adding a separate command and writing USB OTG peripheral code (firmware) in command function. This USB OTG of iMX35 board should

Re: [PATCH v2 3/4] serial gadget: enable/disable on request

2012-01-04 Thread Sascha Hauer
On Wed, Jan 04, 2012 at 09:11:58AM +0100, Eric Bénard wrote: Hi Jean-Christophe, Le Wed, 4 Jan 2012 09:00:43 +0100, Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com a écrit : +/* case 'o': + mode = 1; + break;*/ ditto

Re: [PATCH 1/4] fsl_udc: update and fix

2012-01-04 Thread Sascha Hauer
Hi Eric, Generally, can you please collect the comments to a series and then send the whole series again instead of responding with v2 patches in the original thread? I find it quite hard to pick the correct patches from a longer thread. It's easier to just see 'no comments to the new series

Re: [PATCH 08/12] at91/gpio: simplify resources

2012-01-04 Thread Sascha Hauer
Hi J, On Sat, Dec 31, 2011 at 04:21:34PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: drop irq id and rebase instead of of offset Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- arch/arm/mach-at91/at91rm9200.c| 12

Re: [PATCH] loadb: only try to change the baudrate if the driver has this feature

2012-01-05 Thread Sascha Hauer
On Wed, Jan 04, 2012 at 06:04:23PM +0100, Eric Bénard wrote: Hi Sascha, Le Wed, 4 Jan 2012 17:37:56 +0100, Sascha Hauer s.ha...@pengutronix.de a écrit : On Wed, Jan 04, 2012 at 04:01:16PM +0100, Eric Bénard wrote: this allows loadb to work over usbserial gadget I like the original

Re: [PATCH 1/2] at91rm9200: fix lowlovel init PIOC base

2012-01-05 Thread Sascha Hauer
On Wed, Jan 04, 2012 at 07:07:28PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- MAKEALL | 52 +++- This seems unrelated to this patch.

Re: [PATCH 1/2 v2] at91rm9200: fix lowlovel init PIOC base

2012-01-05 Thread Sascha Hauer
On Wed, Jan 04, 2012 at 07:08:59PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com Missed v2, used this one instead. Sascha --- arch/arm/mach-at91/at91rm9200_lowlevel_init.c |6 +- 2 files changed, 44 insertions(+),

[PATCH] video imx: specify num_modes in platform_data

2012-01-05 Thread Sascha Hauer
Without num_modes the imx fb driver won't work. Specify this in the boards and also bail out in the driver when num_modes is unspecified. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- arch/arm/boards/eukrea_cpuimx25/eukrea_cpuimx25.c |1 + arch/arm/boards/eukrea_cpuimx27

[PATCH] ARM: move exception vectors away from start of binary

2012-01-05 Thread Sascha Hauer
magic those images can now also be detected as barebox images. The header of the image can be customized using CONFIG_ARM_CUSTOM_HEAD. If this is set the user must specify a custom barebox_arm_head function in the text_entry section. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- arch/arm

Re: how to boot from external RAM

2012-01-12 Thread Sascha Hauer
On Wed, Jan 11, 2012 at 04:22:22PM +, G Rajender wrote: Hi All, How to boot barebox from External SDRAM?? Im using iMX35 based board. How do you get the image into the SDRAM? With a debugger? However, barebox can start from SDRAM in which case it just skips the SDRAM initialization and

[PATCH 05/10] ARM omap3 clock: move pll tables to C code

2012-01-16 Thread Sascha Hauer
Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- arch/arm/mach-omap/Makefile |2 +- arch/arm/mach-omap/include/mach/omap3-clock.h | 10 - arch/arm/mach-omap/omap3_clock.c | 123 +++- arch/arm/mach-omap/omap3_clock_core.S | 265

Re: [PATCH 09/10] mtd omap nand: fix driver without CONFIG_PARAMETER

2012-01-16 Thread Sascha Hauer
On Mon, Jan 16, 2012 at 11:18:19AM +0100, Sascha Hauer wrote: With CONFIG_PARAMETER unset the driver never calls omap_gpmc_eccmode. Fix it. Will drop this one and use the patch from Jan Weitzel instead. Sascha Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- drivers/mtd/nand

Re: [PATCH 1/2 v2] add config to check if the size of barebox exceed the target size

2012-01-17 Thread Sascha Hauer
On Mon, Jan 16, 2012 at 05:19:52PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: CONFIG_BAREBOX_MAX_IMAGE_SIZE will allow to detected silent oversize result if 0x0 the size will not been checked Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- v2:

[PATCH] ARM pca-a-l1: fix board_init

2012-01-17 Thread Sascha Hauer
to standard organisation Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com Signed-off-by: Sascha Hauer s.ha...@pengutronix.de Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- arch/arm/boards/phycard-a-l1/Makefile |1 - arch/arm/boards/phycard-a-l1

Re: [PATCH 7/9] ARM: move exception vectors away from start of binary

2012-01-23 Thread Sascha Hauer
On Mon, Jan 02, 2012 at 04:09:01PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: On 15:13 Mon 02 Jan , Sascha Hauer wrote: On Sun, Jan 01, 2012 at 05:37:17AM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: On 15:52 Sat 17 Dec , Sascha Hauer wrote: Traditionally U-Boot

[PATCH 5/7] initcalls: do not hang if an initcall fails

2012-01-26 Thread Sascha Hauer
Currently we just hang when an initcall fails. This resulted in most initcalls just returning 0 unconditionally. Instead of hanging which usually leaves the user without a clue what happened just continue and hope for the best. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- common

some debug patches

2012-01-26 Thread Sascha Hauer
increases the chance that the user gets some clue what went wrong. Sascha Hauer (7): console: remove unused function prototypes kfifo: change kfifo_init to work with a preallocated fifo console: make it work without malloc ARM: panic on div 0 initcalls: do not hang

[PATCH 4/7] ARM: panic on div 0

2012-01-26 Thread Sascha Hauer
hang() only outputs 'reset the board' whereas panic can be passed a string which we can use to output some more information what is happening. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- arch/arm/lib/div0.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch

[PATCH] ARM omap pandaboard: update defconfig

2012-01-27 Thread Sascha Hauer
- enable bootm command - enable iomem command - enable magicvar command - disable nand support, the panda does not have nand Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- arch/arm/configs/panda_defconfig | 18 +++--- 1 files changed, 11 insertions(+), 7 deletions(-) diff

Re: [PATCH] arm/mach-pxa: add pulse width modulator controller

2012-01-27 Thread Sascha Hauer
-by: Sascha Hauer s.ha...@pengutronix.de Acked-by: Kurt Van Dijck kurt.van.di...@eia.be Reviewed-by: Arnd Bergmann a...@arndb.de Reviewed-by: Matthias Kaehlcke matth...@kaehlcke.net --- Documentation/pwm.txt | 56 + MAINTAINERS |6 ++ drivers/Kconfig |2 + drivers

Re: mx35-3stack 124MiByte RAM

2012-01-27 Thread Sascha Hauer
level init routines. Add barebox SDRAM device. Also, fix the memory size for bank 0 to 128MB. It was accidently changed to 124MB here: commit f928efa818adfe56a08350569a9b0f3c2fb791d2 Author: Sascha Hauer s.ha...@pengutronix.de Date: Tue Jul 19 09:58:32 2011 +0200

[PATCH] Add pwm core support

2012-01-31 Thread Sascha Hauer
be initialized by the hardware drivers using dev_name(dev). The client API is the same as currently in the Linux Kernel. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- This patch is currently compile tested only due to the lack of client drivers. drivers/Kconfig |2 + drivers/Makefile

Re: [PATCH] arm/mach-pxa: add pulse width modulator controller

2012-01-31 Thread Sascha Hauer
On Fri, Jan 27, 2012 at 05:07:04PM +0100, Robert Jarzmik wrote: Sascha Hauer s.ha...@pengutronix.de writes: On Thu, Jan 26, 2012 at 08:55:28PM +0100, Robert Jarzmik wrote: Add PXA embedded pulse width modulator support. The PWM can generate signals from 49.6kHz to 1.625MHz. Signed

Re: IIM on iMX27 how-to needed

2012-01-31 Thread Sascha Hauer
On Tue, Jan 31, 2012 at 11:36:51AM +0100, Igor wrote: Hi, I'm trying to read and write the e-fuse banks on my iMX27 with Barebox but still unsuccessfully. I configured and compiled Barebox with IIM support, so I can see these devices: barebox:/ ls -l /dev crw--- 32

Re: IIM on iMX27 how-to needed

2012-01-31 Thread Sascha Hauer
On Tue, Jan 31, 2012 at 01:51:31PM +0100, Igor Trevisan wrote: Hi, The command is correct, the usage is wrong. See http://wiki.barebox.org/doku.php?id=commands:md and let me know if that helps Yes, it helps. It helped me, first of all to RTFM ;-) and use correctly Barebox

Re: [PATCH 1/2] omap: Remove OMAP_GPMC prompt and usage.

2012-02-01 Thread Sascha Hauer
On Wed, Feb 01, 2012 at 11:05:20AM +, Premi, Sanjeev wrote: -Original Message- From: Belisko Marek [mailto:marek.beli...@gmail.com] Sent: Wednesday, February 01, 2012 3:46 PM To: Premi, Sanjeev Cc: barebox@lists.infradead.org Subject: Re: [PATCH 1/2] omap: Remove

v2012.02.0

2012-02-06 Thread Sascha Hauer
Robert P. J. Day (1): Typo fix in Kconfig file: Invlidate - Invalidate Sanjeev Premi (2): ARM omap: Use updated config option ARM omap3beagle: Fix incorrect base addresses Sascha Hauer (65): ARM i.MX27: initialize MAX Add missing code from linux_exec command ppc

Re: any value in allowing user selection of barebox prompt?

2012-02-07 Thread Sascha Hauer
On Mon, Feb 06, 2012 at 10:57:22AM -0500, Robert P. J. Day wrote: making things a bit simpler than my last few posts, is it worth making the BOARDINFO prompt string user selectable? if i was going to do some customization, it would be nice to have the prompt perhaps abbreviate what i'd

Re: what is the purpose of config option HAS_OMAP_NAND?

2012-02-07 Thread Sascha Hauer
On Mon, Feb 06, 2012 at 04:14:45PM -0500, Robert P. J. Day wrote: based on the output from grep: $ grep -r HAS_OMAP_NAND * arch/arm/mach-omap/Kconfig: select HAS_OMAP_NAND arch/arm/mach-omap/Kconfig: select HAS_OMAP_NAND arch/arm/mach-omap/Kconfig: select HAS_OMAP_NAND

Re: make distclean doesn't remove generated MLO file

2012-02-07 Thread Sascha Hauer
On Tue, Feb 07, 2012 at 12:02:56PM -0500, Robert P. J. Day wrote: On Tue, 7 Feb 2012, Premi, Sanjeev wrote: I usually compile both stages together with a 'make clean' in between, hence decided to preserve MLO. Makes it easy to copy both MLO and barebox.bin at same time. is there any

Re: why would beagle and panda boards not have CONFIG_MCI_STARTUP set?

2012-02-07 Thread Sascha Hauer
On Tue, Feb 07, 2012 at 03:33:32PM -0500, Robert P. J. Day wrote: slowly working my way thru how to create an appropriate environment for my beagle xM and when i boot with the default beagle-configured MLO and barebox.bin, there are no disk devices defined as described here:

Re: for which OMAP platform is MCI_OMAP_HSMMC appropriate?

2012-02-07 Thread Sascha Hauer
On Tue, Feb 07, 2012 at 05:20:12PM -0500, Robert P. J. Day wrote: On Tue, 7 Feb 2012, Sascha Hauer wrote: On Tue, Feb 07, 2012 at 03:42:14PM -0500, Robert P. J. Day wrote: from drivers/mci/Kconfig: config MCI_OMAP_HSMMC bool OMAP HSMMC depends on ARCH_OMAP4

Re: [PATCH] Remove apparently superfluous Kconfig variable HAS_OMAP_NAND#

2012-02-07 Thread Sascha Hauer
On Tue, Feb 07, 2012 at 07:01:04AM -0500, Robert P. J. Day wrote: Remove what is an apparently valueless Kconfig variable HAS_OMAP_NAND. A search of the entire source tree shows: $ grep -r HAS_OMAP_NAND * arch/arm/mach-omap/Kconfig: select HAS_OMAP_NAND arch/arm/mach-omap/Kconfig:

Re: need some clarification on how environments work

2012-02-08 Thread Sascha Hauer
On Wed, Feb 08, 2012 at 08:19:18AM +, Premi, Sanjeev wrote: Original Message- From: barebox-boun...@lists.infradead.org [mailto:barebox-boun...@lists.infradead.org] On Behalf Of Robert P. J. Day Sent: Wednesday, February 08, 2012 5:42 AM To: U-Boot Version 2 (barebox)

Re: [PATCH 0/2] omap3evm: Enable Linux boot

2012-02-08 Thread Sascha Hauer
On Tue, Feb 07, 2012 at 09:46:52PM +0530, Sanjeev Premi wrote: These patches are necessary enable Linux boot from barebox.bin. Both patches apply against the 'next' branch at: The changes are obviously correct, applied to -master. Sascha -- Pengutronix e.K. |

[PATCH] mmc/sd patches

2012-02-09 Thread Sascha Hauer
Here are several patches to clean up the sd/mmc layer. Sascha Hauer (15): mci: Add complete definitions for the card type mci: use card type definitions mci: fix high capacity detection mci mxs: do not use external define for internal use mci core: replace discrete

[PATCH 02/15] mci: use card type definitions

2012-02-09 Thread Sascha Hauer
Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- drivers/mci/mci-core.c |4 ++-- include/mci.h |1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/mci/mci-core.c b/drivers/mci/mci-core.c index e9fe87c..db69b27 100644 --- a/drivers/mci/mci-core.c

[PATCH 09/15] mci: remove unused device argument from set_ios

2012-02-09 Thread Sascha Hauer
This argmuent is unused in all drivers, so remove it. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- drivers/mci/atmel_mci.c |3 +-- drivers/mci/imx-esdhc.c |3 +-- drivers/mci/imx.c|3 +-- drivers/mci/mci-core.c |2 +- drivers/mci/mci_spi.c|3

[PATCH 07/15] mci s3c: allocate host struct dynamically

2012-02-09 Thread Sascha Hauer
Yes, it does make sense. First there will always be the next hardware which has multiple controllers. Also, we shouldn't give bad examples to others. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- drivers/mci/s3c.c | 43 +-- 1 files changed, 17

[PATCH 14/15] mci: cdev_find_free_index won't fail, no need to check

2012-02-09 Thread Sascha Hauer
There will always be the next integer number unless we register INT_MAX disk devices which is rarely the case. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- drivers/mci/mci-core.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/drivers/mci/mci-core.c b/drivers

[PATCH 08/15] mci s3c: pass around the right pointer

2012-02-09 Thread Sascha Hauer
The s3c driver passes around a struct device_d * internally in which it is never interested in. Instead pass around a struct s3c_mci_host and get rid of all this ugly void * derefs. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- drivers/mci/s3c.c | 103

[PATCH 13/15] mci: factor out mci/sd specific startup functions

2012-02-09 Thread Sascha Hauer
This saves an indention level and makes the code more readable. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- drivers/mci/mci-core.c | 133 1 files changed, 77 insertions(+), 56 deletions(-) diff --git a/drivers/mci/mci-core.c b/drivers

[PATCH 06/15] mci s3c: Do not mess with struct mci_host

2012-02-09 Thread Sascha Hauer
This structure is owned by the core, do not change its contents in the driver. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- drivers/mci/s3c.c |9 +++-- 1 files changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/mci/s3c.c b/drivers/mci/s3c.c index 9d46b09..a153b1c

[PATCH 05/15] mci core: replace discrete ios values with struct ios

2012-02-09 Thread Sascha Hauer
As we'll need more arguments to set_ios over time put them in a struct mci_ios like the kernel does. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- drivers/mci/atmel_mci.c | 18 ++ drivers/mci/imx-esdhc.c | 16 drivers/mci/imx.c| 18

[PATCH 12/15] mci: replace pr_debug with dev_dbg

2012-02-09 Thread Sascha Hauer
The mci layer uses pr_debug throughout. Use dev_dbg instead which is very useful when multiple cards are involved. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- drivers/mci/mci-core.c | 118 1 files changed, 59 insertions(+), 59

[PATCH 11/15] mci: Use struct mci for internal argument passing

2012-02-09 Thread Sascha Hauer
The mci layer currently passes around a struct device_d for its internal use. Apart from being confusing this drops typesafety for no good reason. Instead, pass around a struct mci. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- drivers/mci/mci-core.c | 271

Re: [PATCH 15/15] mci: Be more verbose on what device is associated to which disk

2012-02-09 Thread Sascha Hauer
On Thu, Feb 09, 2012 at 12:53:58PM +0100, Sascha Hauer wrote: This is quite useful when multiple SD cards are present so spare some bytes to print this information. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- drivers/mci/mci-core.c |4 1 files changed, 4 insertions

[PATCH 1/5] Add a timeout polling loop convenience wrapper

2012-02-09 Thread Sascha Hauer
Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- include/clock.h | 19 +++ 1 files changed, 19 insertions(+), 0 deletions(-) diff --git a/include/clock.h b/include/clock.h index af5b939..123f874 100644 --- a/include/clock.h +++ b/include/clock.h @@ -40,4 +40,23 @@ void

[PATCH] more mci related stuff

2012-02-09 Thread Sascha Hauer
The following is needed to make my board work with 8bit eMMC properly. Well, mostly properly as I didn't manage to get the eMMC work in DDR mode. Sascha Hauer (5): Add a timeout polling loop convenience wrapper mci i.MX esdhc: use timeout loops mci: Add a complete list

Re: [PATCH] Correct Kconfig comment for MCI_OMAP_HSMMC to include OMAP3.

2012-02-09 Thread Sascha Hauer
On Tue, Feb 07, 2012 at 04:01:44PM -0500, Robert P. J. Day wrote: Signed-off-by: Robert P. J. Day rpj...@crashcourse.ca Applied to master. -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ |

Re: [PATCH] Fix Mac OS cross compile failed.

2012-02-10 Thread Sascha Hauer
Hi Keith, On Tue, Feb 07, 2012 at 10:45:27PM +0800, Keith Mok wrote: Fix to avoid using GNU extension on varies areas. The patch is corrupted by your mailer. I see some additional linebreaks and also for some other reason patch reports a malformed patch. Signed-off-by: Keith Mok

Re: [RFC] A first pass at recognizing Pandaboards

2012-02-10 Thread Sascha Hauer
On Fri, Feb 10, 2012 at 09:39:10AM -0500, Robert P. J. Day wrote: thoughts on the following patch? it's certainly not the final result, but it at least *starts* the process of properly recognizing newer pandaboards, using code taking very close to verbatim out of u-boot. it's been

Re: IIM on iMX27 how-to needed

2012-02-10 Thread Sascha Hauer
On Fri, Feb 10, 2012 at 03:13:00PM +0100, Igor Trevisan wrote: Sorry, I replied to Sasha privately and not to the list! On Fri, Feb 10, 2012 at 2:05 PM, Igor Trevisan igt1...@gmail.com wrote: You could try imx_iim0.explicit_sense_enable=0, maybe this helps. Again... This helps!

[PATCH] uImage/bootm fixes

2012-02-13 Thread Sascha Hauer
One important fix to make oftree kernels on Arm work, one less important fix to print the correct error message in bootm. Sascha Hauer (2): ARM: Fix oftree booting uimage: Fix error message arch/arm/lib/armlinux.c |1 + commands/bootm.c|2 +- 2 files changed, 2

[PATCH 1/2] ARM: Fix oftree booting

2012-02-13 Thread Sascha Hauer
We forgot to initialize params to the oftree to actually boot a kernel with devicetree. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- arch/arm/lib/armlinux.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/arm/lib/armlinux.c b/arch/arm/lib/armlinux.c index

USB/network unregistration patches

2012-02-15 Thread Sascha Hauer
Registering devices works fine on barebox, unregistration often not so. This series cleans up unregistration of network/USB devices. Sascha Hauer (6): usb net smsc95xx: remove unused variable usb net smsc95xx: add missing mii_unregister usb net: fix unregistration net: fix

[PATCH 6/6] USB storage: fix disconnect

2012-02-15 Thread Sascha Hauer
USB storage support missed disconnect support. Implement this. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- drivers/usb/storage/usb.c | 23 ++- drivers/usb/storage/usb.h |1 + 2 files changed, 7 insertions(+), 17 deletions(-) diff --git a/drivers/usb/storage

[PATCH 1/6] usb net smsc95xx: remove unused variable

2012-02-15 Thread Sascha Hauer
Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- drivers/net/usb/smsc95xx.c |4 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/drivers/net/usb/smsc95xx.c b/drivers/net/usb/smsc95xx.c index b518992..f2a2d00 100644 --- a/drivers/net/usb/smsc95xx.c +++ b/drivers/net

[PATCH 5/6] net: set enetaddr to invalid address when an invalid string is passed

2012-02-15 Thread Sascha Hauer
Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- net/net.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/net/net.c b/net/net.c index 26ba44e..2752884 100644 --- a/net/net.c +++ b/net/net.c @@ -166,8 +166,10 @@ int string_to_ethaddr(const char *str, char

[PATCH 4/6] net: fix eth device unregistration

2012-02-15 Thread Sascha Hauer
We register a device in eth_register, thus we have to unregister it in eth_unregister. Also, if the device we unregister is the current device, we have to set the current eth_device to NULL so that it isn't used anymore. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- net/eth.c |5

Fix FAT block caching

2012-02-15 Thread Sascha Hauer
this case. Sascha Hauer (3): list: add list_last_entry function fat: revert fat caching mechanism block: reimplement caching common/block.c | 274 - fs/fat/ff.c | 93 - include/block.h | 16

[PATCH 1/3] list: add list_last_entry function

2012-02-15 Thread Sascha Hauer
Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- include/linux/list.h | 11 +++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/include/linux/list.h b/include/linux/list.h index 1a4cbc4..15ed499 100644 --- a/include/linux/list.h +++ b/include/linux/list.h @@ -272,6

[PATCH 3/3] block: reimplement caching

2012-02-15 Thread Sascha Hauer
be easily made configurable. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- common/block.c | 274 --- include/block.h | 16 ++-- 2 files changed, 210 insertions(+), 80 deletions(-) diff --git a/common/block.c b/common/block.c index 24377c6

[PATCH 05/12] fs: Store mtab path in allocated string

2012-02-15 Thread Sascha Hauer
Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- fs/fs.c |5 +++-- include/fs.h |2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/fs/fs.c b/fs/fs.c index afa0198..d65a41f 100644 --- a/fs/fs.c +++ b/fs/fs.c @@ -808,8 +808,8 @@ int mount(const char *device

[PATCH 07/12] fs: simplify get_mtab_entry_by_path

2012-02-15 Thread Sascha Hauer
Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- fs/fs.c | 23 ++- 1 files changed, 6 insertions(+), 17 deletions(-) diff --git a/fs/fs.c b/fs/fs.c index 7175e33..121bf6f 100644 --- a/fs/fs.c +++ b/fs/fs.c @@ -170,29 +170,18 @@ EXPORT_SYMBOL(normalise_path

Re: [PATCH 1/4] add gpio keyboard support

2012-02-15 Thread Sascha Hauer
On Wed, Feb 15, 2012 at 05:14:26PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: This information would be far more informative if you printed the button that is pressed/released here. ok + } + gb-previous_state = val; + } You do nothing for debouncing

Re: mx53 loco boot procedure

2012-02-21 Thread Sascha Hauer
On Tue, Feb 21, 2012 at 08:38:24PM +0200, George Stefan wrote: Hello guys, After dd if=barebox.bin of=/dev/sdb bs=512 and dd if=arch/arm/boot/uImage of=/dev/sdb bs=512 seek=768 i am getting Board: Freescale i.MX53 LOCO registered netconsole as cs1 eth@eth0: got MAC address from EEPROM:

Re: [PATCH 3/7] i.MX53: add silicn revision functions

2012-02-21 Thread Sascha Hauer
On Tue, Feb 21, 2012 at 01:27:35AM +0100, Eric Bénard wrote: Signed-off-by: Eric Bénard e...@eukrea.com --- arch/arm/mach-imx/imx53.c | 45 +++ arch/arm/mach-imx/include/mach/imx53-regs.h |5 +++ 2 files changed, 50 insertions(+), 0

[PATCH 09/13] net: use container_of instead of dev-type_data

2012-02-25 Thread Sascha Hauer
Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- drivers/net/cs8900.c |2 +- include/net.h|2 ++ net/eth.c|5 ++--- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/net/cs8900.c b/drivers/net/cs8900.c index da23755..291fd0a 100644

[PATCH 03/13] console: use container_of instead of type_data

2012-02-25 Thread Sascha Hauer
This reduces the usage of type_data. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- common/console.c |7 --- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/common/console.c b/common/console.c index abc0627..83cc2a5 100644 --- a/common/console.c +++ b/common

[PATCH 05/13] serial pxa: fix unregister

2012-02-25 Thread Sascha Hauer
- Add missing console_unregister call - use dev-priv instead of dev-type_data Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- drivers/serial/serial_pxa.c |7 +-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/serial/serial_pxa.c b/drivers/serial

[PATCH 07/13] serial stm: fix unregister

2012-02-25 Thread Sascha Hauer
- Add missing console_unregister call - use dev-priv instead of dev-type_data Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- drivers/serial/stm-serial.c |9 ++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/serial/stm-serial.c b/drivers/serial/stm

[PATCH 12/13] net fec_mpc5200: drop type_data usage

2012-02-25 Thread Sascha Hauer
Also, clean some whitespace damage. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- drivers/net/fec_mpc5200.c | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/net/fec_mpc5200.c b/drivers/net/fec_mpc5200.c index 001a3a0..c3f2099 100644

[PATCH 02/13] fs: get fs device using container_of

2012-02-25 Thread Sascha Hauer
This reduces the usage of dev-type_data. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- fs/cramfs/cramfs.c |3 +-- fs/devfs.c |1 - fs/fat/fat.c |3 +-- fs/fs.c|5 ++--- fs/ramfs.c |1 - fs/tftp.c |3 +-- include/fs.h

[PATCH 01/13] fs: get fs driver using container_of

2012-02-25 Thread Sascha Hauer
This reduces the usage of dev-type_data. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- fs/fs.c | 33 - include/fs.h |2 ++ 2 files changed, 18 insertions(+), 17 deletions(-) diff --git a/fs/fs.c b/fs/fs.c index 3923ec6..0f12aa6 100644 --- a/fs

get rid of most type_data usage

2012-02-25 Thread Sascha Hauer
. This leaves the use of this member to i2c and spi which use this field to pass a i2c/spi device to the client drivers. This can be fixed in a later series. Sascha Hauer (13): fs: get fs driver using container_of fs: get fs device using container_of console: use container_of instead

[PATCH 10/13] net drivers: remove unused type_data

2012-02-25 Thread Sascha Hauer
Many net drivers set dev-type_data without ever using it, so just remove it. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- drivers/net/altera_tse.c |2 -- drivers/net/cs8900.c |1 - drivers/net/dm9k.c |1 - drivers/net/ep93xx.c |1 - drivers/net/macb.c

[PATCH 08/13] serial s3c: add a driver private struct

2012-02-25 Thread Sascha Hauer
Do not use dev-priv as a register base, but use a driver private struct instead. Also, remove usage of dev-type_data Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- drivers/serial/serial_s3c.c | 47 +- 1 files changed, 28 insertions(+), 19

[PATCH 04/13] serial drivers: remove unused type_data

2012-02-25 Thread Sascha Hauer
Several serial drivers set the type_data field without ever using it, so just remove it. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- drivers/serial/amba-pl011.c |1 - drivers/serial/arm_dcc.c|1 - drivers/serial/atmel.c |1 - drivers/serial

[PATCH 1/2] getopt: turn commented out printf into debug()

2012-02-27 Thread Sascha Hauer
Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- lib/getopt.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/getopt.c b/lib/getopt.c index 64d6ac1..5c35ee1 100644 --- a/lib/getopt.c +++ b/lib/getopt.c @@ -47,7 +47,7 @@ int getopt(int argc, char *argv[], char

[PATCH 2/2] getopt: save and restore context

2012-02-27 Thread Sascha Hauer
to store the context and restore it afterwards. The same is necessary in builtin_getopt. Currently noone does this so this one shouldn't fix a bug, but merely allows us to do such things later. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- common/command.c | 12 common/hush.c

Re: PATCH: Fix MMC boot in OMAP4 xload configurations

2012-02-28 Thread Sascha Hauer
On Mon, Feb 27, 2012 at 08:32:47PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: On 08:23 Fri 24 Feb , Sascha Hauer wrote: Hi Mark, On Thu, Feb 23, 2012 at 04:53:28PM +, Mark Olleson wrote: omap4_bootsrc() always returns OMAP_BOOTSRC_UNKNOWN when an OMAP4 xload image

Re: [PATCH] drivers/mci: fix read/write stalling

2012-02-28 Thread Sascha Hauer
On Mon, Feb 27, 2012 at 11:45:28PM +0100, Robert Jarzmik wrote: If a read or write operation encounters an error, the card might stay in recv or data state, and never get back to tran state. In these cases, the host is required to send a CMD12 (end transmission) to switch the FSM of the

Re: [PATCH V3] arm/mach-pxa: add mioa701 board

2012-02-28 Thread Sascha Hauer
On Tue, Feb 28, 2012 at 02:41:11PM +0100, Robert Jarzmik wrote: Add Mitac MioA701 board initial support. The support provides basic boot and : - a console over USB (serial gadget). - the SD card support - the MTD docg3 support - the LCD support Add a check in the default environment

Re: [PATCH 3/3] ARM: Allow to compile in thumb-2 mode

2012-02-29 Thread Sascha Hauer
On Wed, Feb 29, 2012 at 07:21:23PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: On 09:56 Tue 28 Feb , Sascha Hauer wrote: This shrinks the resulting binary size by ~25%. Exceptions are still handled in arm mode, so we have to explicitely put .arm directives into the exception code

Re: [PATCH 2/2] pcaam1: Change the machine id/name to follow the phyCARD naming convention

2012-03-02 Thread Sascha Hauer
On Thu, Mar 01, 2012 at 02:50:13PM +0100, Christian Hemp wrote: Change the machine id/name to follow the phyCARD naming convention. This patch can be dropped if the phyCARD-A-M1 is updated in the official machine registry. Signed-off-by: Christian Hemp c.h...@phytec.de ---

Re: [PATCH 1/2] pcaam1: Add support for the Phytec phyCARD-A-M1 (PCA-A-M1)

2012-03-02 Thread Sascha Hauer
Hi Christian, On Thu, Mar 01, 2012 at 02:50:12PM +0100, Christian Hemp wrote: Add support for the phyCARD-A-M1 (PCA-A-M1). + +static struct fb_videomode pcaam1_fb_mode[] = { + { + .name = Primeview-PD050VL1, + .refresh= 60, +

Re: [PATCH 2/2] omap: move do_set_mux to omap4_generic

2012-03-05 Thread Sascha Hauer
On Mon, Mar 05, 2012 at 11:19:44AM +0100, Jan Weitzel wrote: do_set_mux is used by two boards. return 0; } + +void do_set_mux(u32 base, struct pad_conf_entry const *array, int size) +{ + int i; + struct pad_conf_entry *pad = (struct pad_conf_entry *) array; + + for (i

Re: [PATCH/RFC 3/4] barebox-data: add barebox-data sections

2012-03-06 Thread Sascha Hauer
On Fri, Mar 02, 2012 at 04:04:06PM +0100, Alexander Aring wrote: Add barebox-data section in arm branch to get complete barebox regions in sdram regions tree. Signed-off-by: Alexander Aring a.ar...@phytec.de --- It's right here to decrement the end adresses? Otherwise sdram regions will

Re: [PATCH/RFC 4/4] memtest: rewrite memtest commands

2012-03-06 Thread Sascha Hauer
Hi Alexander, On Fri, Mar 02, 2012 at 04:04:07PM +0100, Alexander Aring wrote: Rewrite memtest command: Skip barebox sdram regions. Disable cache while testing. Add iteration parameter. Check start and end addresses. Testing all banks if no start and end address are given.

Re: [PATCH] net: dhcp: allow to set transmitted vendor id

2012-03-07 Thread Sascha Hauer
On Tue, Mar 06, 2012 at 06:36:15PM +0100, Enrico Scholz wrote: For net boot setups it is useful to submit boot params like server or bootfile over dhcp. To distinguish barebox from e.g. pxe machines, a custom vendor id can be sent in dhcp discover/request messages. E.g. the ISC dhcp server

Re: [PATCH 1/2 v2] omap: move scale_vcores to omap4_generic

2012-03-07 Thread Sascha Hauer
On Tue, Mar 06, 2012 at 03:26:28PM +0100, Jan Weitzel wrote: scale_vcores is used by two boards. Signed-off-by: Jan Weitzel j.weit...@phytec.de --- v2: add omap4_ prefix Applied both. Thanks Sascha arch/arm/boards/panda/lowlevel.c| 33 +--

Re: [PATCH] NET: Add support for ks8851_mll

2012-03-08 Thread Sascha Hauer
Hi Jan, On Wed, Mar 07, 2012 at 01:17:33PM +0100, Jan Weitzel wrote: Add support for KS8851 16bit MLL chip from Micrel Inc. Signed-off-by: Jan Weitzel j.weit...@phytec.de Looks mostly good. Please use dev_* instead of printf/debug and this is ready to apply. Sascha ---

Re: [RFC V2 1/6] PCI: initial commit (draft)

2012-03-12 Thread Sascha Hauer
On Thu, Mar 08, 2012 at 11:50:27PM +0400, Antony Pavlov wrote: used shorten version of linux-2.6.39 pci_ids.h + +static int pci_init(void) +{ + pcibios_init(); + + if (!pci_present()) { + printf(PCI: No PCI bus detected\n); + return 0; + } + +

Re: [RFC V2 5/6] net: add Realtek 8139 Ethernet controller support

2012-03-12 Thread Sascha Hauer
On Thu, Mar 08, 2012 at 11:50:31PM +0400, Antony Pavlov wrote: This driver is based on Linux 2.6.39 8139too driver. + +static void rtl8139_chip_reset(struct rtl8139_priv *priv) +{ + int i; + +#ifdef RTL8139_DEBUG + printf(rtl8139_chip_reset()\n); +#endif Please use dev_dbg()

Re: [PATCH 1/1] net: dhcp: allow to set transmitted vendor id

2012-03-12 Thread Sascha Hauer
On Thu, Mar 08, 2012 at 03:03:26PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: From: Enrico Scholz enrico.sch...@sigma-chemnitz.de For net boot setups it is useful to submit boot params like server or bootfile over dhcp. To distinguish barebox from e.g. pxe machines, a custom vendor id

Re: serial S3: fix local structure malloc

2012-03-13 Thread Sascha Hauer
On Mon, Mar 12, 2012 at 02:57:59PM +0100, Juergen Beisert wrote: Patch 2c5404651091e985c9009aa417d80fdaf50d7a68 introduces a private structure for the S3C based UARTs but still reserves the memory for the smaller structure which fails at runtime. Signed-off-by: Juergen Beisert

Re: [PATCH] imx_nand_load_image: change all users to use barebox_image_size

2012-03-13 Thread Sascha Hauer
On Fri, Mar 09, 2012 at 12:58:21PM +0100, Michael Grzeschik wrote: Signed-off-by: Michael Grzeschik m.grzesc...@pengutronix.de --- arch/arm/boards/eukrea_cpuimx25/eukrea_cpuimx25.c |3 ++- arch/arm/boards/eukrea_cpuimx25/lowlevel.c|3 ++-

  1   2   3   4   5   6   7   8   9   10   >