Re: [PATCH] ubiformat: get buffer from malloc

2013-03-25 Thread Alexander Aring
On Mon, Mar 25, 2013 at 04:32:15PM +0100, Alexander Aring wrote: > Hi, > > On Mon, Mar 25, 2013 at 04:15:57PM +0100, Jan Weitzel wrote: > > There was a erase block sized (here 131072) char buf array on the stack. > > Changed this to get the space from malloc preventing stack overflows. > > Also fi

Re: [PATCH] ubiformat: get buffer from malloc

2013-03-25 Thread Alexander Aring
Hi, On Mon, Mar 25, 2013 at 04:15:57PM +0100, Jan Weitzel wrote: > There was a erase block sized (here 131072) char buf array on the stack. > Changed this to get the space from malloc preventing stack overflows. > Also fix a wrong return without clean up. > > Signed-off-by: Jan Weitzel > --- >

Re: [PATCH] ubiformat: get buffer from malloc

2013-03-25 Thread Jan Weitzel
Am Montag, den 25.03.2013, 16:15 +0100 schrieb Jan Weitzel: > There was a erase block sized (here 131072) char buf array on the stack. > Changed this to get the space from malloc preventing stack overflows. > Also fix a wrong return without clean up. > btw the command works fine with the stack ove

[PATCH] ubiformat: get buffer from malloc

2013-03-25 Thread Jan Weitzel
There was a erase block sized (here 131072) char buf array on the stack. Changed this to get the space from malloc preventing stack overflows. Also fix a wrong return without clean up. Signed-off-by: Jan Weitzel --- commands/ubiformat.c | 22 +++--- 1 files changed, 15 insertio

[PATCH] clk: remove unused __clk_[get|put]

2013-03-25 Thread Sascha Hauer
This is some unused code resulting from copying stuff from the kernel. Remove it. Signed-off-by: Sascha Hauer --- arch/arm/include/asm/clkdev.h | 17 - arch/arm/mach-at91/include/mach/clkdev.h | 7 --- arch/arm/mach-bcm2835/include/mach/clkdev.h | 7 -

Re: [PATCH 0/6] ArchosG9: add keyboard input and new reset menu entries (v2)

2013-03-25 Thread vj
On Mon, Mar 25, 2013 at 10:39 AM, Sascha Hauer wrote: > On Sat, Mar 16, 2013 at 11:59:36PM +0100, Vicente Bergas wrote: >> This is the second version of this patch series, it includes all feedback >> received >> which is greatly appreciated. >> >> Vicente Bergas (6): >> OMAP4: check for usb ava

[PATCH v2 3/5] ARM: zynq: add clk support for zynq7000

2013-03-25 Thread Steffen Trumtrar
This adds support for the clocktree on zynq7000 SoCs. The patch is based on clocks.c from the larger patch ARM: zynq: add suppport for Zynq 7000 SoC by Josh Cartwright. The driver in that patch is converted to a platform_driver and code to enable plls was added. Signed-off-by: Steffen Tru

[PATCH v3 5/5] ARM: zynq: Add support for the Avnet Zedboard

2013-03-25 Thread Steffen Trumtrar
The Avnet ZedBoard is an evalboard with a Zynq-7020 based MPSoC. There is also a Digilent ZedBoard, that is the same but only for academic customers. Signed-off-by: Steffen Trumtrar --- Changes since v2: - use pbl image - remove useless flash_header_start arch/arm/boards/avnet-

[PATCH v3 2/5] ARM: zynq: Add new architecture zynq

2013-03-25 Thread Steffen Trumtrar
Add basic support for the Xilinx Zynq-7000 EPP architecture. The Zynq-7000 is an embedded processing platform that combines a Cortex A9 dualcore MPSoC with an Artix-7 FPGA. Signed-off-by: Steffen Trumtrar --- Changes since v2: - don't force serial driver in Kconfig - remove MACH_

[PATCH v3 1/5] serial: Add driver for Cadence UART

2013-03-25 Thread Steffen Trumtrar
Support for Cadence UART core. Signed-off-by: Steffen Trumtrar --- Changes since v2: - remove superfluous Kconfig option - add help text to Kconfig option drivers/serial/Kconfig | 5 + drivers/serial/Makefile | 1 + drivers/serial/serial_cadence.c | 307 +++

[PATCH v2 4/5] ARM: zynq: add zynq fsbl checksum script

2013-03-25 Thread Steffen Trumtrar
The bootrom only reads an image if the correct checksum is present in the header. The calculation is pretty simple: sum over all words from 0x20 to 0x44 Two of this words are the image length. That is why the checksum can not be calculated until barebox_image_size is known. The easiest solution is

[PATCH v3 0/5] ARM: add support for Zynq

2013-03-25 Thread Steffen Trumtrar
Hi! Next shot at Zynq support. I addressed all/most comments from Jean-Christophe and Josh (changelogs are in the respective patches). The lowlevel stuff is still suboptimal with a bunch of writels. Reason: no complete clk- and no pinctrl-support yet. This will be added next. Regards, Steffen St

Re: [PATCH] cfa10036: Retrieve the RAM size at runtime

2013-03-25 Thread Maxime Ripard
HI, Le 25/03/2013 13:58, Alexandre Belloni a écrit : > On 25/03/2013 13:51, Sascha Hauer wrote: >> >> index 1bc20cf..37cc17e 100644 >> --- a/arch/arm/boards/crystalfontz-cfa10036/cfa10036.c >> +++ b/arch/arm/boards/crystalfontz-cfa10036/cfa10036.c >> @@ -39,6 +39,8 @@ >> #include >> #include >

Re: [PATCH] cfa10036: Retrieve the RAM size at runtime

2013-03-25 Thread Alexandre Belloni
On 25/03/2013 13:51, Sascha Hauer wrote: > > index 1bc20cf..37cc17e 100644 > --- a/arch/arm/boards/crystalfontz-cfa10036/cfa10036.c > +++ b/arch/arm/boards/crystalfontz-cfa10036/cfa10036.c > @@ -39,6 +39,8 @@ > #include > #include > > +#include > + > #include > > #include > @@ -90,9 +9

Re: [PATCH] cfa10036: Retrieve the RAM size at runtime

2013-03-25 Thread Sascha Hauer
On Thu, Mar 21, 2013 at 04:36:38PM +0100, Alexandre Belloni wrote: > The cfa-10036 comes in two flavours, with either 128MB or 256MB of RAM > on it. > > Since it's not stored anywhere, we need to runtime detect it by > introducing the cfa10036_get_ram_size function which is similar to > get_ram_si

Re: [PATCH] [ARM] imx1: add #define to configure frequency for the clk32

2013-03-25 Thread Sascha Hauer
On Mon, Mar 25, 2013 at 12:14:34PM +0100, gwenhael.goavec wrote: > Hi, > What do you mean by "first user" ? A patch which adds a board which makes use of this. Sascha -- Pengutronix e.K. | | Industrial Linux Solutions | http

Re: [PATCH] cfa10036: Retrieve the RAM size at runtime

2013-03-25 Thread Maxime Ripard
Hi Alexandre, Le 21/03/2013 16:36, Alexandre Belloni a écrit : > The cfa-10036 comes in two flavours, with either 128MB or 256MB of RAM > on it. > > Since it's not stored anywhere, we need to runtime detect it by > introducing the cfa10036_get_ram_size function which is similar to > get_ram_size.

Re: [PATCH] [ARM] imx1: add #define to configure frequency for the clk32

2013-03-25 Thread gwenhael.goavec
Hi, What do you mean by "first user" ? Gwenhael On Fri, 15 Mar 2013 16:13:12 +0100 Sascha Hauer wrote: > On Wed, Mar 13, 2013 at 09:58:58AM +0100, Gwenhael Goavec-Merou wrote: > > From: gwenhael > > > > i.MX1 allows to use a 32kHz or a 32.768kHz quartz for the 32kHz clock source > > (MC9328MX

Re: [PATCH 0/6] ArchosG9: add keyboard input and new reset menu entries (v2)

2013-03-25 Thread Sascha Hauer
On Sat, Mar 16, 2013 at 11:59:36PM +0100, Vicente Bergas wrote: > This is the second version of this patch series, it includes all feedback > received > which is greatly appreciated. > > Vicente Bergas (6): > OMAP4: check for usb availability at device registration > ArchosG9: zero all featur

Re: [PATCH 4/6] OMAP4: add command to select next boot device priority

2013-03-25 Thread Sascha Hauer
On Sat, Mar 16, 2013 at 11:59:40PM +0100, Vicente Bergas wrote: > On OMAP4 SoC there is a SAR memory region (Save & Rescue) where the ROM > code reads the device to boot from. > This patch adds a way to set this. > > Signed-off-by: Vicente Bergas > --- > arch/arm/mach-omap/include/mach/omap4-sil

Re: [PATCH] macb: rename platform data

2013-03-25 Thread Sascha Hauer
Hi Josh, On Tue, Mar 19, 2013 at 10:54:32AM -0500, Josh Cartwright wrote: > On Fri, Mar 15, 2013 at 06:26:00PM -0500, Josh Cartwright wrote: > [..] > > >From 0d51dc731ff3934e22e78405a992658a8d3bf1de Mon Sep 17 00:00:00 2001 > > From: Josh Cartwright > > Date: Tue, 19 Mar 2013 10:22:48 -0500 > > S