[PATCH] spi: omap2-mcspi: In case of dma errors fall back to pio

2012-07-25 Thread Shubhrajyoti D
In case there are dma errors currently the driver exits. Make the spi driver fall back to pio mode in case of dma errors. If the DMA engine is not selected the driver exits.This patch makes the spi fall back to pio in that case. Also adds a field dma_unusable to struct omap2_mcspi.

Re: [PATCH v4 01/11] usb: musb: add musb-id to identify core instance

2012-07-25 Thread Felipe Balbi
Hi, On Thu, Jul 19, 2012 at 05:15:57PM +0530, Ajay Kumar Gupta wrote: diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c index 89d1871..3e09984 100644 --- a/drivers/usb/musb/musb_core.c +++ b/drivers/usb/musb/musb_core.c @@ -99,6 +99,7 @@ #include linux/prefetch.h

Re: [PATCH v4 02/11] usb: musb: kill global and static for multi instance

2012-07-25 Thread Felipe Balbi
Hi, On Thu, Jul 19, 2012 at 05:15:58PM +0530, Ajay Kumar Gupta wrote: Moved global variable musb_debugfs_root and static variable old_state to 'struct musb' to help support multi instance of musb controller as present on AM335x platform. Also removed the global variable orig_dma_mask and

Re: [PATCH] omap: usb: host: remove deprecated flag 'es2_compatibility'

2012-07-25 Thread Felipe Balbi
Hi, On Tue, Jul 24, 2012 at 09:08:40PM +0300, Ruslan Bilovol wrote: Currently this flag is not used anywhere and may be safely removed. Signed-off-by: Ruslan Bilovol ruslan.bilo...@ti.com looks good to me. Keshava ? --- arch/arm/mach-omap2/usb-host.c|1 -

RE: [PATCH] lis3lv02d: Add STMicroelectronics lis33ldlh digital

2012-07-25 Thread AnilKumar, Chimata
Hi Arnd, On Thu, Jan 19, 2012 at 22:40:45, Arnd Bergmann wrote: On Thursday 19 January 2012, AnilKumar, Chimata wrote: Android userspace running on TI AM335x EVM is using the interface provided by lis3lv02d. They were asking some more interfaces from lis3lvo2d driver. There are

[PATCH] Input: omap4-keypad: Fix the probe error handling

2012-07-25 Thread Shubhrajyoti D
- pm_runtime_disable call is missed in some of the error cases fix the same. - In the error path pm_runtime_put_sync is called after pm_runtime_disable fix the same. - keypad_data-keymap free was missed in one of the error path fix it. Also while at it call pm_runtime_put_sync after the

RE: [PATCH v4 01/11] usb: musb: add musb-id to identify core instance

2012-07-25 Thread Gupta, Ajay Kumar
Hi, On Thu, Jul 19, 2012 at 05:15:57PM +0530, Ajay Kumar Gupta wrote: diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c index 89d1871..3e09984 100644 --- a/drivers/usb/musb/musb_core.c +++ b/drivers/usb/musb/musb_core.c @@ -99,6 +99,7 @@ #include

[GIT PULL] remoteproc for 3.6

2012-07-25 Thread Ohad Ben-Cohen
Hi Linus, There are a few merge conflicts which are mostly trivial, but there's also a sneaky one which is easy to miss (I missed it when I reviewed the merge in linux-next) so I also pushed a 3.6-merge-reference branch (for reference). (in short, e981f6d remoteproc: fix print format warnings

RE: [PATCH v4 02/11] usb: musb: kill global and static for multi instance

2012-07-25 Thread Gupta, Ajay Kumar
Hi, On Thu, Jul 19, 2012 at 05:15:58PM +0530, Ajay Kumar Gupta wrote: Moved global variable musb_debugfs_root and static variable old_state to 'struct musb' to help support multi instance of musb controller as present on AM335x platform. Also removed the global variable orig_dma_mask

[PATCH v4 0/4] OMAP System Control Module

2012-07-25 Thread Konstantin Baydarov
Hello. This is a next version of series of patches(based on Eduardo Valentin's patch set) adding a basic support for system control module, on OMAP4+ context. As Bandgap and usb phy drivers are now independent from control module driver and they will be sent separately. IIUC, Bandgap driver

[PATCH v4 2/4] mfd: omap: control: core system control driver

2012-07-25 Thread Konstantin Baydarov
This patch introduces a MFD core device driver for OMAP system control module. The control module allows software control of various static modes supported by the device. It is composed of two control submodules: general control module and device (padconfiguration) control module. Device driver

[PATCH v4 3/4] OMAP2+: use control module mfd driver in omap_type

2012-07-25 Thread Konstantin Baydarov
OMAP system control module can be probed early, then omap_type is safe to use its APIs. TODO: add support for other omap versions Signed-off-by: Eduardo Valentin eduardo.valen...@ti.com Signed-off-by: Konstantin Baydarov kbaida...@dev.rtsoft.ru --- arch/arm/mach-omap2/id.c | 11 ++- 1

[PATCH v4 4/4] ARM: DT: Add support to system control module for OMAP4

2012-07-25 Thread Konstantin Baydarov
This patch add device tree entries on OMAP4 based boards for System Control Module (SCM). Signed-off-by: Eduardo Valentin eduardo.valen...@ti.com Signed-off-by: Konstantin Baydarov kbaida...@dev.rtsoft.ru --- arch/arm/boot/dts/omap4.dtsi | 10 ++ 1 files changed, 10 insertions(+), 0

Re: [PATCH v4 1/4] ARM: OMAP4: Remove un-used control module headers and defines.

2012-07-25 Thread Felipe Balbi
Hi, On Wed, Jul 25, 2012 at 03:05:13PM +0400, Konstantin Baydarov wrote: Most of the OMAP4 control module register defines are not used and can be removed. Keep only needed defines and move them to common control module header just like other OMAP versions. Signed-off-by: Santosh Shilimkar

Re: [PATCH v4 2/4] mfd: omap: control: core system control driver

2012-07-25 Thread Felipe Balbi
Hi, On Wed, Jul 25, 2012 at 03:05:16PM +0400, Konstantin Baydarov wrote: This patch introduces a MFD core device driver for OMAP system control module. The control module allows software control of various static modes supported by the device. It is composed of two control submodules:

Re: [PATCH v4 02/11] usb: musb: kill global and static for multi instance

2012-07-25 Thread Felipe Balbi
On Wed, Jul 25, 2012 at 10:34:49AM +, Gupta, Ajay Kumar wrote: Hi, On Thu, Jul 19, 2012 at 05:15:58PM +0530, Ajay Kumar Gupta wrote: Moved global variable musb_debugfs_root and static variable old_state to 'struct musb' to help support multi instance of musb controller as

Re: [PATCH v4 1/4] ARM: OMAP4: Remove un-used control module headers and defines.

2012-07-25 Thread Konstantin Baydarov
Hi, Balbi. On 07/25/2012 03:06 PM, Felipe Balbi wrote: Hi, On Wed, Jul 25, 2012 at 03:05:13PM +0400, Konstantin Baydarov wrote: Most of the OMAP4 control module register defines are not used and can be removed. Keep only needed defines and move them to common control module header just

Re: [PATCH v4 1/4] ARM: OMAP4: Remove un-used control module headers and defines.

2012-07-25 Thread Felipe Balbi
Hi, On Wed, Jul 25, 2012 at 03:17:48PM +0400, Konstantin Baydarov wrote: Hi, Balbi. On 07/25/2012 03:06 PM, Felipe Balbi wrote: Hi, On Wed, Jul 25, 2012 at 03:05:13PM +0400, Konstantin Baydarov wrote: Most of the OMAP4 control module register defines are not used and can be

RE: [PATCH v4 02/11] usb: musb: kill global and static for multi instance

2012-07-25 Thread Gupta, Ajay Kumar
Hi, On Wed, Jul 25, 2012 at 10:34:49AM +, Gupta, Ajay Kumar wrote: Hi, On Thu, Jul 19, 2012 at 05:15:58PM +0530, Ajay Kumar Gupta wrote: Moved global variable musb_debugfs_root and static variable old_state to 'struct musb' to help support multi instance of musb controller

[PATCH v5 00/11] usb: musb: adding multi instance support

2012-07-25 Thread Ajay Kumar Gupta
This series of patches adds, a) Multi instances support in musb driver b) DT support for musb_dsps glue layer c) DT support for NOP transceiver AM33xx and TI81xx has dual musb controller and has two usb PHY of same type. This patch series uses 'phandle' based API devm_usb_get_phy_by_phandle() to

[PATCH v5 08/11] arm/dts: am33xx: add dt data for usb nop phy

2012-07-25 Thread Ajay Kumar Gupta
AM33xx has two musb controller and they have one NOP PHY each. Added the device tree data for NOP PHY. Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- arch/arm/boot/dts/am33xx.dtsi |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/am33xx.dtsi

[PATCH v5 11/11] arm/dts: am33xx: add phy phandle to usbss

2012-07-25 Thread Ajay Kumar Gupta
Added NOP PHY phandle to usbss device node as same will be used to get the phy from otg framework. Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- arch/arm/boot/dts/am33xx.dtsi |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/am33xx.dtsi

[PATCH v5 09/11] usb: musb: dsps: remove explicit NOP device creation

2012-07-25 Thread Ajay Kumar Gupta
As NOP device node is now added in am33xx tree so remove the call which creates the NOP platform_device. Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- drivers/usb/musb/musb_dsps.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/drivers/usb/musb/musb_dsps.c

[PATCH v5 06/11] arm/dts: am33xx: Add dt data for usbss

2012-07-25 Thread Ajay Kumar Gupta
Added device tree data for usbss on am33xx. There are two musb controllers on am33xx platform so have port0_mode and port1_mode additional data. Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- arch/arm/boot/dts/am33xx.dtsi | 11 +++ 1 files changed, 11 insertions(+), 0

[PATCH 02/11] usb: musb: kill global and static for multi instance

2012-07-25 Thread Ajay Kumar Gupta
Moved global variable musb_debugfs_root and static variable old_state to 'struct musb' to help support multi instance of musb controller as present on AM335x platform. Also removed the global variable orig_dma_mask and filled the dev-dma_mask with parent device's dma_mask. Signed-off-by: Ajay

[PATCH v5 01/11] usb: musb: add musb-id to identify core instance

2012-07-25 Thread Ajay Kumar Gupta
Added 'id' field within 'struct musb' which can be used to determine the current instance of musb controller. Also defined musb_ida in musb_core.c to manage the core ids. Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- drivers/usb/musb/am35x.c | 42

[PATCH v5 03/11] usb: musb: am335x: add support for dual instance

2012-07-25 Thread Ajay Kumar Gupta
AM335x and TI81xx platform has dual musb controller so updating the musb_dspc.c to support the same. Changes: - Moved otg_workaround timer to glue structure - Moved static local variable last_timer to glue structure - PHY on/off related cleanups Signed-off-by: Ajay Kumar

[PATCH v5 10/11] usb: musb: dsps: get the PHY using phandle api

2012-07-25 Thread Ajay Kumar Gupta
AM33xx has two PHY of same type used by each musb controller so use phandle of phy nodes to get the phy pointer. Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- .../devicetree/bindings/usb/am33xx-usb.txt |2 ++ drivers/usb/musb/musb_dsps.c |4 +++- 2

[PATCH v5 04/11] usb: otg: nop: add support for multiple tranceiver

2012-07-25 Thread Ajay Kumar Gupta
Currently we have one single nop transceiver support as same is defined as a global variable in drivers/usb/otg/nop-usb-xceiv.c. This need to be changed to support multiple otg controller each using nop transceiver on a platform such as am335x. Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com

[PATCH v5 07/11] usb: otg: nop: add dt support

2012-07-25 Thread Ajay Kumar Gupta
Added device tree support for nop transceiver driver and updated the Documentation with device tree binding information for am33xx platform. Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- .../devicetree/bindings/usb/am33xx-usb.txt |3 +++ drivers/usb/otg/nop-usb-xceiv.c

[PATCH v5 05/11] usb: musb: dsps: add dt support

2012-07-25 Thread Ajay Kumar Gupta
Added device tree support for dsps musb glue driver and updated the Documentation with device tree binding information. Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com --- .../devicetree/bindings/usb/am33xx-usb.txt | 14 + drivers/usb/musb/musb_dsps.c | 60

[PATCH 1/6] w1: omap-hdq: add section annotation to remove

2012-07-25 Thread Felipe Balbi
trivial patch, no functional changes. Signed-off-by: Felipe Balbi ba...@ti.com --- drivers/w1/masters/omap_hdq.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/w1/masters/omap_hdq.c b/drivers/w1/masters/omap_hdq.c index 291897c..46e1f6f 100644 ---

[PATCH 4/6] w1: omap-hdq: convert to devm_* functions

2012-07-25 Thread Felipe Balbi
this lets us remove a bit of boilerplate code. Signed-off-by: Felipe Balbi ba...@ti.com --- drivers/w1/masters/omap_hdq.c | 32 +--- 1 file changed, 9 insertions(+), 23 deletions(-) diff --git a/drivers/w1/masters/omap_hdq.c b/drivers/w1/masters/omap_hdq.c index

[PATCH 6/6] w1: omap-hdq: drop ARCH dependency

2012-07-25 Thread Felipe Balbi
Let the driver compile everywhere while also removing unnecessary headers. Signed-off-by: Felipe Balbi ba...@ti.com --- drivers/w1/masters/Kconfig| 1 - drivers/w1/masters/omap_hdq.c | 3 --- 2 files changed, 4 deletions(-) diff --git a/drivers/w1/masters/Kconfig

[PATCH 5/6] w1: omap-hdq: remove unnecessary return

2012-07-25 Thread Felipe Balbi
trivial patch, no functional changes. Signed-off-by: Felipe Balbi ba...@ti.com --- drivers/w1/masters/omap_hdq.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/w1/masters/omap_hdq.c b/drivers/w1/masters/omap_hdq.c index b6eb0ba..778a65d 100644 --- a/drivers/w1/masters/omap_hdq.c

[PATCH v5 02/11] usb: musb: kill global and static for multi instance

2012-07-25 Thread Ajay Kumar Gupta
Moved global variable musb_debugfs_root and static variable old_state to 'struct musb' to help support multi instance of musb controller as present on AM335x platform. Also removed the global variable orig_dma_mask and filled the dev-dma_mask with parent device's dma_mask. Signed-off-by: Ajay

Re: [PATCH v5 01/11] usb: musb: add musb-id to identify core instance

2012-07-25 Thread Felipe Balbi
hi, On Wed, Jul 25, 2012 at 05:37:19PM +0530, Ajay Kumar Gupta wrote: diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c index 89d1871..f5eb8a7 100644 --- a/drivers/usb/musb/musb_core.c +++ b/drivers/usb/musb/musb_core.c snip @@ -1889,6 +1921,7 @@

RE: [PATCH v5 01/11] usb: musb: add musb-id to identify core instance

2012-07-25 Thread Gupta, Ajay Kumar
Hi, On Wed, Jul 25, 2012 at 05:37:19PM +0530, Ajay Kumar Gupta wrote: diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c index 89d1871..f5eb8a7 100644 --- a/drivers/usb/musb/musb_core.c +++ b/drivers/usb/musb/musb_core.c snip @@ -1889,6 +1921,7 @@

Re: [PATCH v5 01/11] usb: musb: add musb-id to identify core instance

2012-07-25 Thread Felipe Balbi
Hi. On Wed, Jul 25, 2012 at 12:19:32PM +, Gupta, Ajay Kumar wrote: Hi, On Wed, Jul 25, 2012 at 05:37:19PM +0530, Ajay Kumar Gupta wrote: diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c index 89d1871..f5eb8a7 100644 --- a/drivers/usb/musb/musb_core.c

[PATCH v2 0/2] Add D_CAN device tree data to AM335x-EVM

2012-07-25 Thread AnilKumar Ch
Thid patch series adds device tree data to AM335x-EVM file and adds pinmux settings required to configure two of the AM335x EVM pins to D_CAN TX/RX pins. Changes from v1: - These two patches separated from c_can DT support patch series. AnilKumar Ch (2): arm/dts: AM33XX: Add

[PATCH v2 1/2] arm/dts: AM33XX: Add D_CAN device tree data

2012-07-25 Thread AnilKumar Ch
Add Bosch D_CAN controller device tree data to AM33XX dtsi file by adding d_can device node with all the necessary parameters. Signed-off-by: AnilKumar Ch anilku...@ti.com --- arch/arm/boot/dts/am33xx.dtsi |5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/am33xx.dtsi

[PATCH v2 2/2] arm/dts: AM33XX: Configure pinmuxs for D_CAN1 on AM335x-EVM

2012-07-25 Thread AnilKumar Ch
Add D_CAN1 pinctrl node to am3358_pinmux master node to export D_CAN functionality on AM335x EVM according to pinctrl-single driver. Signed-off-by: AnilKumar Ch anilku...@ti.com --- arch/arm/boot/dts/am335x-evm.dts | 13 + 1 file changed, 13 insertions(+) diff --git

RE: [PATCH v5 01/11] usb: musb: add musb-id to identify core instance

2012-07-25 Thread Gupta, Ajay Kumar
Hi, On Wed, Jul 25, 2012 at 12:19:32PM +, Gupta, Ajay Kumar wrote: Hi, On Wed, Jul 25, 2012 at 05:37:19PM +0530, Ajay Kumar Gupta wrote: diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c index 89d1871..f5eb8a7 100644 ---

Re: [PATCH] omap: usb: host: remove deprecated flag 'es2_compatibility'

2012-07-25 Thread Munegowda, Keshava
On Wed, Jul 25, 2012 at 1:24 PM, Felipe Balbi ba...@ti.com wrote: Hi, On Tue, Jul 24, 2012 at 09:08:40PM +0300, Ruslan Bilovol wrote: Currently this flag is not used anywhere and may be safely removed. Signed-off-by: Ruslan Bilovol ruslan.bilo...@ti.com looks good to me. Keshava ? Ruslan

Re: [PATCH v5 01/11] usb: musb: add musb-id to identify core instance

2012-07-25 Thread Felipe Balbi
On Wed, Jul 25, 2012 at 12:30:12PM +, Gupta, Ajay Kumar wrote: Hi, On Wed, Jul 25, 2012 at 12:19:32PM +, Gupta, Ajay Kumar wrote: Hi, On Wed, Jul 25, 2012 at 05:37:19PM +0530, Ajay Kumar Gupta wrote: diff --git a/drivers/usb/musb/musb_core.c

Re: [PATCH v4 3/4] OMAP2+: use control module mfd driver in omap_type

2012-07-25 Thread Sergei Shtylyov
Hello. On 25-07-2012 15:05, Konstantin Baydarov wrote: OMAP system control module can be probed early, then omap_type is safe to use its APIs. TODO: add support for other omap versions Signed-off-by: Eduardo Valentin eduardo.valen...@ti.com Signed-off-by: Konstantin Baydarov

RE: [PATCH v5 01/11] usb: musb: add musb-id to identify core instance

2012-07-25 Thread Gupta, Ajay Kumar
Hi, On Wed, Jul 25, 2012 at 12:30:12PM +, Gupta, Ajay Kumar wrote: Hi, On Wed, Jul 25, 2012 at 12:19:32PM +, Gupta, Ajay Kumar wrote: Hi, On Wed, Jul 25, 2012 at 05:37:19PM +0530, Ajay Kumar Gupta wrote: diff --git a/drivers/usb/musb/musb_core.c

Re: [PATCH v2 1/2] arm/dts: AM33XX: Add D_CAN device tree data

2012-07-25 Thread Sergei Shtylyov
Hello. On 25-07-2012 16:23, AnilKumar Ch wrote: Add Bosch D_CAN controller device tree data to AM33XX dtsi file by adding d_can device node with all the necessary parameters. Signed-off-by: AnilKumar Ch anilku...@ti.com --- arch/arm/boot/dts/am33xx.dtsi |5 + 1 file changed, 5

Re: [PATCH v4 3/4] OMAP2+: use control module mfd driver in omap_type

2012-07-25 Thread Konstantin Baydarov
HI, Sergei. On 07/25/2012 04:39 PM, Sergei Shtylyov wrote: Hello. On 25-07-2012 15:05, Konstantin Baydarov wrote: OMAP system control module can be probed early, then omap_type is safe to use its APIs. TODO: add support for other omap versions Signed-off-by: Eduardo Valentin

Re: [PATCH-V3] ARM: OMAP3+: hwmod: Add AM33XX HWMOD data

2012-07-25 Thread Paul Walmsley
Hello Vaibhav, On Wed, 25 Jul 2012, Vaibhav Hiremath wrote: This patch adds HWMOD data for all the peripherals of AM335X device and also hooks up to the existing OMAP framework. Looks pretty good. One question: +static struct omap_hwmod am33xx_ehrpwm0_hwmod = { + .name =

Re: [RFC 2/4] ARM: OMAP: PM: Get rid of Powerdomain book-keeping from cpuidle

2012-07-25 Thread Kevin Hilman
Tero Kristo t-kri...@ti.com writes: On Fri, 2012-07-20 at 13:38 +0530, Rajendra Nayak wrote: On Friday 20 July 2012 12:55 PM, Shilimkar, Santosh wrote: On Fri, Jul 20, 2012 at 11:34 AM, Rajendra Nayakrna...@ti.com wrote: pwrdm_pre_transition()/pwrdm_post_transition() have always been high

Re: [PATCH V2 01/10] ARM: PMU: Add runtime PM Support

2012-07-25 Thread Jon Hunter
Hi Will, On 07/05/2012 07:40 PM, Jon Hunter wrote: Hi Will, On 07/02/2012 05:01 PM, Will Deacon wrote: On Mon, Jul 02, 2012 at 05:50:38PM +0100, Jon Hunter wrote: On 07/02/2012 04:55 AM, Will Deacon wrote: Did you have any luck getting to the bottom of this? I am still waiting for

Re: [PATCH V3 1/2] of: Add generic device tree DMA helpers

2012-07-25 Thread zhangfei gao
On Fri, Jul 20, 2012 at 12:00 PM, Vinod Koul vinod.k...@linux.intel.com wrote: On Tue, 2012-07-17 at 19:24 +, Arnd Bergmann wrote: On Friday 13 July 2012, Vinod Koul wrote: Do you mean there must be a global table, or are you ok with putting the information about a channel into the