Re: [PATCH v2 1/7] ARM: mmp: parse irq from DT

2011-08-01 Thread Russell King - ARM Linux
On Thu, Jul 28, 2011 at 02:41:27PM +0800, Haojian Zhuang wrote: + unsigned int status, mask, irq_base, nr, data; + int cascade; + ... + mux_info = kzalloc(sizeof(*mux_info), GFP_KERNEL); + if (mux_info == NULL) + goto out; +

Re: [PATCH v2 4/7] tty: serial: support device tree in pxa

2011-08-01 Thread Russell King - ARM Linux
On Mon, Aug 01, 2011 at 10:50:47AM +0800, Haojian Zhuang wrote: On Sat, Jul 30, 2011 at 12:49 AM, Russell King - ARM Linux li...@arm.linux.org.uk wrote: Oh ffs, why is this DT stuff causing all the clk stuff to have to change. And specifically why is stuff converting to use clk_get_sys().

Re: [RFC/PATCH 2/7] OMAP3: beagle: don't touch omap_device internals

2011-08-01 Thread Felipe Balbi
Hi, On Fri, Jul 29, 2011 at 06:07:17PM -0500, Menon, Nishanth wrote: On Fri, Jul 29, 2011 at 09:05, Felipe Balbi ba...@ti.com wrote: +} +EXPORT_SYMBOL(omap_hwmod_name_get_odev); maybe EXPORT_SYMBOL_GPL() ?? Not sure we want non-GPL code to access this ;-) Sure.. but is this the

Re: [PATCH 3/6] drivers/net/niu.c: adjust array index

2011-08-01 Thread David Miller
From: Julia Lawall ju...@diku.dk Date: Thu, 28 Jul 2011 14:46:03 +0200 From: Julia Lawall ju...@diku.dk Convert array index from the loop bound to the loop index. A simplified version of the semantic patch that fixes this problem is as follows: (http://coccinelle.lip6.fr/) // smpl @@

Re: [PATCH v2 1/7] ARM: mmp: parse irq from DT

2011-08-01 Thread Haojian Zhuang
On Mon, Aug 1, 2011 at 10:10 PM, Grant Likely grant.lik...@secretlab.ca wrote: On Mon, Aug 01, 2011 at 10:47:06AM +0800, Haojian Zhuang wrote: On Sat, Jul 30, 2011 at 12:36 AM, Grant Likely grant.lik...@secretlab.ca wrote: diff --git a/arch/arm/mach-mmp/common.h b/arch/arm/mach-mmp/common.h

Re: [RFC/PATCH 7/7] WIP: HACK/RFC: omap_device: begin to decouple platform_device from omap_device

2011-08-01 Thread Kevin Hilman
Russell King - ARM Linux li...@arm.linux.org.uk writes: On Sat, Jul 30, 2011 at 08:58:07PM -0600, Grant Likely wrote: On Sat, Jul 30, 2011 at 01:03:32PM +0100, Russell King - ARM Linux wrote: On Thu, Jul 21, 2011 at 04:52:18PM -0700, Kevin Hilman wrote: Rather than embedding a struct

Re: [RFC/PATCH 7/7] WIP: HACK/RFC: omap_device: begin to decouple platform_device from omap_device

2011-08-01 Thread Grant Likely
On Mon, Aug 1, 2011 at 4:42 PM, Kevin Hilman khil...@ti.com wrote: Russell King - ARM Linux li...@arm.linux.org.uk writes: On Sat, Jul 30, 2011 at 08:58:07PM -0600, Grant Likely wrote: On Sat, Jul 30, 2011 at 01:03:32PM +0100, Russell King - ARM Linux wrote: On Thu, Jul 21, 2011 at

Add device tree enabled Exynos4 machine

2011-08-01 Thread Thomas Abraham
This patchset adds a basic device tree enabled machine for Samsung's Exynos4 processor. This enables further development of device tree coverge for Exynos4. A basic device tree source file for Exynos4 processor and the smdkv310 board is also included. The device tree enabled machine has been boot

[PATCH 1/2] arm: exynos4: Add a new Exynos4 device tree enabled machine

2011-08-01 Thread Thomas Abraham
Add a new basic Exynos4 machine with device tree support that can boot on a Exynos4 processor based board and bring up the console. This acts as a stating point to add device tree support for Exynos4 architecture. Signed-off-by: Thomas Abraham thomas.abra...@linaro.org ---

[PATCH 2/2] arm: dt: Add device tree source file for Exynos4 and let boards include it

2011-08-01 Thread Thomas Abraham
Create a new device tree source file for Samsung's Exynos4 architecture and let Exynos4 based boards include it. We start with a almost empty device tree source file and incrementally add nodes as we improve the device tree coverage for Exynos4 architecture and related boards. Signed-off-by:

[PATCH 3/3] crypto: picoxcell - support for device tree matching

2011-08-01 Thread Jamie Iles
Allow the crypto engines to be matched from device tree bindings. Cc: devicetree-discuss@lists.ozlabs.org Cc: Herbert Xu herb...@gondor.apana.org.au Signed-off-by: Jamie Iles ja...@jamieiles.com --- .../devicetree/bindings/crypto/picochip-spacc.txt | 23

Re: [PATCHv3] mtd: gpio-nand: add device tree bindings

2011-08-01 Thread Scott Wood
On Mon, 1 Aug 2011 15:02:54 +0100 Jamie Iles ja...@jamieiles.com wrote: diff --git a/Documentation/devicetree/bindings/mtd/gpio-control-nand.txt b/Documentation/devicetree/bindings/mtd/gpio-control-nand.txt new file mode 100644 index 000..2dc52de --- /dev/null +++

Re: [RFC/PATCH 7/7] WIP: HACK/RFC: omap_device: begin to decouple platform_device from omap_device

2011-08-01 Thread Felipe Balbi
Hi, On Mon, Aug 01, 2011 at 04:44:20PM +0100, Grant Likely wrote: On Mon, Aug 1, 2011 at 4:42 PM, Kevin Hilman khil...@ti.com wrote: Russell King - ARM Linux li...@arm.linux.org.uk writes: On Sat, Jul 30, 2011 at 08:58:07PM -0600, Grant Likely wrote: On Sat, Jul 30, 2011 at 01:03:32PM

[PATCH v3 0/3] Add device tree support for i.mx51/53 boards

2011-08-01 Thread Shawn Guo
Since we have not reached the agreement on iomuxc binding, I'm dropping that patch and reusing the iomuxc setup that is currently used by non-dt board files. Hopefully, doing that could get the series merged for v3.1, so that people can start playing device tree on i.mx51 babbage and i.mx53 quick

[PATCH v3 1/2] arm/mx5: add device tree support for imx53 boards

2011-08-01 Thread Shawn Guo
From: Shawn Guo shawn@freescale.com It adds device tree support for imx53 boards. Signed-off-by: Shawn Guo shawn@linaro.org Cc: Grant Likely grant.lik...@secretlab.ca Cc: Sascha Hauer s.ha...@pengutronix.de --- .../devicetree/bindings/arm/fsl/boards.txt | 15 ++

[PATCH v3 2/2] arm/mx5: add device tree support for imx51 babbage

2011-08-01 Thread Shawn Guo
It adds device tree support for imx51 babbage board. Signed-off-by: Shawn Guo shawn@linaro.org Cc: Grant Likely grant.lik...@secretlab.ca Cc: Sascha Hauer s.ha...@pengutronix.de --- .../devicetree/bindings/arm/fsl/boards.txt |4 + arch/arm/boot/dts/imx51-babbage.dts

Re: [PATCHv3] mtd: gpio-nand: add device tree bindings

2011-08-01 Thread Jamie Iles
Hi Scott, On Mon, Aug 01, 2011 at 01:38:25PM -0500, Scott Wood wrote: On Mon, 1 Aug 2011 15:02:54 +0100 Jamie Iles ja...@jamieiles.com wrote: diff --git a/Documentation/devicetree/bindings/mtd/gpio-control-nand.txt b/Documentation/devicetree/bindings/mtd/gpio-control-nand.txt new file

Re: [PATCHv3] mtd: gpio-nand: add device tree bindings

2011-08-01 Thread Scott Wood
On Mon, 1 Aug 2011 20:33:16 +0100 Jamie Iles ja...@jamieiles.com wrote: OK, fair points. I'm not sure what to say about endianness though. Host byte order accesses are used in the driver so can I just specify this? We could add a property later to support endianess swapping, but I don't

Re: [PATCHv3] mtd: gpio-nand: add device tree bindings

2011-08-01 Thread Jamie Iles
On Mon, Aug 01, 2011 at 03:12:09PM -0500, Scott Wood wrote: On Mon, 1 Aug 2011 20:33:16 +0100 Jamie Iles ja...@jamieiles.com wrote: OK, fair points. I'm not sure what to say about endianness though. Host byte order accesses are used in the driver so can I just specify this? We could

Re: [PATCHv3] mtd: gpio-nand: add device tree bindings

2011-08-01 Thread Scott Wood
On Mon, 1 Aug 2011 21:25:36 +0100 Jamie Iles ja...@jamieiles.com wrote: On Mon, Aug 01, 2011 at 03:12:09PM -0500, Scott Wood wrote: It looks like the code uses a little-endian accessor (readw) in a couple places. The instance in gpio_nand_readbuf16() should never be reached since the NAND

Re: [PATCH v3 1/2] arm/mx5: add device tree support for imx53 boards

2011-08-01 Thread Grant Likely
On Mon, Aug 1, 2011 at 8:17 PM, Shawn Guo shawn@linaro.org wrote: From: Shawn Guo shawn@freescale.com It adds device tree support for imx53 boards. Signed-off-by: Shawn Guo shawn@linaro.org Cc: Grant Likely grant.lik...@secretlab.ca Cc: Sascha Hauer s.ha...@pengutronix.de It's

Re: [PATCH] DT: OMAP: Convert I2C driver to use device tree

2011-08-01 Thread Grant Likely
On Mon, Aug 1, 2011 at 10:48 PM, G, Manjunath Kondaiah manj...@ti.com wrote: The i2c-omap driver is modified to support both DT and non DT builds and driver is updated to use dt data partially. Tested on OMAP3 beagle board for dt and non dt builds. Signed-off-by: G, Manjunath Kondaiah

Re: [RFC/PATCH 7/7] WIP: HACK/RFC: omap_device: begin to decouple platform_device from omap_device

2011-08-01 Thread Kevin Hilman
Russell King - ARM Linux li...@arm.linux.org.uk writes: Help the typechecker do its job. As we have only one (at the moment...) And make it: +struct omap_device; struct pdev_archdata { +#ifdef CONFIG_ARCH_OMAP + struct omap_device *omap; +#endif }; for bonus points, so we only

Re: [RFC/PATCH 7/7] WIP: HACK/RFC: omap_device: begin to decouple platform_device from omap_device

2011-08-01 Thread Russell King - ARM Linux
On Tue, Aug 02, 2011 at 01:55:55AM +0300, Felipe Balbi wrote: Hi, On Mon, Aug 01, 2011 at 03:11:57PM -0700, Kevin Hilman wrote: Russell King - ARM Linux li...@arm.linux.org.uk writes: Help the typechecker do its job. As we have only one (at the moment...) And make it: +struct

Re: [RFC/PATCH 7/7] WIP: HACK/RFC: omap_device: begin to decouple platform_device from omap_device

2011-08-01 Thread Grant Likely
On Tue, Aug 02, 2011 at 12:09:45AM +0100, Russell King - ARM Linux wrote: On Tue, Aug 02, 2011 at 01:55:55AM +0300, Felipe Balbi wrote: Hi, On Mon, Aug 01, 2011 at 03:11:57PM -0700, Kevin Hilman wrote: Russell King - ARM Linux li...@arm.linux.org.uk writes: Help the typechecker

Re: [PATCH v3] net/smsc911x: add device tree probe support

2011-08-01 Thread David Miller
From: Shawn Guo shawn@linaro.org Date: Sun, 31 Jul 2011 02:26:00 +0800 It adds device tree probe support for smsc911x driver. Signed-off-by: Shawn Guo shawn@linaro.org Cc: Grant Likely grant.lik...@secretlab.ca Cc: Steve Glendinning steve.glendinn...@smsc.com Cc: David S. Miller