Re: [PATCH] of/irq: init struct resource to 0 in of_irq_to_resource()

2013-07-18 Thread Sebastian Andrzej Siewior
On 07/19/2013 04:49 AM, Rob Herring wrote: > On 07/18/2013 05:24 AM, Sebastian Andrzej Siewior wrote: >> It almost does not matter because most users use only the ->start member >> of the struct. However if this struct is passed to a platform device >> which is then added via platform_device_add()

Re: [PATCH 01/15] drivers: phy: add generic PHY framework

2013-07-18 Thread Kishon Vijay Abraham I
Hi, On Friday 19 July 2013 11:59 AM, Greg KH wrote: > On Fri, Jul 19, 2013 at 11:25:44AM +0530, Kishon Vijay Abraham I wrote: >> Hi, >> >> On Friday 19 July 2013 11:13 AM, Greg KH wrote: >>> On Fri, Jul 19, 2013 at 11:07:10AM +0530, Kishon Vijay Abraham I wrote: + ret = dev_set_name(

Re: [PATCH 01/15] drivers: phy: add generic PHY framework

2013-07-18 Thread Greg KH
On Fri, Jul 19, 2013 at 11:25:44AM +0530, Kishon Vijay Abraham I wrote: > Hi, > > On Friday 19 July 2013 11:13 AM, Greg KH wrote: > > On Fri, Jul 19, 2013 at 11:07:10AM +0530, Kishon Vijay Abraham I wrote: > >> + ret = dev_set_name(&phy->dev, "%s.%d", dev_name(dev), id); > > > > Y

Re: [PATCH 01/15] drivers: phy: add generic PHY framework

2013-07-18 Thread Kishon Vijay Abraham I
Hi, On Friday 19 July 2013 11:13 AM, Greg KH wrote: > On Fri, Jul 19, 2013 at 11:07:10AM +0530, Kishon Vijay Abraham I wrote: >> +ret = dev_set_name(&phy->dev, "%s.%d", dev_name(dev), id); > > Your naming is odd, no "phy" anywhere in it? You rely on the sender to > never s

Re: [PATCH 01/15] drivers: phy: add generic PHY framework

2013-07-18 Thread Greg KH
On Fri, Jul 19, 2013 at 11:07:10AM +0530, Kishon Vijay Abraham I wrote: > +ret = dev_set_name(&phy->dev, "%s.%d", dev_name(dev), id); > >>> > >>> Your naming is odd, no "phy" anywhere in it? You rely on the sender to > >>> never send a duplicate name.id pair? Why not create your own

Re: [PATCH 01/15] drivers: phy: add generic PHY framework

2013-07-18 Thread Kishon Vijay Abraham I
Hi, On Thursday 18 July 2013 09:19 PM, Greg KH wrote: > On Thu, Jul 18, 2013 at 02:29:52PM +0530, Kishon Vijay Abraham I wrote: >> Hi, >> >> On Thursday 18 July 2013 12:50 PM, Greg KH wrote: >>> On Thu, Jul 18, 2013 at 12:16:10PM +0530, Kishon Vijay Abraham I wrote: +struct phy_provider *__of

Re: [PATCH v8] reset: Add driver for gpio-controlled reset pins

2013-07-18 Thread Shawn Guo
On Thu, Jul 18, 2013 at 11:45:29AM -0700, Olof Johansson wrote: > Hi, > > On Thu, Jul 18, 2013 at 4:25 AM, Pavel Machek wrote: > > > It sound to me like keeping ammount of -EPROBE_DEFER to minimum is > > still preferred. > > Hand-crafting initcall level ordering of various drivers and subsystem

Re: [PATCH] of/irq: init struct resource to 0 in of_irq_to_resource()

2013-07-18 Thread Rob Herring
On 07/18/2013 05:24 AM, Sebastian Andrzej Siewior wrote: > It almost does not matter because most users use only the ->start member > of the struct. However if this struct is passed to a platform device > which is then added via platform_device_add() then the ->parent member is > also used. Most u

Re: [PATCH 1/3] misc: Add crossbar driver

2013-07-18 Thread Nishanth Menon
On Thu, Jul 18, 2013 at 6:39 PM, Santosh Shilimkar wrote: > On Thursday 18 July 2013 02:56 PM, Nishanth Menon wrote: >> On 07/18/2013 11:43 AM, Sricharan R wrote: >>> Some socs have a large number of interrupts/dma requests to service >>> the needs of its many peripherals and subsystems. All of th

[PATCH v4 2/5] Documentation: Add memory mapped ARM architected timer binding

2013-07-18 Thread Stephen Boyd
Add a binding for the arm architected timer hardware's memory mapped interface. The mmio timer hardware is made up of one base frame and a collection of up to 8 timer frames, where each of the 8 timer frames can have either one or two views. A frame typically maps to a privilege level (user/kernel,

[PATCH v4 0/5] Memory mapped architected timers

2013-07-18 Thread Stephen Boyd
This patchset adds support for memory mapped architected timers. We don't have any other global broadcast timer in our system, so we use the mmio timer during low power modes. The first patch changes the register accessor to an enum per Thomas' request. The second patch is the binding. The next two

Re: [PATCH 1/3] misc: Add crossbar driver

2013-07-18 Thread Santosh Shilimkar
On Thursday 18 July 2013 02:56 PM, Nishanth Menon wrote: > On 07/18/2013 11:43 AM, Sricharan R wrote: >> Some socs have a large number of interrupts/dma requests to service >> the needs of its many peripherals and subsystems. All of the >> requests lines from the subsystems are not needed at the sa

Re: [PATCH v8] reset: Add driver for gpio-controlled reset pins

2013-07-18 Thread Grant Likely
On Thu, Jul 18, 2013 at 4:25 AM, Pavel Machek wrote: > Hi! > >> >>> I do not quite follow the argument here. I agree with you that >> >>> deferred probe is the approach to solve dependencies. But it does not >> >>> necessarily mean that initcall can not be used to help it save some >> >>> nasty

Re: [PATCH v8] reset: Add driver for gpio-controlled reset pins

2013-07-18 Thread Grant Likely
On Wed, Jul 17, 2013 at 9:57 AM, Stephen Warren wrote: > On 07/16/2013 09:02 PM, Shawn Guo wrote: >> On Tue, Jul 16, 2013 at 09:45:43AM -0600, Stephen Warren wrote: >>> Registering the driver earlier won't cause any bugs. However, it's not >>> the correct approach. >>> >>> Deferred probe /is/ the

Re: [lm-sensors] [RESEND PATCH V1 0/9] thermal: introduce DT thermal zone build

2013-07-18 Thread Guenter Roeck
On Thu, Jul 18, 2013 at 11:18:05AM -0600, Stephen Warren wrote: > On 07/18/2013 07:53 AM, Eduardo Valentin wrote: > > Hello Guenter, > > > > On 17-07-2013 18:09, Guenter Roeck wrote: > >> On Wed, Jul 17, 2013 at 11:17:19AM -0400, Eduardo Valentin > >> wrote: > >>> Hello all, > >>> > >>> As you no

Re: [lm-sensors] [RESEND PATCH V1 0/9] thermal: introduce DT thermal zone build

2013-07-18 Thread Guenter Roeck
On Thu, Jul 18, 2013 at 09:53:05AM -0400, Eduardo Valentin wrote: > Hello Guenter, > > On 17-07-2013 18:09, Guenter Roeck wrote: > > On Wed, Jul 17, 2013 at 11:17:19AM -0400, Eduardo Valentin wrote: > >> Hello all, > >> > >> As you noticed, I am working in a way to represent thermal data > >> usin

Re: [PATCH v3 0/5] clk: dt: bindings for mux, divider & gate clocks

2013-07-18 Thread Stephen Boyd
On 06/20/13 23:14, Mike Turquette wrote: > This series introduces binding definitions for common register-mapped > clock multiplexer, divider and gate IP blocks along with the > corresponding setup functions for matching DT data. The bindings are > similar to the struct definitions but please don'

Re: [PATCH v2 01/24] spi: mpc512x: cleanup clock API use

2013-07-18 Thread Mark Brown
On Thu, Jul 18, 2013 at 07:00:32PM +0200, Gerhard Sittig wrote: > + psc_num = master->bus_num; > + snprintf(clk_name, sizeof(clk_name), "psc%d_mclk", psc_num); > + mps->clk_mclk = clk_get(dev, clk_name); > + if (IS_ERR(mps->clk_mclk)) > + goto free_irq; Should be using

Re: [PATCH v2 18/24] i2c: mpc: OF clock lookup for MPC512x

2013-07-18 Thread Russell King - ARM Linux
On Thu, Jul 18, 2013 at 10:20:52PM +0200, Gerhard Sittig wrote: > + /* enable clock for the I2C peripheral (non fatal) */ > + clk = of_clk_get_by_name(node, "per"); > + if (!IS_ERR(clk)) { > + clk_prepare_enable(clk); > + clk_put(clk); > + } > + This kind of

[PATCH v2 24/24] net: can: mscan: remove MPC512x non-COMMON_CLK code path

2013-07-18 Thread Gerhard Sittig
transition to the COMMON_CLK framework has completed for the MPC512x platform, remove the now obsolete code path of the mpc5xxx mscan driver which accessed clock control module registers directly Signed-off-by: Gerhard Sittig --- drivers/net/can/mscan/mpc5xxx_can.c | 136 ---

[PATCH v2 23/24] clk: mpc512x: switch to COMMON_CLK, remove PPC_CLOCK

2013-07-18 Thread Gerhard Sittig
completely switch to, i.e. unconditionally use COMMON_CLK for the MPC512x platform, and retire the PPC_CLOCK implementation for that platform after the transition has completed Signed-off-by: Gerhard Sittig --- arch/powerpc/platforms/512x/Kconfig | 14 +- arch/powerpc/platforms/512x/Makefile

[PATCH v2 21/24] [media] fsl-viu: OF clock lookup, prepare before enable

2013-07-18 Thread Gerhard Sittig
device tree based clock lookup, must prepare clocks before enabling them, unprepare after disable, error check in the clock setup Signed-off-by: Gerhard Sittig --- drivers/media/platform/fsl-viu.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/media/pl

[PATCH v2 22/24] powerpc/fsl-pci: OF clock lookup, prepare before enable

2013-07-18 Thread Gerhard Sittig
device tree based clock lookup, must prepare clocks before enabling them, error check in the clock setup this change implements non-fatal clock lookup for compatibility with platforms that don't provide OF clock specs, but failure to enable a specified clock is considered fatal Signed-off-by: Ger

[PATCH v2 20/24] fs_enet: OF clock lookup (non-fatal), prepare and enable

2013-07-18 Thread Gerhard Sittig
device tree based clock lookup, must prepare clocks before enabling them, unprepare after disable, error check in the clock setup, remove the pre-enable workaround in the MPC512x platform's clock driver this change implements non-fatal clock lookup since not all platforms provide device tree specs

[PATCH v2 19/24] USB: fsl-mph-dr-of: OF clock lookup, prepare and enable

2013-07-18 Thread Gerhard Sittig
device tree based clock lookup in the MPC512x initialization (lookup 'per' for register access), add error check in the clock setup, must prepare clocks before they can get enabled, unprepare after disable Signed-off-by: Gerhard Sittig --- drivers/usb/host/fsl-mph-dr-of.c | 24 +---

[PATCH v2 18/24] i2c: mpc: OF clock lookup for MPC512x

2013-07-18 Thread Gerhard Sittig
make the MPC I2C driver prepare and enable the peripheral clock ('per' for register access) in the MPC512x setup routine, make this clock setup non-fatal to allow for a migration period, remove the pre-enabling hack in the platform's clock driver Signed-off-by: Gerhard Sittig --- arch/powerpc/pl

[PATCH v2 17/24] powerpc/mpc512x: improve DIU related clock setup

2013-07-18 Thread Gerhard Sittig
adapt the DIU clock initialization to the COMMON_CLK approach: device tree based clock lookup, prepare and unprepare for clocks, work with frequencies not dividers, call the appropriate clk_*() routines and don't access CCM registers, remove the pre-enable workaround in the platform's clock driver

[PATCH v2 16/24] net: can: mscan: make mpc512x code use common clock

2013-07-18 Thread Gerhard Sittig
extend the mscan(4) driver with alternative support for the COMMON_CLK approach which is an option in the MPC512x platform, keep the existing clock support implementation in place since the driver is shared with other MPC5xxx SoCs which don't have common clock support one byproduct of this change

[PATCH v2 15/24] net: can: mscan: add a comment on reg to idx mapping

2013-07-18 Thread Gerhard Sittig
add a comment about the magic of deriving an MSCAN component index from the peripheral's physical address / register offset Signed-off-by: Gerhard Sittig --- drivers/net/can/mscan/mpc5xxx_can.c |5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/net/can/mscan/mpc5x

[PATCH 1/3] ARM: msm: dts: Fix the gpio register address for msm8960

2013-07-18 Thread David Brown
From: Rohit Vaswani Fix the the gpio reg address for the device tree entry. Signed-off-by: Rohit Vaswani Signed-off-by: David Brown --- arch/arm/boot/dts/msm8960-cdp.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/msm8960-cdp.dts b/arch/arm/boot/

Re: [PATCH 2/4] pinmux: Add TB10x pinmux driver

2013-07-18 Thread Stephen Warren
On 07/18/2013 10:07 AM, Christian Ruppert wrote: ... > Well, perhaps my definition of "inside"/"outside" pins was not quite > clear: The pin groups define the set of (kernel internal) pin numbers of > "outside" pins which are used by pin controller to map a given > interface. Inside pins are not nu

Re: [PATCH 2/3] ARM: dts: DRA: Add crossbar device binding

2013-07-18 Thread Nishanth Menon
On 07/18/2013 11:43 AM, Sricharan R wrote: This adds the irq/dma crossbar device nodes. There is a IRQ and DMA crossbar device in the soc, which maps the irq/dma requests from the peripherals to the mpu/dsp/ipu/eve interrupt and sdma/edma controller's inputs. The Peripheral irq/dma requests are

Re: [PATCH 1/3] misc: Add crossbar driver

2013-07-18 Thread Nishanth Menon
On 07/18/2013 11:43 AM, Sricharan R wrote: Some socs have a large number of interrupts/dma requests to service the needs of its many peripherals and subsystems. All of the requests lines from the subsystems are not needed at the same time, so they have to be muxed to the controllers appropriately

Re: [PATCH v8] reset: Add driver for gpio-controlled reset pins

2013-07-18 Thread Olof Johansson
Hi, On Thu, Jul 18, 2013 at 4:25 AM, Pavel Machek wrote: > It sound to me like keeping ammount of -EPROBE_DEFER to minimum is > still preferred. Hand-crafting initcall level ordering of various drivers and subsystem is probably an even greater evil though. We've done it in the past, but now tha

Re: [RFC PATCH v2 11/15] cpufreq: kirkwood-cpufreq: remove device tree parsing for cpu nodes

2013-07-18 Thread Rob Herring
On 07/18/2013 05:14 AM, Sudeep KarkadaNagesha wrote: > On 18/07/13 09:24, Sudeep KarkadaNagesha wrote: >> On 17/07/13 15:43, Andrew Lunn wrote: >>> On Wed, Jul 17, 2013 at 03:06:20PM +0100, sudeep.karkadanage...@arm.com >>> wrote: From: Sudeep KarkadaNagesha > [...] >>> Are we not goin

Re: [PATCH 1/3] misc: Add crossbar driver

2013-07-18 Thread Felipe Balbi
Hi, On Thu, Jul 18, 2013 at 10:13:48PM +0530, Sricharan R wrote: > Some socs have a large number of interrupts/dma requests to service > the needs of its many peripherals and subsystems. All of the > requests lines from the subsystems are not needed at the same > time, so they have to be muxed to

Re: [PATCH v1 05/24] clk: wrap I/O access for improved portability

2013-07-18 Thread Nicolas Pitre
On Thu, 18 Jul 2013, Russell King - ARM Linux wrote: > 1. clk_get() and clk_put() are NOT part of the common clock API. >They're separate - they're part of the clk API, and the infrastructure >behind that is clkdev, which is a separately owned thing (by me.) > > 2. The "contract" of the c

Re: [PATCH 1/3] dmaengine: add dma_get_slave_sg_limits()

2013-07-18 Thread Russell King - ARM Linux
On Thu, Jul 18, 2013 at 11:46:39AM -0500, Joel Fernandes wrote: > The API is optionally implemented by dmaengine drivers and when > unimplemented will return a NULL pointer. A client driver using > this API provides the required dma channel, address width, and > burst size of the transfer. dma_get_

Re: [lm-sensors] [RESEND PATCH V1 0/9] thermal: introduce DT thermal zone build

2013-07-18 Thread Stephen Warren
On 07/18/2013 07:53 AM, Eduardo Valentin wrote: > Hello Guenter, > > On 17-07-2013 18:09, Guenter Roeck wrote: >> On Wed, Jul 17, 2013 at 11:17:19AM -0400, Eduardo Valentin >> wrote: >>> Hello all, >>> >>> As you noticed, I am working in a way to represent thermal >>> data using device tree [1].

Re: [PATCH] reset: allow drivers to request probe deferral

2013-07-18 Thread Stephen Warren
On 07/18/2013 05:57 AM, Philipp Zabel wrote: > If the requested reset controller is not yet available, have reset_control_get > and device_reset return -EPROBE_DEFER so the driver can decide to request > probe deferral. Reviewed-by: Stephen Warren ___ d

[PATCH v2 14/24] serial: mpc512x: setup the PSC FIFO clock as well

2013-07-18 Thread Gerhard Sittig
prepare and enable the FIFO clock upon PSC FIFO initialization, disable and unprepare the FIFO clock upon PSC FIFO uninitialization, remove the pre-enable workaround from the platform's clock driver Signed-off-by: Gerhard Sittig --- arch/powerpc/platforms/512x/clock-commonclk.c |2 -- driver

[PATCH v2 13/24] clk: mpc512x: remove now obsolete clkdev registration

2013-07-18 Thread Gerhard Sittig
after the peripheral drivers for UART and SPI mode (both using the PSC controller) got converted to device tree based clock lookups, the platform clock driver need no longer provide the "psc%d_mclk" name which depends on the PSC index number -- remove the clk_register_clkdev() call Signed-off-by:

[PATCH v2 12/24] serial: mpc512x: remove now obsolete clock lookup name

2013-07-18 Thread Gerhard Sittig
after device tree based clock lookup became available, the peripheral driver need no longer construct clock names which include the PSC index, remove the "psc%d_mclk" template and unconditionally use "mclk" Signed-off-by: Gerhard Sittig --- drivers/tty/serial/mpc52xx_uart.c |8 +++- 1 fi

[PATCH v2 11/24] spi: mpc512x: remove now obsolete clock lookup name

2013-07-18 Thread Gerhard Sittig
after device tree based clock lookup became available, the peripheral driver need no longer construct clock names which include the PSC index, remove the "psc%d_mclk" template and unconditionally use "mclk" Signed-off-by: Gerhard Sittig --- drivers/spi/spi-mpc512x-psc.c |6 +- 1 file cha

[PATCH v2 10/24] dts: mpc512x: add clock specs for client lookups

2013-07-18 Thread Gerhard Sittig
this addresses the client side of device tree based clock lookups: add clock specifiers to the mbx, nfc, mscan, sdhc, i2c, axe, diu, viu, mdio, fec, usb, pata, psc, psc fifo, and pci nodes in the shared mpc5121.dtsi include these specs map 'clock-names' encoded in drivers to their respective 'stru

[PATCH v2 09/24] clk: mpc512x: introduce COMMON_CLK for MPC512x

2013-07-18 Thread Gerhard Sittig
this change introduces a clock infrastructure implementation for the MPC512x PowerPC platform which follows the COMMON_CLK approach and uses common clock drivers shared with other platforms this driver implements the publicly announced set of clocks (which can get referenced by means of symbolic i

[PATCH v2 08/24] dts: mpc512x: add clock related device tree specs

2013-07-18 Thread Gerhard Sittig
this addresses the clock driver aka provider's side of clocks - prepare for future '<&clks ID>' phandle references for device tree based clock lookup in client drivers - introduce a 'clocks' subtree with an 'osc' node for the crystal or oscillator SoC input (fixed frequency) - provide default v

[PATCH v2 07/24] dts: mpc512x: introduce dt-bindings/clock/ header

2013-07-18 Thread Gerhard Sittig
introduce a dt-bindings/ header file for MPC512x clocks, providing symbolic identifiers for those SoC clocks which clients will reference from their device tree nodes Signed-off-by: Gerhard Sittig --- include/dt-bindings/clock/mpc512x-clock.h | 59 + 1 file changed,

[PATCH v2 06/24] dts: mpc512x: prepare for preprocessor support

2013-07-18 Thread Gerhard Sittig
prepare C preprocessor support when processing MPC512x DTS files - switch from DTS syntax to CPP syntax for include specs - create a symlink such that DTS processing can reference includes Signed-off-by: Gerhard Sittig --- arch/powerpc/boot/dts/ac14xx.dts |2 +- arch/powerpc/boot/dt

[PATCH v2 05/24] clk: wrap I/O access for improved portability

2013-07-18 Thread Gerhard Sittig
the common clock drivers were motivated/initiated by ARM development and apparently assume little endian peripherals wrap register/peripherals access in the common code (div, gate, mux) in preparation of adding COMMON_CLK support for other platforms Signed-off-by: Gerhard Sittig --- drivers/clk

[PATCH v2 04/24] powerpc: mpc512x: array decl for MCLK registers in CCM

2013-07-18 Thread Gerhard Sittig
reword the clock control module's registers declaration such that the MCLK related registers form an array and get indexed by PSC number this change is in preparation to COMMON_CLK support for the MPC512x platform, the changed declaration remains neutral to existing code since the PSC and MSCAN CC

[PATCH v2 02/24] serial: mpc512x: cleanup clock API use

2013-07-18 Thread Gerhard Sittig
cleanup the clock API use of the UART driver which is shared among the MPC512x and the MPC5200 platforms - get, prepare, and enable the MCLK during port allocation; disable, unprepare and put the MCLK upon port release; hold a reference to the clock over the period of use; check for and propaga

[PATCH v2 03/24] mtd: mpc5121_nfc: prepare clocks before enabling them

2013-07-18 Thread Gerhard Sittig
must prepare clocks before enabling them, unprepare after disable Signed-off-by: Gerhard Sittig --- drivers/mtd/nand/mpc5121_nfc.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/nand/mpc5121_nfc.c b/drivers/mtd/nand/mpc5121_nfc.c index 3c9cdcb..eb7771d 100

[PATCH v2 01/24] spi: mpc512x: cleanup clock API use

2013-07-18 Thread Gerhard Sittig
cleanup the MPC512x SoC's SPI master's use of the clock API - get, prepare, and enable the MCLK during probe; disable, unprepare and put the MCLK upon remove; hold a reference to the clock over the period of use - fetch MCLK rate (reference) once during probe and slightly reword BCLK (bitrate

[PATCH v2 00/24] add COMMON_CLK support for PowerPC MPC512x

2013-07-18 Thread Gerhard Sittig
this series introduces support for the common clock framework (CCF, COMMON_CLK Kconfig option) in the PowerPC based MPC512x platform although the series does touch several subsystems -- serial, spi, net (can, fs_enet), mtd (nfc), usb, i2c, media (viu), and dts -- all of the patches are strictly cl

Re: [PATCH v2 0/4] Add PWM polarity flag macro for DT

2013-07-18 Thread Stephen Warren
On 07/17/2013 04:54 PM, Laurent Pinchart wrote: > Hello, > > Here's a small patch set that replaces PWM polarity numerical constants with > macros in DT. The series, Reviewed-by: Stephen Warren I'm (very very) slightly hesitant about patch 3/4, since it's moving towards all PWMs having to use t

Re: [PATCH 1/3] dmaengine: add dma_get_slave_sg_limits()

2013-07-18 Thread Vinod Koul
On Thu, Jul 18, 2013 at 11:46:39AM -0500, Joel Fernandes wrote: > From: Matt Porter > > Add a dmaengine API to retrieve slave SG transfer limits. > > The API is optionally implemented by dmaengine drivers and when > unimplemented will return a NULL pointer. A client driver using > this API provi

Re: [PATCH 1/3] misc: Add crossbar driver

2013-07-18 Thread Joe Perches
On Thu, 2013-07-18 at 22:13 +0530, Sricharan R wrote: > Some socs have a large number of interrupts/dma requests to service > the needs of its many peripherals and subsystems. All of the > requests lines from the subsystems are not needed at the same > time, so they have to be muxed to the controll

[PATCH v4] media: i2c: tvp7002: add OF support

2013-07-18 Thread Lad, Prabhakar
From: "Lad, Prabhakar" add OF support for the tvp7002 driver. Signed-off-by: Lad, Prabhakar --- This patch depends on https://patchwork.kernel.org/patch/2828800/ Changes for v4: 1: Improved descrition of end point properties. Changes for v3: 1: Fixed review comments pointed by Sylwester

Re: [PATCH 01/15] drivers: phy: add generic PHY framework

2013-07-18 Thread Greg KH
On Thu, Jul 18, 2013 at 02:29:52PM +0530, Kishon Vijay Abraham I wrote: > Hi, > > On Thursday 18 July 2013 12:50 PM, Greg KH wrote: > > On Thu, Jul 18, 2013 at 12:16:10PM +0530, Kishon Vijay Abraham I wrote: > >> +struct phy_provider *__of_phy_provider_register(struct device *dev, > >> + struct m

Re: 回复: About omap2 mmc host close too long irq in irqaction.

2013-07-18 Thread Balaji T K
On Thursday 18 July 2013 02:13 PM, majianpeng wrote: >> Hi all, >> Now i worked on omp2 and met a probelm which someplace close_irq for >> 3.6second. >> The kernel version is 2.6.37. I used trace to find in >> irq_action:omap_hsmmc_irq. >> This problem occured by removed the sdcard when ther

Re: [PATCH] ARM: Kirkwood: Fix the internal register ranges translation

2013-07-18 Thread Ezequiel Garcia
Gerlando, On Tue, Jul 16, 2013 at 08:51:37PM +0200, Gerlando Falauto wrote: [...] > > > > Also, speaking of "device bus" this nand node should be behind a devicebus > > node. > > > > ranges = > internal-regs */ > > MBUS_ID(0x01, 0x2f) 0 0 0xf400 0x400>; > >

Re: [PATCH] ARM: Kirkwood: Fix the internal register ranges translation

2013-07-18 Thread Ezequiel Garcia
Hi Gerlando, On Wed, Jul 17, 2013 at 08:35:38AM +0200, Gerlando Falauto wrote: > On 07/16/2013 02:56 PM, Ezequiel Garcia wrote: > [...] > > Also, speaking of "device bus" this nand node should be behind a devicebus > > node. > > > > ranges = > internal-regs */ > >

Re: [PATCH] reset: allow drivers to request probe deferral

2013-07-18 Thread Shawn Guo
On Thu, Jul 18, 2013 at 01:57:33PM +0200, Philipp Zabel wrote: > If the requested reset controller is not yet available, have reset_control_get > and device_reset return -EPROBE_DEFER so the driver can decide to request > probe deferral. > > Signed-off-by: Philipp Zabel > --- > drivers/reset/cor

Re: [PATCH v10] reset: Add driver for gpio-controlled reset pins

2013-07-18 Thread Shawn Guo
On Thu, Jul 18, 2013 at 11:26:26AM +0200, Philipp Zabel wrote: > This driver implements a reset controller device that toggle a gpio > connected to a reset pin of a peripheral IC. The delay between assertion > and de-assertion of the reset signal can be configured via device tree. > > Signed-off-b

[PATCH] reset: allow drivers to request probe deferral

2013-07-18 Thread Philipp Zabel
If the requested reset controller is not yet available, have reset_control_get and device_reset return -EPROBE_DEFER so the driver can decide to request probe deferral. Signed-off-by: Philipp Zabel --- drivers/reset/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drive

[PATCH] of/irq: init struct resource to 0 in of_irq_to_resource()

2013-07-18 Thread Sebastian Andrzej Siewior
It almost does not matter because most users use only the ->start member of the struct. However if this struct is passed to a platform device which is then added via platform_device_add() then the ->parent member is also used. Signed-off-by: Sebastian Andrzej Siewior --- drivers/of/irq.c | 1 +

Re: [RFC PATCH v2 11/15] cpufreq: kirkwood-cpufreq: remove device tree parsing for cpu nodes

2013-07-18 Thread Sudeep KarkadaNagesha
On 18/07/13 09:24, Sudeep KarkadaNagesha wrote: > On 17/07/13 15:43, Andrew Lunn wrote: >> On Wed, Jul 17, 2013 at 03:06:20PM +0100, sudeep.karkadanage...@arm.com >> wrote: >>> From: Sudeep KarkadaNagesha >>> [...] >>> diff --git a/drivers/cpufreq/kirkwood-cpufreq.c >>> b/drivers/cpufreq/kirkwoo

Re: [PATCH v1 05/24] clk: wrap I/O access for improved portability

2013-07-18 Thread Mark Brown
On Thu, Jul 18, 2013 at 10:06:57AM +0200, Sascha Hauer wrote: > I think regmap has the potential to solve a number of issues like the > hardcoded readl/writel in the common clock blocks, issues with i2c > clocks and your endianess issue. The biggest question probably is how > to get there without

[PATCH] net: Add MOXA ART SoCs ethernet driver

2013-07-18 Thread Jonas Jensen
The MOXA UC-711X hardware(s) has an ethernet controller that seem to be developed internally. The IC used is "RTL8201CP". Since there is no public documentation, this driver is mostly the one published by MOXA that has been heavily cleaned up / ported from linux 2.6.9. Signed-off-by: Jonas Jensen

Re: [PATCH v5 2/2] iio: twl6030-gpadc: TWL6030, TWL6032 GPADC driver

2013-07-18 Thread Lars-Peter Clausen
On 07/18/2013 10:36 AM, Oleksandr Kozaruk wrote: > Hello Lars, > > On Wed, Jul 17, 2013 at 9:04 PM, Lars-Peter Clausen wrote: >>> +static int twl6032_calibration(struct twl6030_gpadc_data *gpadc) >>> +{ >>> + int chn, d1 = 0, d2 = 0, temp; >>> + u8 trim_regs[17]; >>> + int ret; >>> +

Re: [PATCH 6/6] mtd: ofpart: add compatible check for child nodes

2013-07-18 Thread Jean-Christophe PLAGNIOL-VILLARD
On 00:14 Thu 18 Jul , Brian Norris wrote: > Adding device tree list, keeping patch context > > On Wed, Jul 3, 2013 at 2:50 AM, Josh Wu wrote: > > In case that the nand device will support some features like Nand Flash > > Controller, we want to make the sub feature as a sub node of nand devic

Re: [RFC PATCH v5 0/1] drivers: mfd: Versatile Express SPC support

2013-07-18 Thread Lorenzo Pieralisi
Hi Samuel, On Wed, Jul 17, 2013 at 10:07:00PM +0100, Samuel Ortiz wrote: > Hi Lorenzo, > > On Tue, Jul 16, 2013 at 05:05:42PM +0100, Lorenzo Pieralisi wrote: > > Hello, > > > > version v5 of VExpress SPC driver, please read on the changelog for major > > changes and explanations. > > > > The pr

[PATCH v10] reset: Add driver for gpio-controlled reset pins

2013-07-18 Thread Philipp Zabel
This driver implements a reset controller device that toggle a gpio connected to a reset pin of a peripheral IC. The delay between assertion and de-assertion of the reset signal can be configured via device tree. Signed-off-by: Philipp Zabel Reviewed-by: Stephen Warren --- Changes since v9: - U

Re: [PATCH v1 05/24] clk: wrap I/O access for improved portability

2013-07-18 Thread Russell King - ARM Linux
On Thu, Jul 18, 2013 at 09:04:02AM +0200, Gerhard Sittig wrote: > The common clock API assumes (it's part of the contract) that > there are potentially expensive operations like get, put, prepare > and unprepare, as well as swift and non-blocking operations like > enable and disable. Let's get som

Re: [PATCH 3/3] ARM: dts: omap4-sdp: add dynamic pin states for uart3/4

2013-07-18 Thread Tony Lindgren
* Grygorii Strashko [130718 02:01]: > On 07/18/2013 11:09 AM, Tony Lindgren wrote: > > Don't think it's debug code - IO chain need to be rearmed after each > PRCM IO IRQ - otherwise IO wakeup events may be lost (at least on > OMAP4, OMAP5 requires more complex handling(( ). Nope, only after the

Re: [PATCH 02/15] usb: phy: omap-usb2: use the new generic PHY framework

2013-07-18 Thread Kishon Vijay Abraham I
On Thursday 18 July 2013 12:51 PM, Greg KH wrote: > On Thu, Jul 18, 2013 at 12:16:11PM +0530, Kishon Vijay Abraham I wrote: >> Used the generic PHY framework API to create the PHY. Now the power off and >> power on are done in omap_usb_power_off and omap_usb_power_on respectively. >> >> However usi

Re: [PATCH 01/15] drivers: phy: add generic PHY framework

2013-07-18 Thread Kishon Vijay Abraham I
Hi, On Thursday 18 July 2013 12:50 PM, Greg KH wrote: > On Thu, Jul 18, 2013 at 12:16:10PM +0530, Kishon Vijay Abraham I wrote: >> +struct phy_provider *__of_phy_provider_register(struct device *dev, >> +struct module *owner, struct phy * (*of_xlate)(struct device *dev, >> +struct of_phand

[PATCH 6/6] ARM: dts: omap3-beagle: Make USB host pin naming consistent

2013-07-18 Thread Roger Quadros
Use a common naming scheme "mode0name.modename flags" for the USB host pins to be consistent. Signed-off-by: Roger Quadros --- arch/arm/boot/dts/omap3-beagle.dts | 24 1 files changed, 12 insertions(+), 12 deletions(-) diff --git a/arch/arm/boot/dts/omap3-beagle.dts

[PATCH 5/6] ARM: dts: omap3-beagle-xm: Add USB Host support

2013-07-18 Thread Roger Quadros
Provide RESET controller and Power regulator for the USB PHY, the USB Host port mode and the PHY device. Provide pin multiplexer information for USB host pins. We also relocate omap3_pmx_core pin definations so that they are close to omap3_pmx_wkup pin definations. Signed-off-by: Roger Quadros -

[PATCH 1/6] usb: phy-nop: Use RESET Controller for managing the reset line

2013-07-18 Thread Roger Quadros
Till now we were modelling the RESET line as a voltage regulator and using the regulator framework to manage it. [1] introduces a GPIO based reset controller driver. We use that to manage the PHY reset line, at least for DT boots. For legacy boots, will still need to use the regulator framework fo

[PATCH 3/6] ARM: dts: omap4-panda: Use reset-gpio driver for hsusb1_reset

2013-07-18 Thread Roger Quadros
We no longer need to model a RESET line as a regulator since we have the reset-gpio driver available. Signed-off-by: Roger Quadros --- arch/arm/boot/dts/omap4-panda-common.dtsi | 22 -- 1 files changed, 8 insertions(+), 14 deletions(-) diff --git a/arch/arm/boot/dts/omap4-

[PATCH 2/6] ARM: dts: omap3-beagle: Use reset-gpio driver for hsusb2_reset

2013-07-18 Thread Roger Quadros
We no longer need to model a RESET line as a regulator since we have the reset-gpio driver available. Signed-off-by: Roger Quadros --- arch/arm/boot/dts/omap3-beagle.dts | 17 - 1 files changed, 8 insertions(+), 9 deletions(-) diff --git a/arch/arm/boot/dts/omap3-beagle.dts b

[PATCH 4/6] ARM: dts: omap5-uevm: Use reset-gpio driver for hsusb2_reset

2013-07-18 Thread Roger Quadros
We no longer need to model a RESET line as a regulator since we have the reset-gpio driver available. Signed-off-by: Roger Quadros --- arch/arm/boot/dts/omap5-uevm.dts | 17 - 1 files changed, 8 insertions(+), 9 deletions(-) diff --git a/arch/arm/boot/dts/omap5-uevm.dts b/arch

[PATCH 0/6] USB: phy: phy-nop: Use RESET controller for managing the reset line

2013-07-18 Thread Roger Quadros
Hi, Till now we were modelling the RESET line as a voltage regulator and using the regulator framework to manage it. [1] introduces a GPIO based reset controller driver. We use that to manage the PHY reset line, at least for DT boots. For legacy boots, will still need to use the regulator framewo

[PATCH] Documentation: Add device tree binding file for MOXA ART SoCs interrupt controller

2013-07-18 Thread Jonas Jensen
Add binding document for MOXA ART SoCs interrupt controller. Signed-off-by: Jonas Jensen --- Notes: The MOXA ART irqchip driver was added without accompanying devicetree document. ( in next-20130716 drivers/irqchip/irq-moxart.c ) Applies to next-20130716 .../interrupt-contr

Re: [RFC PATCH v2 11/15] cpufreq: kirkwood-cpufreq: remove device tree parsing for cpu nodes

2013-07-18 Thread Sudeep KarkadaNagesha
On 17/07/13 15:43, Andrew Lunn wrote: > On Wed, Jul 17, 2013 at 03:06:20PM +0100, sudeep.karkadanage...@arm.com wrote: >> From: Sudeep KarkadaNagesha >> >> Now that the cpu device registration initialises the of_node(if available) >> appropriately for all the cpus, parsing here is redundant. >> >>

Re: [PATCH 2/3] ARM: OMAP2+: omap_device: add pinctrl handling

2013-07-18 Thread Tony Lindgren
* Grygorii Strashko [130717 10:11]: > On 07/17/2013 06:38 PM, Tony Lindgren wrote: > >* Grygorii Strashko [130717 04:49]: > >>Before switching to DT pinctrl states of OMAP IPs have been handled by hwmod > >>framework. After switching to DT-boot the pinctrl handling was dropped from > >>hwmod fram

Re: [PATCH 3/3] ARM: dts: omap4-sdp: add dynamic pin states for uart3/4

2013-07-18 Thread Tony Lindgren
* Grygorii Strashko [130717 09:48]: > Hi, > > On 07/17/2013 06:32 PM, Tony Lindgren wrote: > >* Grygorii Strashko [130717 04:49]: > >>Add dynamic "active"/"idle" pin states for uart3/4 which will be applied > >>when uart3/4 state is switched from active to idle and back by Runtime > >>PM or duri

Re: [PATCH v1 05/24] clk: wrap I/O access for improved portability

2013-07-18 Thread Sascha Hauer
On Thu, Jul 18, 2013 at 09:04:02AM +0200, Gerhard Sittig wrote: > On Mon, Jul 15, 2013 at 21:38 +0200, Sascha Hauer wrote: > > > > On Mon, Jul 15, 2013 at 08:47:34PM +0200, Gerhard Sittig wrote: > > > diff --git a/drivers/clk/clk-divider.c b/drivers/clk/clk-divider.c > > > index 6d55eb2..2c07061 1

Re: [RFC PATCH v2 00/15] DT/core: update cpu device of_node

2013-07-18 Thread Viresh Kumar
On 17 July 2013 19:36, wrote: > 3. Added Acks from Viresh and Shawn Add it for the new cpufreq drivers included in this patchset too.. ___ devicetree-discuss mailing list devicetree-discuss@lists.ozlabs.org https://lists.ozlabs.org/listinfo/devicetree-

Re: [RFC PATCH v2 11/15] cpufreq: kirkwood-cpufreq: remove device tree parsing for cpu nodes

2013-07-18 Thread Viresh Kumar
On 17 July 2013 20:13, Andrew Lunn wrote: > Are we not going a bit backwards here? You are replacing two lines > with 10 lines. > > How about putting these 10 lines into some helper, > of_get_cpu_device()? It would be useful for spear, kirkwood and > imx6q, and maybe others. +1 _

Re: [RESEND PATCH V1 9/9] hwmon: tmp102: expose to thermal fw via DT nodes

2013-07-18 Thread Guenter Roeck
On Wed, Jul 17, 2013 at 11:17:28AM -0400, Eduardo Valentin wrote: > This patch adds to tmp102 temperature sensor the possibility > to expose itself as thermal zone device, registered on the > thermal framework. > > The thermal zone is built only if a device tree node > describing a thermal zone fo

Re: [RESEND PATCH V1 8/9] hwmon: lm75: expose to thermal fw via DT nodes

2013-07-18 Thread Guenter Roeck
On Wed, Jul 17, 2013 at 11:17:27AM -0400, Eduardo Valentin wrote: > This patch adds to lm75 temperature sensor the possibility > to expose itself as thermal zone device, registered on the > thermal framework. > > The thermal zone is built only if a device tree node > describing a thermal zone for

Re: [PATCH 02/15] usb: phy: omap-usb2: use the new generic PHY framework

2013-07-18 Thread Greg KH
On Thu, Jul 18, 2013 at 12:16:11PM +0530, Kishon Vijay Abraham I wrote: > Used the generic PHY framework API to create the PHY. Now the power off and > power on are done in omap_usb_power_off and omap_usb_power_on respectively. > > However using the old USB PHY library cannot be completely removed

Re: [PATCH 01/15] drivers: phy: add generic PHY framework

2013-07-18 Thread Greg KH
On Thu, Jul 18, 2013 at 12:16:10PM +0530, Kishon Vijay Abraham I wrote: > +struct phy_provider *__of_phy_provider_register(struct device *dev, > + struct module *owner, struct phy * (*of_xlate)(struct device *dev, > + struct of_phandle_args *args)); > +struct phy_provider *__devm_of_phy_pro

Re: [PATCH 05/15] ARM: dts: omap: update usb_otg_hs data

2013-07-18 Thread Tony Lindgren
* Kishon Vijay Abraham I [130717 23:53]: > Updated the usb_otg_hs dt data to include the *phy* and *phy-names* > binding in order for the driver to use the new generic PHY framework. > Also updated the Documentation to include the binding information. > The PHY binding information can be found at

Re: [PATCH v1 05/24] clk: wrap I/O access for improved portability

2013-07-18 Thread Gerhard Sittig
On Mon, Jul 15, 2013 at 21:38 +0200, Sascha Hauer wrote: > > On Mon, Jul 15, 2013 at 08:47:34PM +0200, Gerhard Sittig wrote: > > diff --git a/drivers/clk/clk-divider.c b/drivers/clk/clk-divider.c > > index 6d55eb2..2c07061 100644 > > --- a/drivers/clk/clk-divider.c > > +++ b/drivers/clk/clk-divide

Re: [PATCH] of: Export of_irq_count for using in modules

2013-07-18 Thread Michal Simek
On 06/06/2013 04:49 PM, Jean-Christophe PLAGNIOL-VILLARD wrote: > On 10:39 Thu 06 Jun , Michal Simek wrote: >> On 06/06/2013 10:29 AM, Jean-Christophe PLAGNIOL-VILLARD wrote: >>> On 18:45 Fri 31 May , Michal Simek wrote: On 05/31/2013 05:16 PM, Jean-Christophe PLAGNIOL-VILLARD wrote: >

Re: [PATCH 04/15] ARM: OMAP: USB: Add phy binding information

2013-07-18 Thread Tony Lindgren
* Kishon Vijay Abraham I [130717 23:53]: > In order for controllers to get PHY in case of non dt boot, the phy > binding information (phy device name) should be added in the platform > data of the controller. > > Signed-off-by: Kishon Vijay Abraham I > Reviewed-by: Sylwester Nawrocki > Acked-by

  1   2   >