[PATCH RFC] ARM: dts: am335x: update USB DT references

2014-04-16 Thread Leigh Brown
In ARM: dts: am33xx: correcting dt node unit address for usb, the usb_ctrl_mod and cppi41dma nodes were updated with the correct register addresses. However, the dts files that reference these nodes were not updated, and those devices are no longer being enabled. This patch corrects the

[PATCH 2/5] w1: omap_hdq: Add compatible property for omap hdq driver.

2014-04-16 Thread Sourav Poddar
Add compatible property for omap hdq driver. Signed-off-by: Sourav Poddar sourav.pod...@ti.com --- .../devicetree/bindings/hdq1w/omap_hdq.txt | 20 drivers/w1/masters/omap_hdq.c |8 2 files changed, 28 insertions(+) create mode

[PATCH 0/5] AM437x: HDQ/1wire protocol

2014-04-16 Thread Sourav Poddar
This series adds support for HDQ/1w protocol driver for am43x epos evm where it can be used for measuring the temperature of a slave device connected to a particular header. Tested the patch series on AM437x, hdq master and slave devices are getting registered and interrupts are getting triggered

[PATCH 3/5] arm: omap2: skip device build from platform code for dt.

2014-04-16 Thread Sourav Poddar
For SOCs with dt enabled, device should be build through device tree. Prevent device build call from platform code, if device tree is enabled. Signed-off-by: Sourav Poddar sourav.pod...@ti.com --- arch/arm/mach-omap2/hdq1w.c |2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH 1/5] drivers: w1: omap_hdq: cleanup and bug fixes.

2014-04-16 Thread Sourav Poddar
The patch adds the following to the omap hdq driver. 1. HDQ Device reset call in probe. 2. Enabling '1 wire mode' and checking for presence pulse bit. 3. Proper disabling and enabling of interrupts during read path. 4. Add re-initialization code during SKIP ROM command execution. 5. Miscellaneous

[PATCH 5/5] arm: hwmod: am437x: Add hwmod data for hdq1w.

2014-04-16 Thread Sourav Poddar
These adds hwmod data for hdq/1w driver. Signed-off-by: Sourav Poddar sourav.pod...@ti.com --- arch/arm/mach-omap2/omap_hwmod_43xx_data.c | 36 arch/arm/mach-omap2/prcm43xx.h |1 + 2 files changed, 37 insertions(+) diff --git

[PATCH 4/5] arm: dts: am4372: Add hdq device tree data.

2014-04-16 Thread Sourav Poddar
Add device tree nodes and pinmux for hdq/1wire on am43x epos evm. Signed-off-by: Sourav Poddar sourav.pod...@ti.com --- arch/arm/boot/dts/am4372.dtsi| 10 ++ arch/arm/boot/dts/am43x-epos-evm.dts | 12 2 files changed, 22 insertions(+) diff --git

Re: [PATCH v2 05/14] arm: common: edma: Select event queue 1 as default when booted with DT

2014-04-16 Thread Peter Ujfalusi
On 04/14/2014 05:32 PM, Sekhar Nori wrote: Yes, you can. But as soon as you have other devices using the same priority (with eDMA3 at least) and asks for a 'long' transfer it can ruin the audio. During audio playback/capture you execute a long MMC read for example can introduce a glitch.

[RFC 3/4] ARM: dts: Add dss_deshdcp clock node under dra7-ctrl-core

2014-04-16 Thread Archit Taneja
The DESHDCP clock is required only by the DES-HDCP block within HDMI in DSS. However, if the clock isn't set before DSS clock domian is enabled, the clock domain never comes out of idle state. The DESHDCP clock is enabled/disabled at the DSS boundary by the bit DSS_DESHDCP_CLKEN in

[RFC 4/4] CLK: TI: Enable dss_deshdcp clock in dra7xx_clk_init

2014-04-16 Thread Archit Taneja
The DESHDCP clock is required only by the DES-HDCP block within HDMI in DSS. However, if the clock isn't set before DSS clock domian is enabled, the clock domain never comes out of idle state. This is because the DSS IP is designed in such a way that if DES-HDCP block can't transition from idle

[RFC 2/4] ARM: dts: Add ctrl-core DT node for DRA7

2014-04-16 Thread Archit Taneja
Add DT node for the ctrl-core sub module of the DRA7 control module. We map the CTRL_MODULE_CORE address region up to 0x4a002d60, this region contains register fields which configure clocks. The remainder of the registers are related to pad configurations or cross-bar configurations, and therefore

[RFC 1/4] ARM: OMAP2+: Add CTRL_MODULE_CORE as a master clock provider for DRA7

2014-04-16 Thread Archit Taneja
The control module isn't actually a clock management module, but there are a few register bits which perform gating and muxing of clocks. Add CTRL_MODULE_CORE sub block as a clock provider for DRA7. The control module has 2 sub modules: CTRL_MODULE_CORE, and CTRL_MODULE_WKUP. Out of these, only

Re: [PATCH V2] crypto: omap-des - handle error of pm_runtime_get_sync

2014-04-16 Thread Herbert Xu
On Tue, Apr 15, 2014 at 12:51:43PM -0500, Joel Fernandes wrote: On 04/15/2014 12:18 PM, Nishanth Menon wrote: On 04/15/2014 12:06 PM, Joachim Eastwood wrote: On 15 April 2014 18:58, Nishanth Menon n...@ti.com wrote: pm_runtime_get_sync may not always succeed depending on SoC involved. So

Re: [PATCH 02/11] ARM: OMAP3: Fix idle mode signaling for sys_clkreq and sys_off_mode

2014-04-16 Thread Grazvydas Ignotas
On Wed, Apr 16, 2014 at 1:56 AM, Tony Lindgren t...@atomide.com wrote: * Grazvydas Ignotas nota...@gmail.com [140414 15:51]: On Fri, Apr 11, 2014 at 2:47 AM, Tony Lindgren t...@atomide.com wrote: @@ -282,6 +283,7 @@ void omap_sram_idle(void) /* CORE */ if (core_next_state

Re: [GIT PULL FOR v3.16] OMAP IOMMU fixes

2014-04-16 Thread Joerg Roedel
Hi Laurent, On Fri, Apr 04, 2014 at 12:11:52AM +0200, Laurent Pinchart wrote: Laurent Pinchart (3): iommu/omap: Fix 'no page for' debug message in flush_iotlb_page() iommu/omap: Remove comment about supporting single page mappings only iommu/omap: Fix map protection value

Re: [PATCH RFC 3/4] xhci: Tune PHY for the DWC3-Exynos host controller

2014-04-16 Thread Heikki Krogerus
Hi, On Tue, Apr 15, 2014 at 06:24:11PM +0530, Vivek Gautam wrote: I had seen your patches in the mailing list, but i don't see any updated version of these patches. Are you planning to work on this above mentioned patch-series any time soon ? I'm sorry, I forgot this completely. I have not

Re: [GIT PULL FOR v3.16] OMAP IOMMU fixes

2014-04-16 Thread Laurent Pinchart
Hi Joerg, On Wednesday 16 April 2014 16:01:07 Joerg Roedel wrote: Hi Laurent, On Fri, Apr 04, 2014 at 12:11:52AM +0200, Laurent Pinchart wrote: Laurent Pinchart (3): iommu/omap: Fix 'no page for' debug message in flush_iotlb_page() iommu/omap: Remove comment about supporting

[GIT PULL v2 FOR v3.16] OMAP IOMMU fixes

2014-04-16 Thread Laurent Pinchart
Hi Joerg, The following changes since commit c9eaa447e77efe77b7fa4c953bd62de8297fd6c5: Linux 3.15-rc1 (2014-04-13 14:18:35 -0700) are available in the git repository at: git://linuxtv.org/pinchartl/media.git iommu/omap for you to fetch changes up to

Re: [GIT PULL v2 FOR v3.16] OMAP IOMMU fixes

2014-04-16 Thread Laurent Pinchart
Hi Joerg, Last but not least, could you please provide a stable branch with those patches, directly on top of v3.15-rc1 ? I'll need to base OMAP3 ISP driver patches on top of it. On Wednesday 16 April 2014 16:51:56 Laurent Pinchart wrote: Hi Joerg, The following changes since commit

[PATCH] power: twl4030_charger: clear IRQs after handling them

2014-04-16 Thread Felipe Balbi
TRM says we *must* write 1 to each bit we're handling in order to clear the IRQ status and bring IRQ line low. This patch implements that. Signed-off-by: Felipe Balbi ba...@ti.com --- Russell, I don't have HW to test, but this should solve the problem you saw when not using battery with Zoom

Re: [PATCH v2 05/14] arm: common: edma: Select event queue 1 as default when booted with DT

2014-04-16 Thread Joel Fernandes
On 04/16/2014 07:59 AM, Peter Ujfalusi wrote: [..] If the dma-priority is missing we should assume lowest priority (0). The highest priority depends on the platform. For eDMA3 in AM335x it is three level. For designware controller you might have the range 0-8 as valid. The question is how

Re: HDMI on OMAP4460: clk rate mismatch warning

2014-04-16 Thread Joachim Eastwood
On 16 April 2014 07:40, Tomi Valkeinen tomi.valkei...@ti.com wrote: On 15/04/14 20:36, Joachim Eastwood wrote: Hello, I am trying to get HDMI work with DT on my VAR-STK-OM44 (4460) board. But during kernel boot I get the following message: [ 0.953796] [ cut here ] [

Re: [PATCH 2/2] ARM: dts: omap5: Add dr_mode for dwc3

2014-04-16 Thread Felipe Balbi
On Fri, Oct 11, 2013 at 05:46:12PM +0300, Roger Quadros wrote: Hi, On 10/10/2013 01:49 PM, Kishon Vijay Abraham I wrote: From: George Cherian george.cher...@ti.com Added dr_mode property in dwc3 and set its default mode to device. If there is a specific reason why this is not set to

Re: [PATCH 2/2] ARM: dts: omap5: Add dr_mode for dwc3

2014-04-16 Thread Felipe Balbi
On Wed, Apr 16, 2014 at 11:16:19AM -0500, Felipe Balbi wrote: On Fri, Oct 11, 2013 at 05:46:12PM +0300, Roger Quadros wrote: Hi, On 10/10/2013 01:49 PM, Kishon Vijay Abraham I wrote: From: George Cherian george.cher...@ti.com Added dr_mode property in dwc3 and set its default

Re: [PATCH] power: twl4030_charger: clear IRQs after handling them

2014-04-16 Thread Tony Lindgren
* Felipe Balbi ba...@ti.com [140416 08:18]: TRM says we *must* write 1 to each bit we're handling in order to clear the IRQ status and bring IRQ line low. This patch implements that. Signed-off-by: Felipe Balbi ba...@ti.com --- Russell, I don't have HW to test, but this should solve the

Re: [PATCH v3 00/10] dma: edma: Fixes for cyclic (audio) operation

2014-04-16 Thread Joel Fernandes
On 04/14/2014 06:41 AM, Peter Ujfalusi wrote: Hi, Changes since v2: - Dropped patch 10 from v2 (simplify direction configuration...) - Dropped the channel priority related patches since we are going to go via different route for configuring the priority. - Added ACK from Joel for the

Re: [GIT PULL v2 FOR v3.16] OMAP IOMMU fixes

2014-04-16 Thread Joerg Roedel
On Wed, Apr 16, 2014 at 04:51:56PM +0200, Laurent Pinchart wrote: The following changes since commit c9eaa447e77efe77b7fa4c953bd62de8297fd6c5: Linux 3.15-rc1 (2014-04-13 14:18:35 -0700) are available in the git repository at: git://linuxtv.org/pinchartl/media.git iommu/omap for

[PATCH 3/8] usb: dwc3: core: refactor mode initialization to its own function

2014-04-16 Thread Felipe Balbi
Move mode (Host, Peripheral, OTG) initialization to its own function in order to decrease the size of our probe() routine. Signed-off-by: Felipe Balbi ba...@ti.com --- drivers/usb/dwc3/core.c | 133 1 file changed, 67 insertions(+), 66

[PATCH 5/8] usb: phy: rename usb_nop_xceiv to usb_phy_generic

2014-04-16 Thread Felipe Balbi
no functional changes, just renaming the function in order to make it slightly clearer what it should be used for, also matching the driver name. Signed-off-by: Felipe Balbi ba...@ti.com --- drivers/usb/dwc3/dwc3-exynos.c| 6 ++--- drivers/usb/dwc3/dwc3-pci.c | 6 ++---

[PATCH 6/8] usb: phy: rename linux/usb/usb_phy_gen_xceiv.h to linux/usb/usb_phy_generic.h

2014-04-16 Thread Felipe Balbi
now that all functions match the driver name, the only missing piece is to rename the header file itself. Signed-off-by: Felipe Balbi ba...@ti.com --- drivers/usb/dwc3/dwc3-exynos.c | 2 +- drivers/usb/dwc3/dwc3-pci.c | 2 +-

[PATCH 1/8] usb: dwc3: gadget: clear stall when disabling endpoint

2014-04-16 Thread Felipe Balbi
so it seems like DWC3 IP doesn't clear stalls automatically when we disable an endpoint, because of that, we _must_ make sure stalls are cleared before clearing the proper bit in DALEPENA register. Cc: sta...@vger.kernel.org # v3.4+ Reported-by: Johannes Stezenbach j...@sig21.net Signed-off-by:

[PATCH 8/8] usb: phy: generic: allow multiples calls to usb_phy_generic_register()

2014-04-16 Thread Felipe Balbi
it's now very easy to return a platform_device pointer and have the caller pass it as argument when calling usb_phy_generic_unregister(). Signed-off-by: Felipe Balbi ba...@ti.com --- drivers/usb/musb/am35x.c| 12 +--- drivers/usb/musb/blackfin.c | 10 --

[PATCH 7/8] usb: musb: move usb_phy_generic_{un,}register calls to probe()/remove()

2014-04-16 Thread Felipe Balbi
This patch is in preparation to supporting calling those functions multiple times. Signed-off-by: Felipe Balbi ba...@ti.com --- drivers/usb/musb/am35x.c| 4 ++-- drivers/usb/musb/blackfin.c | 6 +++--- drivers/usb/musb/da8xx.c| 4 ++-- drivers/usb/musb/davinci.c | 4 ++--

[PATCH 2/8] usb: dwc3: core: refactor PHY initialization

2014-04-16 Thread Felipe Balbi
our probe() routine is too large and we can easily refactor PHY-related code out to another function to make it slightly less painful to read. Signed-off-by: Felipe Balbi ba...@ti.com --- drivers/usb/dwc3/core.c | 120 ++-- 1 file changed, 66

[PATCH 4/8] usb: gadget: only GPL drivers in the gadget and phy framework

2014-04-16 Thread Felipe Balbi
We only support GPL drivers in the USB Gadget Framework, it sounds correct to make all exported symbols GPL too. Signed-off-by: Felipe Balbi ba...@ti.com --- drivers/usb/gadget/configfs.c | 2 +- drivers/usb/gadget/f_fs.c | 6 ++--- drivers/usb/gadget/f_rndis.c| 2 +-

[PATCH 0/8] usb: generic cleanup patches

2014-04-16 Thread Felipe Balbi
Hi folks, I have been playing with following patches today and I think they're ready to be queued up for v3.16 but I wanted to get some comments/test results before I apply them to my 'next' branch. Thanks Felipe Balbi (8): usb: dwc3: gadget: clear stall when disabling endpoint usb: dwc3:

Re: [GIT PULL v2 FOR v3.16] OMAP IOMMU fixes

2014-04-16 Thread Laurent Pinchart
Hi Joerg, On Wednesday 16 April 2014 21:31:58 Joerg Roedel wrote: On Wed, Apr 16, 2014 at 04:51:56PM +0200, Laurent Pinchart wrote: The following changes since commit c9eaa447e77efe77b7fa4c953bd62de8297fd6c5: Linux 3.15-rc1 (2014-04-13 14:18:35 -0700) are available in the git

[PATCH 0/9] dmtimer code clean-up first pass

2014-04-16 Thread Joel Fernandes
Here are some minor cleanups for dmtimer code in preparation for moving it out to drivers. There is OMAP1 specific dmtimer code earlier, that are handled in mach-omap1 directly now. Other than this, few functions and code has been refactored to reduce redundancy and some minor cleanups. OMAP1

[PATCH 2/9] ARM: OMAP: dmtimer: Add comments on OMAP1 clock framework

2014-04-16 Thread Joel Fernandes
OMAP1 doesn't support clock framework, add a comment where needed and correct a FIXME. Signed-off-by: Joel Fernandes jo...@ti.com --- arch/arm/plat-omap/dmtimer.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/plat-omap/dmtimer.c

[PATCH 7/9] ARM: OMAP: dmtimer: Have __omap_dm_timer_load_start set ST bit in CTRL instead of caller

2014-04-16 Thread Joel Fernandes
load_start implies start, so it makes sense to set the ST bit in __omap_dm_timer_load_start instead of callers. Signed-off-by: Joel Fernandes jo...@ti.com --- arch/arm/mach-omap2/timer.c |6 +++--- arch/arm/plat-omap/dmtimer.c |1 -

[PATCH 9/9] ARM: OMAP: dmtimer: Get rid of check for mem resource error

2014-04-16 Thread Joel Fernandes
The subsequent devm_ioremap_resource will catch it and print an error, let it be checked there. Signed-off-by: Joel Fernandes jo...@ti.com --- arch/arm/plat-omap/dmtimer.c |4 1 file changed, 4 deletions(-) diff --git a/arch/arm/plat-omap/dmtimer.c b/arch/arm/plat-omap/dmtimer.c index

[PATCH 4/9] ARM: OMAP: dmtimer: Add function to check if timer is running

2014-04-16 Thread Joel Fernandes
Inorder to move non-DM timer specific code that modifies the idlect mask on OMAP1, from dmtimer code, to OMAP1 specific timer initialization code, we introduce a new function that can possibly be reused for other purposes in the future. The function just checks if a timer is running based on the

[PATCH 5/9] ARM: OMAP1: dmtimer: Rewrite modify of IDLECT mask to use new is_running function

2014-04-16 Thread Joel Fernandes
While at it, also delete the old definition of the function in dmtimer.c code. This completes the separation and removal of OMAP1 header dependency in dmtimer code and removes references to MOD_CONF_CTRL registers in dmtimer. Signed-off-by: Joel Fernandes jo...@ti.com ---

[PATCH 8/9] ARM: OMAP: dmtimer: Add function to check for timer availability

2014-04-16 Thread Joel Fernandes
Simplify the check for a timer availability in atleast 4 places by providing a function to do the same. Signed-off-by: Joel Fernandes jo...@ti.com --- arch/arm/plat-omap/dmtimer.c | 24 ++-- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git

[PATCH 1/9] ARM: OMAP: dmtimer: Remove setting of clk parent indirectly through platform hook

2014-04-16 Thread Joel Fernandes
There is a platform specific hook just for OMAP1 to set its clk parent. Remove this hook and have OMAP1 set its parent in omap1_dm_timer_init. If OMAP1 is ever migrated to clock framework, the correct way to do this would be through clk_set_parent like other platforms. Signed-off-by: Joel

[PATCH 6/9] ARM: OMAP: dmtimer: Add a write_ctrl function to simplify bit setting

2014-04-16 Thread Joel Fernandes
A common pattern in dmtimer code is to read the control reg, set and reset certain bits, and write it back. We abstract this pattern and introduce a new function to do so. Signed-off-by: Joel Fernandes jo...@ti.com --- arch/arm/plat-omap/dmtimer.c | 63

[PATCH 3/9] ARM: OMAP: dmtimer: Add note to set parent from DT

2014-04-16 Thread Joel Fernandes
Once clock-parents or default-parent support for DT clocks is available, we should use it to set clock parent and turn clk_set_parent into a NOOP. Signed-off-by: Joel Fernandes jo...@ti.com --- arch/arm/plat-omap/dmtimer.c |4 1 file changed, 4 insertions(+) diff --git

[PATCH] dmaengine: edma: No need save/restore interrupt flags during spin_lock in IRQ

2014-04-16 Thread Joel Fernandes
The vchan lock in edma_callback is acquired in hard interrupt context. As interrupts are already disabled, there's no point in save/restoring interrupt mask bit or cpsr flags. Get rid of flags local variable and use spin_lock instead of spin_lock_irqsave. Signed-off-by: Joel Fernandes