Re: [PATCH 7/7] v4l: ti-vpe: Add crop support in VPE driver

2014-03-04 Thread Archit Taneja
Hi, On Tuesday 04 March 2014 01:13 PM, Hans Verkuil wrote: On 03/04/2014 08:38 AM, Archit Taneja wrote: Hi Hans, On Monday 03 March 2014 01:20 PM, Hans Verkuil wrote: Hi Archit! On 03/03/2014 08:33 AM, Archit Taneja wrote: Add crop ioctl ops. For VPE, cropping only makes sense with the

[PATCH v2 0/7] v4l: ti-vpe: Some VPE fixes and enhancements

2014-03-04 Thread Archit Taneja
This patch set mainly consists of minor fixes for the VPE driver. These fixes ensure the following: - The VPE module can be inserted and removed successively. - Make sure that smaller resolutions like qcif work correctly. - Prevent race condition between firmware loading and an open call to the

[PATCH v2 2/7] v4l: ti-vpe: register video device only when firmware is loaded

2014-03-04 Thread Archit Taneja
vpe fops(vpe_open in particular) should be called only when VPDMA firmware is loaded. File operations on the video device are possible the moment it is registered. Currently, we register the video device for VPE at driver probe, after calling a vpdma helper to initialize VPDMA and load firmware.

[PATCH v2 5/7] v4l: ti-vpe: Allow usage of smaller images

2014-03-04 Thread Archit Taneja
The minimum width and height for VPE input/output was kept as 128 pixels. VPE doesn't have a constraint on the image height, it requires the image width to be at least 16 bytes. Change the minimum supported dimensions to 32x32. This allows us to de-interlace qcif content. A smaller image size

[PATCH v2 4/7] v4l: ti-vpe: Allow DMABUF buffer type support

2014-03-04 Thread Archit Taneja
For OMAP and DRA7x, we generally allocate video and graphics buffers through omapdrm since the corresponding omap-gem driver provides DMM-Tiler backed contiguous buffers. omapdrm is a dma-buf exporter. These buffers are used by other drivers in the video pipeline. Add VB2_DMABUF flag to the

[PATCH v2 7/7] v4l: ti-vpe: Add selection API in VPE driver

2014-03-04 Thread Archit Taneja
Add selection ioctl ops. For VPE, cropping makes sense only for the input to VPE(or V4L2_BUF_TYPE_VIDEO_OUTPUT/MPLANE buffers) and composing makes sense only for the output of VPE(or V4L2_BUF_TYPE_VIDEO_CAPTURE/MPLANE buffers). For the CAPTURE type, V4L2_SEL_TGT_COMPOSE results in VPE writing the

[PATCH v2 1/7] v4l: ti-vpe: Make sure in job_ready that we have the needed number of dst_bufs

2014-03-04 Thread Archit Taneja
VPE has a ctrl parameter which decides how many mem to mem transactions the active job from the job queue can perform. The driver's job_ready() made sure that the number of ready source buffers are sufficient for the job to execute successfully. But it didn't make sure if there are sufficient

[PATCH v2 6/7] v4l: ti-vpe: Fix some params in VPE data descriptors

2014-03-04 Thread Archit Taneja
Some parameters of the VPE descriptors were understood incorrectly. They are now fixed. The fixes are explained as follows: - When adding an inbound data descriptor to the VPDMA descriptor list, we intend to use c_rect as the cropped region fetched by VPDMA. Therefore, c_rect-width shouldn't

[PATCH v2 3/7] v4l: ti-vpe: Use video_device_release_empty

2014-03-04 Thread Archit Taneja
The video_device struct is currently embedded in the driver data struct vpe_dev. A vpe_dev instance is allocated by the driver, and the memory for the vfd is a part of this struct. The v4l2 core, however, manages the removal of the vfd region, through the video_device's .release() op, which

[PATCH 5/5] drivers: bus: omap_l3: Change pr_crit() to dev_err() when IRQ request fails

2014-03-04 Thread Peter Ujfalusi
Use dev_err() which will going to print the driver's name as well and the KERN_ERR level is sufficient in this case (we also print via dev_err when there is an error with the mem resources) Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com Reviewed-by: Santosh Shilimkar santosh.shilimkar@ti ---

[PATCH 2/5] drivers: bus: omap_l3: Convert to use devm_request_and_ioremap()

2014-03-04 Thread Peter Ujfalusi
We can then remove the iounmap() calls from probe and remove. Since the driver requests the resources via index we can do the mem resource request within a for loop. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com Reviewed-by: Santosh Shilimkar santosh.shilimkar@ti ---

[PATCH 4/5] drivers: bus: omap_l3: Remove the platform driver's remove function

2014-03-04 Thread Peter Ujfalusi
It is NOP after the devm_* conversion. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com Reviewed-by: Santosh Shilimkar santosh.shilimkar@ti --- drivers/bus/omap_l3_noc.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/bus/omap_l3_noc.c b/drivers/bus/omap_l3_noc.c index

Re: Ethernet controller not starting

2014-03-04 Thread Christian Riesch
[cc'ed netdev and davinci-linux-open-source] --On March 03, 2014 19:39 -0500 Jon Ringle j...@ringle.org wrote: On Mon, Mar 3, 2014 at 6:43 PM, Rafael J. Wysocki r...@rjwysocki.net wrote: On Monday, March 03, 2014 02:41:01 PM Jon Ringle wrote: I'm working on porting an ARM board from

Re: [PATCH 1/5] drivers: bus: omap_l3: Convert to use devm_kzalloc

2014-03-04 Thread Peter Ujfalusi
On 03/04/2014 11:01 AM, Peter Ujfalusi wrote: We can remove the kfree() calls from probe and remove. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com Reviewed-by: Santosh Shilimkar santosh.shilimkar@ti Where did the .com went from Santosh's email address?? I'll resend it in a minute with

[PATCH 0/5] drivers: bus: omap_l3: Conversion to devm_*

2014-03-04 Thread Peter Ujfalusi
Hi, Cleanup of platform probe and remove (removing the remove function at the end) with converting the driver to use the devm_* versions kzalloc, ioremap and request_irq. This is a resend of an old series which I found when doing some spring cleanup on my HDD:

[PATCH 3/5] drivers: bus: omap_l3: Convert to use devm_request_irq()

2014-03-04 Thread Peter Ujfalusi
With this we can remove the free_irq() calls from probe and remove. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com Reviewed-by: Santosh Shilimkar santosh.shilimkar@ti --- drivers/bus/omap_l3_noc.c | 23 +-- 1 file changed, 5 insertions(+), 18 deletions(-) diff --git

[PATCH v2 5/5] drivers: bus: omap_l3: Change pr_crit() to dev_err() when IRQ request fails

2014-03-04 Thread Peter Ujfalusi
Use dev_err() which will going to print the driver's name as well and the KERN_ERR level is sufficient in this case (we also print via dev_err when there is an error with the mem resources) Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com Reviewed-by: Santosh Shilimkar santosh.shilim...@ti.com

[PATCH v2 3/5] drivers: bus: omap_l3: Convert to use devm_request_irq()

2014-03-04 Thread Peter Ujfalusi
With this we can remove the free_irq() calls from probe and remove. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com Reviewed-by: Santosh Shilimkar santosh.shilim...@ti.com --- drivers/bus/omap_l3_noc.c | 23 +-- 1 file changed, 5 insertions(+), 18 deletions(-) diff --git

[PATCH v2 4/5] drivers: bus: omap_l3: Remove the platform driver's remove function

2014-03-04 Thread Peter Ujfalusi
It is NOP after the devm_* conversion. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com Reviewed-by: Santosh Shilimkar santosh.shilim...@ti.com --- drivers/bus/omap_l3_noc.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/bus/omap_l3_noc.c b/drivers/bus/omap_l3_noc.c index

[PATCH v2 0/5] drivers: bus: omap_l3: Conversion to devm_*

2014-03-04 Thread Peter Ujfalusi
Hi, Changes since v1: - Fixed Santosh's email address in the commit messages. Cleanup of platform probe and remove (removing the remove function at the end) with converting the driver to use the devm_* versions kzalloc, ioremap and request_irq. This is a resend of an old series which I found

[PATCH v2 2/5] drivers: bus: omap_l3: Convert to use devm_request_and_ioremap()

2014-03-04 Thread Peter Ujfalusi
We can then remove the iounmap() calls from probe and remove. Since the driver requests the resources via index we can do the mem resource request within a for loop. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com Reviewed-by: Santosh Shilimkar santosh.shilim...@ti.com ---

[PATCH v2 1/5] drivers: bus: omap_l3: Convert to use devm_kzalloc

2014-03-04 Thread Peter Ujfalusi
We can remove the kfree() calls from probe and remove. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com Reviewed-by: Santosh Shilimkar santosh.shilim...@ti.com --- drivers/bus/omap_l3_noc.c | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) diff --git

[PATCH 1/5] drivers: bus: omap_l3: Convert to use devm_kzalloc

2014-03-04 Thread Peter Ujfalusi
We can remove the kfree() calls from probe and remove. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com Reviewed-by: Santosh Shilimkar santosh.shilimkar@ti --- drivers/bus/omap_l3_noc.c | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/drivers/bus/omap_l3_noc.c

Re: [PATCH 02/12] phy: omap-control: Update DT binding information

2014-03-04 Thread Roger Quadros
Hi Tony, On 03/03/2014 09:02 PM, Tony Lindgren wrote: * Roger Quadros rog...@ti.com [140303 07:10]: Move omap-control binding information to the right location. Signed-off-by: Roger Quadros rog...@ti.com --- Documentation/devicetree/bindings/phy/ti-phy.txt | 25 ++

[PATCHv2 02/14] ARM: OMAP2420: clock: get rid of fixed-div property use

2014-03-04 Thread Tero Kristo
Cleans up the code a bit and is useful for clock data DT conversion. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/cclock2420_data.c | 15 --- arch/arm/mach-omap2/clock.c | 21 - arch/arm/mach-omap2/clock.h |3 ---

[PATCHv2 03/14] CLK: TI: DPLL: simplify autoidle register detection logic

2014-03-04 Thread Tero Kristo
AM dpll_data previously had autoidle_mask set, even if these SoC:s don't have autoidle register. Remove the bit-field value as it is unused, also drop the unnecessary DPLL_HAS_AUTOIDLE flag passing during init, as we can just simply check against the contents of the autoidle_mask.

[PATCHv2 05/14] CLK: TI: APLL: add support for omap2 aplls

2014-03-04 Thread Tero Kristo
This patch adds support for omap2 type aplls, which have gating and autoidle functionality. Signed-off-by: Tero Kristo t-kri...@ti.com --- .../devicetree/bindings/clock/ti/apll.txt | 24 ++- arch/arm/mach-omap2/clock.h| 11 -- drivers/clk/ti/apll.c

[PATCHv2 01/14] ARM: OMAP2: convert sys_ck and osc_ck to standard clock types

2014-03-04 Thread Tero Kristo
osc_ck can be simply defined as a multiplexer clock, and the sys_ck can be a simple divider. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/Makefile |3 +- arch/arm/mach-omap2/cclock2420_data.c | 52 +

[PATCHv2 00/14]: ARM: OMAP2: clock DT conversion

2014-03-04 Thread Tero Kristo
Hi, Changes compared to v1: - fixed OMAP2 only build issues - fixed OMAP2420 boot issues - added patch #13 and #14 to remove legacy clock data for OMAP2/OMAP3 - fixed smatch + DT bindings documentation problems reported by Nishanth This set is un-tested on OMAP2 hardware as I don't have access

[PATCHv2 07/14] CLK: TI: interface: add support for omap2430 specific interface clock

2014-03-04 Thread Tero Kristo
OMAP2430 I2CHS modules require specific hardware ops to be used, so added a new compatible string for this. Signed-off-by: Tero Kristo t-kri...@ti.com --- .../devicetree/bindings/clock/ti/interface.txt |2 ++ arch/arm/mach-omap2/clock.h|1 -

[PATCHv2 04/14] CLK: TI: DPLL: add support for omap2 core dpll

2014-03-04 Thread Tero Kristo
OMAP2 has slightly different DPLL compared to later OMAP generations. This patch adds support for the ti,omap2-dpll-core-clock and also adds the bindings documentation. Signed-off-by: Tero Kristo t-kri...@ti.com --- .../devicetree/bindings/clock/ti/dpll.txt |9 +++

[PATCHv2 12/14] ARM: OMAP2: clock: use DT clock boot if available

2014-03-04 Thread Tero Kristo
Otherwise legacy boot clock data is used. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/io.c | 15 +-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-omap2/io.c b/arch/arm/mach-omap2/io.c index af432b1..e57088d 100644 ---

[PATCHv2 09/14] ARM: OMAP2: PRM: add support for OMAP2 specific clock providers

2014-03-04 Thread Tero Kristo
This patch adds support for initializing also omap2-prcm and omap2-scrm through DT. Signed-off-by: Tero Kristo t-kri...@ti.com --- .../devicetree/bindings/arm/omap/prcm.txt | 65 arch/arm/mach-omap2/prm_common.c |2 + 2 files changed, 67

[PATCHv2 11/14] ARM: OMAP2: clock: add DT boot support for cpufreq_ck

2014-03-04 Thread Tero Kristo
The clock and clkdev for this are added manually. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/clkt2xxx_virt_prcm_set.c | 53 ++ drivers/clk/ti/clk-2xxx.c|2 + include/linux/clk/ti.h |1 + 3 files

[PATCHv2 08/14] CLK: TI: OMAP2: add clock init support

2014-03-04 Thread Tero Kristo
Adds support for registering the alias clocks, boot time clock-enable list and disabling autoidle of clocks. Signed-off-by: Tero Kristo t-kri...@ti.com --- drivers/clk/ti/Makefile |1 + drivers/clk/ti/clk-2xxx.c | 254 + include/linux/clk/ti.h

[PATCHv2 06/14] CLK: TI: gate: fixed DT binding documentation bugs

2014-03-04 Thread Tero Kristo
ti,composite-gate-clock documentation was missing, also the register offset examples were wrong. Signed-off-by: Tero Kristo t-kri...@ti.com --- .../devicetree/bindings/clock/ti/gate.txt | 29 +--- 1 file changed, 25 insertions(+), 4 deletions(-) diff --git

[PATCHv2 10/14] ARM: dts: omap2 clock data

2014-03-04 Thread Tero Kristo
This patch creates a unique node for each clock in the OMAP2 power, reset and clock manager (PRCM). Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/boot/dts/omap2420-clocks.dtsi | 270 +++ arch/arm/boot/dts/omap2420.dtsi| 29 + arch/arm/boot/dts/omap2430-clocks.dtsi | 344

Re: [PATCH 06/12] phy: omap: Select OMAP_OCP2SCP bus driver

2014-03-04 Thread Roger Quadros
On 03/03/2014 08:52 PM, Tony Lindgren wrote: * Roger Quadros rog...@ti.com [140303 07:11]: The OMAP_USB2 and OMAP_PIP3 phy devices will not be detected if the OMAP_OCP2SCP driver is not present. So select it. Selecting drivers like this will easily lead into missing dependencies.

Re: [PATCH 2/5] drivers: bus: omap_l3: Convert to use devm_request_and_ioremap()

2014-03-04 Thread Alexander Shiyan
Вторник, 4 марта 2014, 13:12 +04:00 от Alexander Shiyan shc_w...@mail.ru: Вторник, 4 марта 2014, 11:01 +02:00 от Peter Ujfalusi peter.ujfal...@ti.com: We can then remove the iounmap() calls from probe and remove. Since the driver requests the resources via index we can do the mem resource

Re: [PATCH 2/5] drivers: bus: omap_l3: Convert to use devm_request_and_ioremap()

2014-03-04 Thread Alexander Shiyan
Вторник, 4 марта 2014, 11:01 +02:00 от Peter Ujfalusi peter.ujfal...@ti.com: We can then remove the iounmap() calls from probe and remove. Since the driver requests the resources via index we can do the mem resource request within a for loop. Signed-off-by: Peter Ujfalusi

Re: [PATCH 01/12] phy: rename struct omap_control_usb to struct omap_control_phy

2014-03-04 Thread Kishon Vijay Abraham I
Roger, On Monday 03 March 2014 08:37 PM, Roger Quadros wrote: From: Kishon Vijay Abraham I kis...@ti.com Rename struct omap_control_usb to struct omap_control_phy since it can be used to control PHY of USB, SATA and PCIE. Also move the driver and include files under *phy* and made the

Re: [PATCH 03/12] phy: ti-pipe3: cleanup clock handling

2014-03-04 Thread Kishon Vijay Abraham I
Hi, On Monday 03 March 2014 08:37 PM, Roger Quadros wrote: As this driver is no longer USB specific, use generic clock names. - Fix PLL_SD_SHIFT from 9 to 10 - As optclk and wkupclk may not be always required, don't bail out if they aren't available. I think here too we face the same problem

Re: [PATCH 03/12] phy: ti-pipe3: cleanup clock handling

2014-03-04 Thread Roger Quadros
On 03/04/2014 11:29 AM, Kishon Vijay Abraham I wrote: Hi, On Monday 03 March 2014 08:37 PM, Roger Quadros wrote: As this driver is no longer USB specific, use generic clock names. - Fix PLL_SD_SHIFT from 9 to 10 - As optclk and wkupclk may not be always required, don't bail out if they

Re: [PATCH 2/5] drivers: bus: omap_l3: Convert to use devm_request_and_ioremap()

2014-03-04 Thread Peter Ujfalusi
On 03/04/2014 11:23 AM, Alexander Shiyan wrote: - l3-l3_base[2] = ioremap(res-start, resource_size(res)); - if (!l3-l3_base[2]) { - dev_err(pdev-dev, ioremap failed\n); - ret = -ENOMEM; - goto err2; + l3-l3_base[i] =

Re: [PATCH 2/5] drivers: bus: omap_l3: Convert to use devm_request_and_ioremap()

2014-03-04 Thread Peter Ujfalusi
On 03/04/2014 11:12 AM, Alexander Shiyan wrote: Вторник, 4 марта 2014, 11:01 +02:00 от Peter Ujfalusi peter.ujfal...@ti.com: We can then remove the iounmap() calls from probe and remove. Since the driver requests the resources via index we can do the mem resource request within a for loop.

RE: Help needed USB hub disconnected at resume

2014-03-04 Thread Marc Murphy
Hi Igor The Hub is a Microchip USB2513B-AEZG and is connected to EHCI controller port via the DUP_P and DUP_N pins. There is a reset applied to the chip at power on. If the reset signal is sw controllable, you might want to toggle it before the EHCI controller resumes. The reset

Re: [PATCH v2 7/7] v4l: ti-vpe: Add selection API in VPE driver

2014-03-04 Thread Hans Verkuil
Hi Archit, On 03/04/14 09:49, Archit Taneja wrote: Add selection ioctl ops. For VPE, cropping makes sense only for the input to VPE(or V4L2_BUF_TYPE_VIDEO_OUTPUT/MPLANE buffers) and composing makes sense only for the output of VPE(or V4L2_BUF_TYPE_VIDEO_CAPTURE/MPLANE buffers). For the

Re: [PATCH 2/5] drivers: bus: omap_l3: Convert to use devm_request_and_ioremap()

2014-03-04 Thread Peter Ujfalusi
On 03/04/2014 11:12 AM, Alexander Shiyan wrote: Вторник, 4 марта 2014, 11:01 +02:00 от Peter Ujfalusi peter.ujfal...@ti.com: We can then remove the iounmap() calls from probe and remove. Since the driver requests the resources via index we can do the mem resource request within a for loop.

Re: [PATCH v2 7/7] v4l: ti-vpe: Add selection API in VPE driver

2014-03-04 Thread Archit Taneja
Hi, On Tuesday 04 March 2014 03:10 PM, Hans Verkuil wrote: Hi Archit, On 03/04/14 09:49, Archit Taneja wrote: Add selection ioctl ops. For VPE, cropping makes sense only for the input to VPE(or V4L2_BUF_TYPE_VIDEO_OUTPUT/MPLANE buffers) and composing makes sense only for the output of VPE(or

Re: [PATCH v2 7/7] v4l: ti-vpe: Add selection API in VPE driver

2014-03-04 Thread Hans Verkuil
On 03/04/14 12:25, Archit Taneja wrote: I had a minor question about the selection API: Are the V4L2_SET_TGT_CROP/COMPOSE_DEFAULT and the corresponding 'BOUNDS' targets supposed to be used with VIDIOC_S_SELECTION? If so, what's the expect behaviour? No, those are read only in practice. So

Fwd: Ethernet controller not starting

2014-03-04 Thread Jon Ringle
On Tue, Mar 4, 2014 at 4:06 AM, Christian Riesch christian.rie...@omicron.at wrote: [cc'ed netdev and davinci-linux-open-source] --On March 03, 2014 19:39 -0500 Jon Ringle j...@ringle.org wrote: On Mon, Mar 3, 2014 at 6:43 PM, Rafael J. Wysocki r...@rjwysocki.net wrote: On Monday, March

[PATCH v3 0/5] drivers: bus: omap_l3: Conversion to devm_*

2014-03-04 Thread Peter Ujfalusi
Hi, Changes since v2: Comments from Alexander Shiyan addressed: - Do not check the return of platform_get_resource() - no need to do that - Use devm_ioremap_resource() instead devm_request_and_ioremap() Changes since v1: - Fixed Santosh's email address in the commit messages. Cleanup of

[PATCH v3 3/5] drivers: bus: omap_l3: Convert to use devm_request_irq()

2014-03-04 Thread Peter Ujfalusi
With this we can remove the free_irq() calls from probe and remove. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com Reviewed-by: Santosh Shilimkar santosh.shilim...@ti.com --- drivers/bus/omap_l3_noc.c | 23 +-- 1 file changed, 5 insertions(+), 18 deletions(-) diff --git

[PATCH v3 5/5] drivers: bus: omap_l3: Change pr_crit() to dev_err() when IRQ request fails

2014-03-04 Thread Peter Ujfalusi
Use dev_err() which will going to print the driver's name as well and the KERN_ERR level is sufficient in this case (we also print via dev_err when there is an error with the mem resources) Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com Reviewed-by: Santosh Shilimkar santosh.shilim...@ti.com

[PATCH v3 2/5] drivers: bus: omap_l3: Convert to use devm_ioremap_resource()

2014-03-04 Thread Peter Ujfalusi
We can then remove the iounmap() calls from probe and remove. Since the driver requests the resources via index we can do the mem resource request within a for loop. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/bus/omap_l3_noc.c | 59

[PATCH v3 4/5] drivers: bus: omap_l3: Remove the platform driver's remove function

2014-03-04 Thread Peter Ujfalusi
It is NOP after the devm_* conversion. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com Reviewed-by: Santosh Shilimkar santosh.shilim...@ti.com --- drivers/bus/omap_l3_noc.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/bus/omap_l3_noc.c b/drivers/bus/omap_l3_noc.c index

[PATCH v3 1/5] drivers: bus: omap_l3: Convert to use devm_kzalloc

2014-03-04 Thread Peter Ujfalusi
We can remove the kfree() calls from probe and remove. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com Reviewed-by: Santosh Shilimkar santosh.shilim...@ti.com --- drivers/bus/omap_l3_noc.c | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) diff --git

RE: [PATCH v2 7/7] v4l: ti-vpe: Add selection API in VPE driver

2014-03-04 Thread Kamil Debski
Hi Archit, From: Archit Taneja [mailto:arc...@ti.com] Sent: Tuesday, March 04, 2014 12:25 PM Hi, On Tuesday 04 March 2014 03:10 PM, Hans Verkuil wrote: Hi Archit, On 03/04/14 09:49, Archit Taneja wrote: Add selection ioctl ops. For VPE, cropping makes sense only for the input to

Re: [PATCH RFC 1/5] ASoC: tlv320aic31xx: Add basic codec driver implementation

2014-03-04 Thread Jyri Sarha
On 03/03/2014 08:34 AM, Mark Brown wrote: On Wed, Feb 26, 2014 at 11:14:25AM +0200, Jyri Sarha wrote: This commit adds a bare bones driver support for TLV320AIC31XX family audio codecs. The driver adds basic stereo playback trough headphone and speaker outputs and mono capture trough microphone

Re: Fwd: Ethernet controller not starting

2014-03-04 Thread Christian Riesch
Hi Jon, [Now also cc'ed Prabhakar Lad] --On March 04, 2014 07:34 -0500 Jon Ringle j...@ringle.org wrote: On Tue, Mar 4, 2014 at 4:06 AM, Christian Riesch christian.rie...@omicron.at wrote: [cc'ed netdev and davinci-linux-open-source] --On March 03, 2014 19:39 -0500 Jon Ringle

Re: Fwd: Ethernet controller not starting

2014-03-04 Thread Jon Ringle
On Tue, Mar 4, 2014 at 9:06 AM, Christian Riesch christian.rie...@omicron.at wrote: Hi Jon, [Now also cc'ed Prabhakar Lad] --On March 04, 2014 07:34 -0500 Jon Ringle j...@ringle.org wrote: On Tue, Mar 4, 2014 at 4:06 AM, Christian Riesch christian.rie...@omicron.at wrote: [cc'ed netdev

Re: [PATCH RESEND] mmc: omap_hsmmc: support more DT properties

2014-03-04 Thread Balaji T K
On Tuesday 04 March 2014 02:46 AM, Daniel Mack wrote: This should probably be done implicitly through mmc_of_parse(), but that doesn't play well along with the multi-slot model the hsmmc driver features. Hence, for now, do it manually. The properties are already documented in

[PATCH 12/18] ARM: OMAP3: PM: remove access to PRM_VOLTCTRL register

2014-03-04 Thread Tero Kristo
There is a solitary write to this register every wakeup from off-mode, which isn't doing anything, so remove it. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/pm34xx.c |4 1 file changed, 4 deletions(-) diff --git a/arch/arm/mach-omap2/pm34xx.c

[PATCH 14/18] ARM: OMAP2/3: PRM: split PRM header file to common and internal versions

2014-03-04 Thread Tero Kristo
Internal version contains the direct register access macros and should only be used by PRCM drivers. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/prm2xxx.c |2 +- arch/arm/mach-omap2/prm2xxx_3xxx.c |2 +- arch/arm/mach-omap2/prm2xxx_3xxx.h

[PATCH 09/18] ARM: OMAP3: PRM: add API for saving PRM scratchpad contents

2014-03-04 Thread Tero Kristo
This isolates the PRM register access within the PRM driver. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/control.c | 11 ++- arch/arm/mach-omap2/prm3xxx.c |9 + arch/arm/mach-omap2/prm3xxx.h |1 + 3 files changed, 12 insertions(+), 9 deletions(-)

[PATCH 05/18] ARM: OMAP3: PRM: move iva reset to PRM driver

2014-03-04 Thread Tero Kristo
This is a more proper isolation of the code. Done in preparation of making PRM an individual driver. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/pm34xx.c | 49 + arch/arm/mach-omap2/prm3xxx.c | 45

[PATCH 07/18] ARM: OMAP2/3: CM: remove direct register access macros from common header

2014-03-04 Thread Tero Kristo
Done in preparation to move CM to be a driver of its own. This patch causes currently a build breakage which will be addressed in next patches. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/cm2xxx.c |1 + arch/arm/mach-omap2/cm2xxx_3xxx.h | 48

[PATCH 04/18] ARM: OMAP3: PRM: move prcm wakeup helper to prm driver

2014-03-04 Thread Tero Kristo
Done in preparation to make the prm an individual driver. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/pm34xx.c | 60 + arch/arm/mach-omap2/prm3xxx.c | 53 arch/arm/mach-omap2/prm3xxx.h |1

[PATCH 02/18] ARM: OMAP2+: prcm: add omap_test_timeout to prcm-common.h

2014-03-04 Thread Tero Kristo
Done in preparation to move cm/prm to drivers. These will still use omap_test_timeout, but will not have access to common.h header under mach-omap2 anymore. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/prcm-common.h | 20 1 file changed, 20

[PATCH 15/18] ARM: OMAP4+: PRM: make prm register access internal to PRM driver only

2014-03-04 Thread Tero Kristo
Removed exported prototypes from the public header file for the direct register access. Also made a new driver API for clearing mpuss previous logic powerstate so that the register APIs are no longer needed. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/omap-mpuss-lowpower.c

[PATCH 17/18] ARM: OMAP3: PRM: move modem reset and iva2 idle to PRM driver

2014-03-04 Thread Tero Kristo
Done in preparation to move PRM into its own driver. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/pm34xx.c | 15 --- arch/arm/mach-omap2/prm3xxx.c |7 +++ 2 files changed, 7 insertions(+), 15 deletions(-) diff --git a/arch/arm/mach-omap2/pm34xx.c

[PATCH 08/18] ARM: OMAP3: PRM: add API for checking and clearing cold reset status

2014-03-04 Thread Tero Kristo
This isolates the PRM register access within the PRM driver. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/control.c |6 +- arch/arm/mach-omap2/prm3xxx.c | 20 arch/arm/mach-omap2/prm3xxx.h |1 + 3 files changed, 22 insertions(+), 5

[PATCH 01/18] ARM: OMAP3: CM: remove a few OMAP34XX_CM_REGADDR defines

2014-03-04 Thread Tero Kristo
Remove a few OMAP34XX_CM_REGADDR defines and replace these with offset based register accesses instead. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/cm3xxx.c | 12 arch/arm/mach-omap2/cm3xxx.h |6 ++ 2 files changed, 10 insertions(+), 8 deletions(-)

[PATCH 11/18] ARM: OMAP24xx: PRM: move PRM init code within PRM driver from PM core

2014-03-04 Thread Tero Kristo
Done to isolate the PRM as its own driver. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/pm24xx.c | 34 + arch/arm/mach-omap2/prm2xxx.c | 42 + arch/arm/mach-omap2/prm2xxx.h |1 + 3 files

[PATCH 00/18] ARM: OMAP2+: CM/PRM cleanup set

2014-03-04 Thread Tero Kristo
Hi, This set cleans up the CM/PRM codebase a bit, removing the need for direct CM/PRM register access macros outside CM/PRM drivers. This is done in preparation to isolate these drivers into its own driver directory. Currently my plan is to create a single PRCM driver, which will contain both,

[PATCH 10/18] ARM: OMAP24xx: PRM: add API for clearing wakeup status bits

2014-03-04 Thread Tero Kristo
This helps to isolate the PRM into its own driver. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/pm24xx.c | 31 +-- arch/arm/mach-omap2/prm2xxx.c | 18 ++ arch/arm/mach-omap2/prm2xxx.h |1 + 3 files changed, 32

[PATCH 03/18] ARM: OMAP2/3: CM: remove some external dependencies

2014-03-04 Thread Tero Kristo
Done in preparation to move the CM driver to its own driver folder. These drivers will not have access to functionality under mach-omap2 anymore. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/cm2xxx.c | 15 ++- arch/arm/mach-omap2/cm3xxx.c | 13 +

[PATCH 06/18] ARM: OMAP3: PRM: move modem reset to PRM driver

2014-03-04 Thread Tero Kristo
This is a more proper isolation of the code. Done in preparation of making PRM an individual driver. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/pm34xx.c |5 + arch/arm/mach-omap2/prm3xxx.c | 15 +++ arch/arm/mach-omap2/prm3xxx.h |1 + 3 files

[PATCH 13/18] ARM: OMAP3: PRM: move PRM init code from PM core to the driver

2014-03-04 Thread Tero Kristo
Helps to isolate the PRM driver. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/pm34xx.c | 71 +--- arch/arm/mach-omap2/prm3xxx.c | 90 + arch/arm/mach-omap2/prm3xxx.h |1 + 3 files changed, 92

[PATCH 16/18] ARM: OMAP3: control: add API for setting up the modem pads

2014-03-04 Thread Tero Kristo
This patch moves the functionality from PM core to control driver. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/control.c | 26 ++ arch/arm/mach-omap2/control.h |1 + arch/arm/mach-omap2/pm34xx.c | 15 +-- 3 files changed, 28

[PATCH 18/18] ARM: OMAP3: control: isolate control module init to its own function

2014-03-04 Thread Tero Kristo
Control module related PM initializations are now moved within control module driver. Done in preparation to isolate the code to its own driver. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/control.c | 19 +-- arch/arm/mach-omap2/control.h |3 +--

Re: [PATCH 02/12] phy: omap-control: Update DT binding information

2014-03-04 Thread Tony Lindgren
* Roger Quadros rog...@ti.com [140304 01:17]: Hi Tony, On 03/03/2014 09:02 PM, Tony Lindgren wrote: * Roger Quadros rog...@ti.com [140303 07:10]: Move omap-control binding information to the right location. Signed-off-by: Roger Quadros rog...@ti.com ---

Re: [PATCHv3 00/13] OMAP IOMMU DT adaptation for 3.15

2014-03-04 Thread Suman Anna
On 03/04/2014 10:04 AM, Joerg Roedel wrote: On Fri, Feb 28, 2014 at 03:00:00PM -0800, Tony Lindgren wrote: * Suman Anna s-a...@ti.com [140228 12:46]: Hi Joerg, Tony, This is an updated series of the OMAP IOMMU DT adaptation intended for 3.15 merge window, addressing the comments from the v2

Re: [PATCHv3 00/13] OMAP IOMMU DT adaptation for 3.15

2014-03-04 Thread Suman Anna
On 03/04/2014 10:04 AM, Joerg Roedel wrote: On Fri, Feb 28, 2014 at 03:00:00PM -0800, Tony Lindgren wrote: * Suman Anna s-a...@ti.com [140228 12:46]: Hi Joerg, Tony, This is an updated series of the OMAP IOMMU DT adaptation intended for 3.15 merge window, addressing the comments from the v2

Re: [PATCHv2 13/14] ARM: OMAP24xx: clock: remove legacy clock data

2014-03-04 Thread Tony Lindgren
* Tero Kristo t-kri...@ti.com [140304 01:22]: This is no longer needed as clock data is provided through DT. Looks like there's a new error even before applying this patch in the series as I'm now getting the following oops on n8x0. So cannot test this patch yet. Regards, Tony [0.00]

Re: [PATCHv4 4/7] hwspinlock/core: add common OF helpers

2014-03-04 Thread Suman Anna
Hi Ohad, On 03/02/2014 02:19 PM, Bjorn Andersson wrote: On Sat, Mar 1, 2014 at 9:14 PM, Ohad Ben-Cohen o...@wizery.com wrote: On Mon, Feb 10, 2014 at 9:14 PM, Suman Anna s-a...@ti.com wrote: On 02/07/2014 04:49 PM, Bjorn Andersson wrote: It seems to be standard practice to pass the error

Re: [PATCH 1/2] ARM: dts: Add support for OMAP4 Gumstix DuoVero/Parlor

2014-03-04 Thread Tony Lindgren
* Florian Vaussard florian.vauss...@epfl.ch [140303 02:12]: Hi Tony, Benoit, On 02/24/2014 06:07 PM, Florian Vaussard wrote: Gumstix DuoVero is an OMAP4430-based Computer On Module. Parlor is one of the available expansion board. Tested features: - GPMC ethernet - HSUSB2 and OTG

Re: [PATCHv2 13/14] ARM: OMAP24xx: clock: remove legacy clock data

2014-03-04 Thread Tero Kristo
On 03/04/2014 07:32 PM, Tony Lindgren wrote: * Tero Kristo t-kri...@ti.com [140304 01:22]: This is no longer needed as clock data is provided through DT. Looks like there's a new error even before applying this patch in the series as I'm now getting the following oops on n8x0. So cannot test

RE: Help needed USB hub disconnected at resume

2014-03-04 Thread Marc Murphy
-Original Message- From: linux-omap-ow...@vger.kernel.org [mailto:linux-omap- ow...@vger.kernel.org] On Behalf Of Igor Grinberg Sent: 04 March 2014 06:44 To: Marc Murphy; Roger Quadros; linux-omap@vger.kernel.org Subject: Re: Help needed USB hub disconnected at resume On 03/03/14

Re: Help needed USB hub disconnected at resume

2014-03-04 Thread Felipe Balbi
On Tue, Mar 04, 2014 at 11:05:58PM +, Marc Murphy wrote: -Original Message- From: Felipe Balbi [mailto:ba...@ti.com] Sent: 04 March 2014 22:44 To: Marc Murphy Cc: 'Igor Grinberg'; Roger Quadros; linux-omap@vger.kernel.org Subject: Re: Help needed USB hub disconnected at

Re: [PATCH v2] crypto: omap-sham: kmap SG pages before appending

2014-03-04 Thread Fernandes, Joel
On Mar 4, 2014, at 8:00 PM, Herbert Xu herb...@gondor.apana.org.au wrote: On Tue, Mar 04, 2014 at 12:30:54PM -0600, Joel Fernandes wrote: HIGHMEM pages may not be mapped so we must kmap them before accessing. This resolves a random OOPs error that was showing up during OpenSSL SHA tests.