[PATCH 0/3] OMAP2+: hwmod: Add support to parse clock info from DT

2013-07-23 Thread Rajendra Nayak
With all of OMAP clock data now moving to DT, its possible to pass the main or functional clock and all optional clocks information for a device from DT instead of having these as part of hwmod static data in the kernel. This patch series is based on 'v3' of omap4 clock movement to DT patches [1]

[PATCH 1/3] ARM: OMAP2+: Add support to parse 'main_clk' info from DT

2013-07-23 Thread Rajendra Nayak
With clocks for OMAP moving to DT, its now possible to pass the 'main_clk' data for each device from DT instead of having it in hwmod. Signed-off-by: Rajendra Nayak rna...@ti.com --- arch/arm/mach-omap2/omap_hwmod.c | 34 +- 1 file changed, 21 insertions(+), 13

[PATCH 3/3] ARM: OMAP4: dts: Add main and optional clock data into DT

2013-07-23 Thread Rajendra Nayak
With support to parse clock data from DT, move all main and optional clock information from hwmod to DT. We still retain clocks in hwmod for devices which do not have a DT node. Signed-off-by: Rajendra Nayak rna...@ti.com --- arch/arm/boot/dts/omap4.dtsi | 100

[PATCH 2/3] ARM: OMAP2+: Add support to parse optional clk info from DT

2013-07-23 Thread Rajendra Nayak
With clocks for OMAP moving to DT, its now possible to pass all optional clock data for each device from DT instead of having it in hwmod. Signed-off-by: Rajendra Nayak rna...@ti.com --- arch/arm/mach-omap2/omap_hwmod.c | 66 -- 1 file changed, 64

Re: OMAP2430 SDP boot broken after Linus' rmk merge

2013-07-23 Thread Rajendra Nayak
On Tuesday 23 July 2013 01:37 AM, Paul Walmsley wrote: On Mon, 22 Jul 2013, Russell King - ARM Linux wrote: Bear in mind that I'm almost at the point of not boot-testing anything I sent to Linus because of the uselessness of the SDP4430 board now that it's DT only - the only platform which

Re: [PATCH] ARM: Do not run dummy_flush_tlb_a15_erratum() on non-Cortex-A15

2013-07-23 Thread Paul Walmsley
On Tue, 23 Jul 2013, Fabio Estevam wrote: From: Fabio Estevam fabio.este...@freescale.com Commit 93dc688 (ARM: 7684/1: errata: Workaround for Cortex-A15 erratum 798181 (TLBI/DSB operations)) causes the following undefined instruction error on a mx53 (Cortex-A8): Internal error: Oops -

Re: OMAP2430 SDP boot broken after Linus' rmk merge

2013-07-23 Thread Paul Walmsley
Hi Rajendra, On Tue, 23 Jul 2013, Rajendra Nayak wrote: On Tuesday 23 July 2013 01:37 AM, Paul Walmsley wrote: On Mon, 22 Jul 2013, Russell King - ARM Linux wrote: Bear in mind that I'm almost at the point of not boot-testing anything I sent to Linus because of the uselessness of the

[PATCHv4 08/33] ARM: dts: omap4 clock data

2013-07-23 Thread Tero Kristo
This patch creates a unique node for each clock in the OMAP4 power, reset and clock manager (PRCM). OMAP443x and OMAP446x have slightly different clock tree which is taken into account in the data. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/boot/dts/omap443x-clocks.dtsi | 17 +

[PATCHv4 09/33] CLK: omap: add omap4 clock init file

2013-07-23 Thread Tero Kristo
clk-44xx.c now contains the clock init functionality for omap4, including DT clock registration and adding of static clkdev entries. Signed-off-by: Tero Kristo t-kri...@ti.com --- drivers/clk/omap/clk-44xx.c | 118 +++ 1 file changed, 118 insertions(+)

[PATCHv4 02/33] clk: omap: introduce clock driver

2013-07-23 Thread Tero Kristo
Parses OMAP clock data from DT and registers those clocks with the clock framework. dt_omap_clk_init must be called early during boot for timer initialization so it is exported and called from the existing clock code instead of probing like a real driver. Based on initial work done by Mike

[PATCHv4 06/33] CLK: omap: add autoidle support

2013-07-23 Thread Tero Kristo
OMAP clk driver now routes some of the basic clocks through own registration routine to allow autoidle support. This routine just checks a couple of device node properties and adds autoidle support if required, and just passes the registration forward to basic clocks. Signed-off-by: Tero Kristo

[PATCHv4 00/33] ARM: OMAP: clock conversion to DT

2013-07-23 Thread Tero Kristo
Hi, Changes compared to previous version: - Clock init files moved from mach-omap2/ to drivers/clk/omap/ - AM33xx support added [patches 15-20] - OMAP3 support added [patches 21-29] - DRA7 APLL support added (thanks Keerthy) [patches 30-33] Test branch on top of 3.11-rc1 available here:

[PATCHv4 07/33] CLK: omap: add support for OMAP gate clock

2013-07-23 Thread Tero Kristo
This node adds support for a clock node which allows control to the clockdomain enable / disable. Signed-off-by: Tero Kristo t-kri...@ti.com --- drivers/clk/omap/Makefile |2 +- drivers/clk/omap/clk.c|1 + drivers/clk/omap/gate.c | 88 +

[PATCHv4 01/33] CLK: clkdev: add support for looking up clocks from DT

2013-07-23 Thread Tero Kristo
clk_get_sys / clk_get can now find clocks from device-tree. If a DT clock is found, an entry is added to the clk_lookup list also for subsequent searches. Signed-off-by: Tero Kristo t-kri...@ti.com Cc: Russell King li...@arm.linux.org.uk --- drivers/clk/clkdev.c | 32

[PATCHv4 03/33] CLK: OMAP4: Add DPLL clock support

2013-07-23 Thread Tero Kristo
The OMAP clock driver now supports DPLL clock type. This patch also adds support for DT DPLL nodes. Signed-off-by: Tero Kristo t-kri...@ti.com --- drivers/clk/omap/Makefile |2 +- drivers/clk/omap/clk.c|1 + drivers/clk/omap/dpll.c | 295

[PATCHv4 04/33] CLK: omap: move part of the machine specific clock header contents to driver

2013-07-23 Thread Tero Kristo
Some of the clock.h contents are needed by the new OMAP clock driver, including dpll_data and clk_hw_omap. Thus, move these to the generic omap header file which can be accessed by the driver. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/clock.h | 151

[PATCHv4 14/33] CLK: omap: add dra7 clock init file

2013-07-23 Thread Tero Kristo
clk-7xx.c now contains the clock init functionality for dra7, including DT clock registration and adding of static clkdev entries. Signed-off-by: Tero Kristo t-kri...@ti.com --- drivers/clk/omap/Makefile |2 +- drivers/clk/omap/clk-7xx.c | 67

[PATCHv4 21/33] CLK: OMAP: DPLL: add omap3 dpll support

2013-07-23 Thread Tero Kristo
OMAP3 has slightly different DPLLs from those compared to OMAP4. Modified code for the same. Signed-off-by: Tero Kristo t-kri...@ti.com --- drivers/clk/omap/dpll.c | 96 +-- 1 file changed, 85 insertions(+), 11 deletions(-) diff --git

[PATCHv4 17/33] CLK: DT: add support for set-rate-parent flag

2013-07-23 Thread Tero Kristo
Adding set-rate-parent to clock node now allows a node to forward clk_set_rate request to its parent clock. Signed-off-by: Tero Kristo t-kri...@ti.com --- drivers/clk/clk-divider.c |6 +- drivers/clk/clk-fixed-factor.c |6 +- drivers/clk/clk-gate.c |8 ++--

[PATCHv4 18/33] ARM: dts: am33xx clock data

2013-07-23 Thread Tero Kristo
This patch creates a unique node for each clock in the AM33xx power, reset and clock manager (PRCM). Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/boot/dts/am33xx-clocks.dtsi | 663 ++ arch/arm/boot/dts/am33xx.dtsi|7 + 2 files changed, 670

[PATCHv4 22/33] CLK: OMAP: update gate clock setup for OMAP3

2013-07-23 Thread Tero Kristo
OMAP3 gate clocks are handled through the clk driver now. Basic gate clock can't be used as the OMAP3 gate clocks have some special features, namely the idle status linkage which is on separate register. Signed-off-by: Tero Kristo t-kri...@ti.com --- drivers/clk/omap/gate.c | 27

[PATCHv4 12/33] CLK: omap: add omap5 clock init file

2013-07-23 Thread Tero Kristo
clk-54xx.c now contains the clock init functionality for omap5, including DT clock registration and adding of static clkdev entries. Signed-off-by: Tero Kristo t-kri...@ti.com --- drivers/clk/omap/Makefile |2 +- drivers/clk/omap/clk-54xx.c | 58

[PATCHv4 11/33] ARM: dts: omap5 clock data

2013-07-23 Thread Tero Kristo
This patch creates a unique node for each clock in the OMAP5 power, reset and clock manager (PRCM). Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/boot/dts/omap54xx-clocks.dtsi | 1416 1 file changed, 1416 insertions(+) create mode 100644

[PATCHv4 16/33] CLK: OMAP: DPLL: do not of_iomap NULL autoidle register

2013-07-23 Thread Tero Kristo
AM33xx series SoCs do not have autoidle support, and for these the autoidle register is marked as NULL. Check against a NULL pointer and do not attempt to of_iomap in this case, as this just creates a bogus pointer and causes a kernel crash during boot. Signed-off-by: Tero Kristo t-kri...@ti.com

[PATCHv4 15/33] CLK: OMAP: DPLL: add support for DT property ti,dpll-no-gate

2013-07-23 Thread Tero Kristo
AM335x has DPLL clocks that should never be attempted to be gated. Adding ti,dpll-no-gate property for them handles this situation. Signed-off-by: Tero Kristo t-kri...@ti.com --- drivers/clk/omap/dpll.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/clk/omap/dpll.c

[PATCHv4 26/33] CLK: omap: gate: add support for OMAP36xx dpllx_mx_ck:s

2013-07-23 Thread Tero Kristo
OMAP3630 dpll3_m3_ck, dpll4_m2_ck, dpll4_m3_ck, dpll4_m4_ck, dpll4_m5_ck dpll4_m6_ck dividers gets loaded with reset value after their respective PWRDN bits are set. Any dummy write (Any other value different from the Read value) to the corresponding CM_CLKSEL register will refresh the dividers.

[PATCHv4 13/33] ARM: dts: dra7 clock data

2013-07-23 Thread Tero Kristo
This patch creates a unique node for each clock in the DRA7 power, reset and clock manager (PRCM). TODO: apll_pcie clock node is still a dummy in this version, and proper support for the APLL should be added. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/boot/dts/dra7xx-clocks.dtsi |

[PATCHv4 30/33] clk: OMAP: DRA7: Add APLL support

2013-07-23 Thread Tero Kristo
From: Keerthy j-keer...@ti.com The patch adds support for DRA7 PCIe APLL. The APLL sources the optional functional clocks for PCIe module. APLL stands for Analog PLL. This is different when comapred with DPLL meaning Digital PLL, the phase detection is done using an analog circuit.

[PATCHv4 27/33] ARM: OMAP3: hwmod: initialize clkdm from clkdm_name

2013-07-23 Thread Tero Kristo
DT clocks are mostly missing clkdm info now, and this causes an issue with counter32k which makes its slave idlemode wrong and prevents core idle. Fixed by initializing the hwmod clkdm pointers for omap3 also which makes sure the clkdm flag matching logic works properly. This patch also changes

[PATCHv4 25/33] ARM: OMAP: hwmod: fix an incorrect clk type cast with _get_clkdm

2013-07-23 Thread Tero Kristo
If the main clock for a hwmod is of basic clock type, it is illegal to type cast this to clk_hw_omap and will result in bogus data. Fixed by checking the clock flags before attempting the type cast. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/omap_hwmod.c |2 ++ 1 file

[PATCHv4 33/33] clk: DTS: DRA7: Add PCIe related clock nodes

2013-07-23 Thread Tero Kristo
From: Keerthy j-keer...@ti.com This patch adds optfclk_pciephy_clk and optfclk_pciephy_div_clk which are used by PCIe phy. It also adds a mux clock to choose the source of optfclk_pciephy_div_clk clock. Signed-off-by: Keerthy j-keer...@ti.com --- arch/arm/boot/dts/dra7xx-clocks.dtsi | 24

[PATCHv4 20/33] ARM: AM33xx: remove old clock data and link in new clock init code

2013-07-23 Thread Tero Kristo
AM33xx clocks have now been moved to DT, thus remove the old data file and use the new init code under OMAP clock driver. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/Makefile |1 - arch/arm/mach-omap2/cclock33xx_data.c | 1059 -

[PATCHv4 24/33] CLK: OMAP: move some defines from machine to driver header

2013-07-23 Thread Tero Kristo
This is done in preparation for adding support for OMAP3 clocks. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/clock.h | 10 -- include/linux/clk/omap.h| 16 2 files changed, 16 insertions(+), 10 deletions(-) diff --git

[PATCHv4 31/33] ARM: dts: clk: Add apll related clocks

2013-07-23 Thread Tero Kristo
From: Keerthy j-keer...@ti.com The patch adds a mux node to choose the parent of apll_pcie_ck node. Signed-off-by: Keerthy j-keer...@ti.com --- arch/arm/boot/dts/dra7xx-clocks.dtsi | 19 +++ 1 file changed, 15 insertions(+), 4 deletions(-) diff --git

[PATCHv4 32/33] clk: OMAP: DRA7: Change apll_pcie_m2_ck to fixed factor clock

2013-07-23 Thread Tero Kristo
From: Keerthy j-keer...@ti.com This patch changes apll_pcie_m2_ck to fixed factor clock as there are no configurable divider associated to m2. Signed-off-by: Keerthy j-keer...@ti.com --- arch/arm/boot/dts/dra7xx-clocks.dtsi |9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff

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

2013-07-23 Thread Tomasz Figa
Hi Alan, On Monday 22 of July 2013 10:44:39 Alan Stern wrote: On Mon, 22 Jul 2013, Kishon Vijay Abraham I wrote: The PHY and the controller it is attached to are both physical devices. The connection between them is hardwired by the system manufacturer and cannot be

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

2013-07-23 Thread Tomasz Figa
[Fixed address of devicetree mailing list and added more people on CC.] For reference, full thread can be found under following link: http://thread.gmane.org/gmane.linux.ports.arm.kernel/252813 Best regards, Tomasz On Tuesday 23 of July 2013 09:29:32 Tomasz Figa wrote: Hi Alan, On Monday 22

Re: [PATCHv4 00/33] ARM: OMAP: clock conversion to DT

2013-07-23 Thread Tero Kristo
Hrmph, Seems like the old devicetree list was terminated yesterday, so if you reply to this you will get some bounces. Sorry about that. -Tero On 07/23/2013 10:19 AM, Tero Kristo wrote: Hi, Changes compared to previous version: - Clock init files moved from mach-omap2/ to

Re: [PATCH 1/1] drivers: net: cpsw: add support to show hw stats via ethtool

2013-07-23 Thread Mugunthan V N
On 7/22/2013 10:35 PM, Ben Hutchings wrote: On Mon, 2013-07-22 at 14:07 +0530, Mugunthan V N wrote: Add support to show CPSW hardware statistics to user via ethtool so user can find if there were any error reported by hardware or the system is over loaded duing high data rate transfer.

Re: OMAP2430 SDP boot broken after Linus' rmk merge

2013-07-23 Thread Rajendra Nayak
On Tuesday 23 July 2013 12:37 PM, Paul Walmsley wrote: Hi Rajendra, On Tue, 23 Jul 2013, Rajendra Nayak wrote: On Tuesday 23 July 2013 01:37 AM, Paul Walmsley wrote: On Mon, 22 Jul 2013, Russell King - ARM Linux wrote: Bear in mind that I'm almost at the point of not boot-testing

[PATCH 0/2] OMAP: Panda DVI fix and a cleanup

2013-07-23 Thread Tomi Valkeinen
Hi Tony, Here's a fix for 3.11 that makes EDID read for DVI work again. I also included a cleanup patch that removes the non-DT support functions that are no longer called from anywhere. It's not a fix, but as we're in quite early rcs, I thought it would be nice to remove the dead code. Up to

[PATCH 2/2] ARM: OMAP2+: Remove legacy DSS initialization for omap4

2013-07-23 Thread Tomi Valkeinen
This is no longer needed as omap4 is now booted using device tree. Signed-off-by: Tomi Valkeinen tomi.valkei...@ti.com --- arch/arm/mach-omap2/dss-common.c | 47 arch/arm/mach-omap2/dss-common.h | 2 -- 2 files changed, 49 deletions(-) diff --git

[PATCH 1/2] ARM: OMAP: dss-common: fix Panda's DVI DDC channel

2013-07-23 Thread Tomi Valkeinen
Panda's DVI connector's DDC pins are connected to OMAP's third i2c bus. With non-DT, the bus number was 3, and that is what is used in the dss-common.c which contains the platform data for Panda's DVI. However, with DT, the bus number is 2. As we now only have DT boot for Panda, we have to change

Re: [PATCH 6/6] USB: ehci-omap: Implement suspend/resume

2013-07-23 Thread Roger Quadros
On 07/22/2013 06:18 PM, Alan Stern wrote: On Mon, 22 Jul 2013, Roger Quadros wrote: Right, I understand it now. How does the below code look? +static int omap_ehci_suspend(struct device *dev) +{ + struct usb_hcd *hcd = dev_get_drvdata(dev); + bool do_wakeup =

Re: [PATCH] omapfb: In omapfb_probe return -EPROBE_DEFER when display driver is not loaded yet

2013-07-23 Thread Tomi Valkeinen
On 13/07/13 21:27, Pavel Machek wrote: On Wed 2013-07-10 15:08:59, Pali Rohár wrote: * On RX-51 probing for acx565akm driver is later then for omapfb which cause that omapfb probe fail and framebuffer is not working * EPROBE_DEFER causing that kernel try to probe for omapfb later again which

[net-next PATCH v2 1/1] drivers: net: cpsw: add support to show hw stats via ethtool

2013-07-23 Thread Mugunthan V N
Add support to show CPSW hardware statistics to user via ethtool so user can find if there were any error reported by hardware or the system is over loaded duing high data rate transfer. Signed-off-by: Mugunthan V N mugunthan...@ti.com --- Changes from initial version * Change hw_stats variable

Re: OMAP2430 SDP boot broken after Linus' rmk merge

2013-07-23 Thread Jonathan Austin
Hi Paul, On 22/07/13 19:07, Paul Walmsley wrote: Hi, After Linus's commit fb2af0020a51709ad87ea8055c325d3fbde04158 (Merge branch 'for-linus' of git://git.linaro.org/people/rmk/linux-arm), the OMAP2430 SDP here stopped booting. Here's the bootlog at the commit before the merge, commit

Re: [PATCH 6/6] USB: ehci-omap: Implement suspend/resume

2013-07-23 Thread Alan Stern
On Tue, 23 Jul 2013, Roger Quadros wrote: + pm_runtime_get_sync(dev); + ehci_resume(hcd, false); + ret = ehci_suspend(hcd, do_wakeup); + pm_runtime_put_sync(dev); It would be better to call pm_runtime_resume(dev) at the start

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

2013-07-23 Thread Alan Stern
On Tue, 23 Jul 2013, Tomasz Figa wrote: On Tuesday 23 of July 2013 09:29:32 Tomasz Figa wrote: Hi Alan, Thanks for helping to clarify the issues here. Okay. Are PHYs _always_ platform devices? They can be i2c, spi or any other device types as well. In those other cases, presumably

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

2013-07-23 Thread Tomasz Figa
On Tuesday 23 of July 2013 10:37:05 Alan Stern wrote: On Tue, 23 Jul 2013, Tomasz Figa wrote: On Tuesday 23 of July 2013 09:29:32 Tomasz Figa wrote: Hi Alan, Thanks for helping to clarify the issues here. Okay. Are PHYs _always_ platform devices? They can be i2c, spi or any

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

2013-07-23 Thread Kishon Vijay Abraham I
Hi, On Tuesday 23 July 2013 08:07 PM, Alan Stern wrote: On Tue, 23 Jul 2013, Tomasz Figa wrote: On Tuesday 23 of July 2013 09:29:32 Tomasz Figa wrote: Hi Alan, Thanks for helping to clarify the issues here. Okay. Are PHYs _always_ platform devices? They can be i2c, spi or any other

[PATCH 1/4] mfd: twl6030-irq: migrate to IRQ threaded handler

2013-07-23 Thread Grygorii Strashko
From: Naga Venkata Srikanth V vnv.srika...@samsung.com 1) Removed request_irq() and replaced it with request_threaded_irq(). 2) Removed generic_handle_irq() and replaced it with handle_nested_irq(). Handling of these interrupts is nested, as we are handling an interrupt (for e.g rtc, mmc1)

[PATCH 0/4] mfd: twl6030-irq: rework and add twl6032 support

2013-07-23 Thread Grygorii Strashko
This patch series intorduces twl6030-irq module rework to use Threaded IRQ and linear irq_domain, and adds support for PMIC TWL6032 IRQs. After this patch series TWL6030/6032 IRQs will be supported only for DT boot mode. Based on v3.11-rc1 Tested generation of RTC_ALARM(3) and PWRON(0) IRQs on

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

2013-07-23 Thread Thierry Reding
On Fri, Jul 19, 2013 at 01:29:13PM +0200, Laurent Pinchart wrote: Hi Stephen, On Thursday 18 July 2013 10:55:56 Stephen Warren wrote: 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.

[PATCH 4/4] mfd: twl6030-irq: Add interrupt mapping table for the twl6032

2013-07-23 Thread Grygorii Strashko
From: Oleksandr Dmytryshyn oleksandr.dmytrys...@ti.com This patch adds interrupt mapping table for the twl6032. Signed-off-by: Oleksandr Dmytryshyn oleksandr.dmytrys...@ti.com Signed-off-by: Grygorii Strashko grygorii.stras...@ti.com --- drivers/mfd/twl6030-irq.c | 49

[PATCH v2 0/3] Input: omap-keypad: Convert to threaded IRQ and cleanup

2013-07-23 Thread Illia Smyrnov
Replace unclear hardcoded values with bit field, convert to threaded IRQ and clear pending interrupts when open the keypad. Based on top of v3.11-rc2. Tested on OMAP4 SDP. Illia Smyrnov (3): Input: omap-keypad: Cleanup - use bitfiled instead of hardcoded values Input: omap-keypad:

[PATCH v2 3/3] Input: omap-keypad: Clear pending interrupts on open

2013-07-23 Thread Illia Smyrnov
Clear pending interrupts when open keypad. Signed-off-by: Illia Smyrnov illia.smyr...@ti.com --- drivers/input/keyboard/omap4-keypad.c |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/input/keyboard/omap4-keypad.c b/drivers/input/keyboard/omap4-keypad.c index

[PATCH 3/4] mfd: twl6030-irq: convert to use linear irq_domain

2013-07-23 Thread Grygorii Strashko
Since the TWL6030 PMIC is used with OMAP4 SoCs only and OMAP4 legacy boot is dropped there are no needs to allocate the range of IRQ descriptors during system boot to support TWL6030 IRQs. Hence, convert it to use linear irq_domain and move IRQ configuration in .map()/.unmap() callbacks of

[PATCH v2 2/3] Input: omap-keypad: Convert to threaded IRQ

2013-07-23 Thread Illia Smyrnov
Convert to use threaded IRQ. Cc: Felipe Balbi ba...@ti.com Signed-off-by: Illia Smyrnov illia.smyr...@ti.com --- drivers/input/keyboard/omap4-keypad.c | 29 - 1 files changed, 20 insertions(+), 9 deletions(-) diff --git a/drivers/input/keyboard/omap4-keypad.c

[PATCH 2/4] mfd: twl6030-irq: add error check when IRQs are masked initially

2013-07-23 Thread Grygorii Strashko
Add a missed check for errors when TWL IRQs are masked initially on probe and report an error in case of failure. Signed-off-by: Grygorii Strashko grygorii.stras...@ti.com --- drivers/mfd/twl6030-irq.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git

[PATCH v2 1/3] Input: omap-keypad: Cleanup - use bitfiled instead of hardcoded values

2013-07-23 Thread Illia Smyrnov
Use bitfiled instead of hardcoded values to set KBD_CTRL, use BIT macro, remove unused defines. Signed-off-by: Illia Smyrnov illia.smyr...@ti.com --- drivers/input/keyboard/omap4-keypad.c | 25 +++-- 1 files changed, 11 insertions(+), 14 deletions(-) diff --git

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

2013-07-23 Thread Greg KH
On Tue, Jul 23, 2013 at 08:48:24PM +0530, Kishon Vijay Abraham I wrote: Hi, On Tuesday 23 July 2013 08:07 PM, Alan Stern wrote: On Tue, 23 Jul 2013, Tomasz Figa wrote: On Tuesday 23 of July 2013 09:29:32 Tomasz Figa wrote: Hi Alan, Thanks for helping to clarify the issues here.

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

2013-07-23 Thread Kishon Vijay Abraham I
Hi Greg, On Tuesday 23 July 2013 09:48 PM, Greg KH wrote: On Tue, Jul 23, 2013 at 08:48:24PM +0530, Kishon Vijay Abraham I wrote: Hi, On Tuesday 23 July 2013 08:07 PM, Alan Stern wrote: On Tue, 23 Jul 2013, Tomasz Figa wrote: On Tuesday 23 of July 2013 09:29:32 Tomasz Figa wrote: Hi Alan,

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

2013-07-23 Thread Greg KH
On Tue, Jul 23, 2013 at 09:58:34PM +0530, Kishon Vijay Abraham I wrote: Hi Greg, On Tuesday 23 July 2013 09:48 PM, Greg KH wrote: On Tue, Jul 23, 2013 at 08:48:24PM +0530, Kishon Vijay Abraham I wrote: Hi, On Tuesday 23 July 2013 08:07 PM, Alan Stern wrote: On Tue, 23 Jul 2013,

[PATCH] dma: edma: add device_slave_caps() support

2013-07-23 Thread Joel Fernandes
Implement device_slave_caps(). EDMA has a limited number of slots. Slave drivers such as omap_hsmmc will query the driver to make sure they don't pass in more than these many scatter segments. Signed-off-by: Joel Fernandes jo...@ti.com --- Vinod, or Dan- If this patch looks ok, can you please

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

2013-07-23 Thread Tomasz Figa
On Tuesday 23 of July 2013 09:18:46 Greg KH wrote: On Tue, Jul 23, 2013 at 08:48:24PM +0530, Kishon Vijay Abraham I wrote: Hi, On Tuesday 23 July 2013 08:07 PM, Alan Stern wrote: On Tue, 23 Jul 2013, Tomasz Figa wrote: On Tuesday 23 of July 2013 09:29:32 Tomasz Figa wrote: Hi

[PATCH 1/1] arm: dts: dra7-evm: add sd/eMMC node

2013-07-23 Thread Balaji T K
Add micro SD card and eMMC support for dra7-evm Signed-off-by: Rajendra Nayak rna...@ti.com Signed-off-by: Balaji T K balaj...@ti.com --- arch/arm/boot/dts/dra7-evm.dts | 18 ++ 1 files changed, 18 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/dra7-evm.dts

Re: [PATCH v2 1/3] Input: omap-keypad: Cleanup - use bitfiled instead of hardcoded values

2013-07-23 Thread Felipe Balbi
Hi, On Tue, Jul 23, 2013 at 07:09:56PM +0300, Illia Smyrnov wrote: Use bitfiled instead of hardcoded values to set KBD_CTRL, use BIT macro, remove unused defines. Signed-off-by: Illia Smyrnov illia.smyr...@ti.com Reviewed-by: Felipe Balbi ba...@ti.com -- balbi signature.asc Description:

Re: [PATCH v2 2/3] Input: omap-keypad: Convert to threaded IRQ

2013-07-23 Thread Felipe Balbi
Hi, On Tue, Jul 23, 2013 at 07:09:57PM +0300, Illia Smyrnov wrote: Convert to use threaded IRQ. Cc: Felipe Balbi ba...@ti.com Signed-off-by: Illia Smyrnov illia.smyr...@ti.com --- drivers/input/keyboard/omap4-keypad.c | 29 - 1 files changed, 20

Re: [PATCH v2 3/3] Input: omap-keypad: Clear pending interrupts on open

2013-07-23 Thread Felipe Balbi
Hi, On Tue, Jul 23, 2013 at 07:09:58PM +0300, Illia Smyrnov wrote: Clear pending interrupts when open keypad. where are these interrupts coming from ? Signed-off-by: Illia Smyrnov illia.smyr...@ti.com --- drivers/input/keyboard/omap4-keypad.c |5 +++-- 1 files changed, 3

Re: [PATCH v2 2/3] Input: omap-keypad: Convert to threaded IRQ

2013-07-23 Thread Felipe Balbi
Hi, On Tue, Jul 23, 2013 at 08:25:01PM +0300, Felipe Balbi wrote: Convert to use threaded IRQ. Cc: Felipe Balbi ba...@ti.com Signed-off-by: Illia Smyrnov illia.smyr...@ti.com --- drivers/input/keyboard/omap4-keypad.c | 29 - 1 files changed, 20

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

2013-07-23 Thread Greg KH
On Tue, Jul 23, 2013 at 06:50:29PM +0200, Tomasz Figa wrote: Ick, no. Why can't you just pass the pointer to the phy itself? If you had a priv pointer to search from, then you could have just passed the original phy pointer in the first place, right? IMHO it would be better if you

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

2013-07-23 Thread Mark Brown
On Tue, Jul 23, 2013 at 10:37:05AM -0400, Alan Stern wrote: On Tue, 23 Jul 2013, Tomasz Figa wrote: Okay. Are PHYs _always_ platform devices? They can be i2c, spi or any other device types as well. In those other cases, presumably there is no platform data associated with the PHY

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

2013-07-23 Thread Mark Brown
On Tue, Jul 23, 2013 at 10:37:11AM -0700, Greg KH wrote: On Tue, Jul 23, 2013 at 06:50:29PM +0200, Tomasz Figa wrote: I fully agree that a simple, single string will not scale even in some, not so uncommon cases, but there is already a lot of existing lookup solutions over the kernel and

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

2013-07-23 Thread Tomasz Figa
On Tuesday 23 of July 2013 10:37:11 Greg KH wrote: On Tue, Jul 23, 2013 at 06:50:29PM +0200, Tomasz Figa wrote: Ick, no. Why can't you just pass the pointer to the phy itself? If you had a priv pointer to search from, then you could have just passed the original phy pointer in

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

2013-07-23 Thread Greg KH
On Tue, Jul 23, 2013 at 06:44:56PM +0100, Mark Brown wrote: On Tue, Jul 23, 2013 at 10:37:11AM -0700, Greg KH wrote: On Tue, Jul 23, 2013 at 06:50:29PM +0200, Tomasz Figa wrote: I fully agree that a simple, single string will not scale even in some, not so uncommon cases, but there

Re: [PATCH 2/4] mfd: twl6030-irq: add error check when IRQs are masked initially

2013-07-23 Thread Graeme Gregory
On 23/07/13 17:07, Grygorii Strashko wrote: Add a missed check for errors when TWL IRQs are masked initially on probe and report an error in case of failure. Signed-off-by: Grygorii Strashko grygorii.stras...@ti.com --- drivers/mfd/twl6030-irq.c | 13 + 1 file changed, 9

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

2013-07-23 Thread Greg KH
On Tue, Jul 23, 2013 at 07:48:11PM +0200, Tomasz Figa wrote: On Tuesday 23 of July 2013 10:37:11 Greg KH wrote: On Tue, Jul 23, 2013 at 06:50:29PM +0200, Tomasz Figa wrote: Ick, no. Why can't you just pass the pointer to the phy itself? If you had a priv pointer to search from,

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

2013-07-23 Thread Mark Brown
On Tue, Jul 23, 2013 at 11:01:10AM -0700, Greg KH wrote: On Tue, Jul 23, 2013 at 06:44:56PM +0100, Mark Brown wrote: What are the problems you are seeing with doing things with lookups? You don't know the id of the device you are looking up, due to multiple devices being in the system

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

2013-07-23 Thread Alan Stern
On Tue, 23 Jul 2013, Tomasz Figa wrote: IMHO it would be better if you provided some code example, but let's try to check if I understood you correctly. 8 [Board file] static struct phy my_phy; static struct

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

2013-07-23 Thread Greg KH
On Tue, Jul 23, 2013 at 08:31:05PM +0100, Mark Brown wrote: You don't know the id of the device you are looking up, due to multiple devices being in the system (dynamic ids, look back earlier in this thread for details about that.) I got copied in very late so don't have most of the

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

2013-07-23 Thread Tomasz Figa
On Tuesday 23 of July 2013 12:44:23 Greg KH wrote: On Tue, Jul 23, 2013 at 08:31:05PM +0100, Mark Brown wrote: You don't know the id of the device you are looking up, due to multiple devices being in the system (dynamic ids, look back earlier in this thread for details about that.)

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

2013-07-23 Thread Tomasz Figa
On Tuesday 23 of July 2013 15:36:00 Alan Stern wrote: On Tue, 23 Jul 2013, Tomasz Figa wrote: IMHO it would be better if you provided some code example, but let's try to check if I understood you correctly. 8--- -

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

2013-07-23 Thread Tomasz Figa
On Tuesday 23 of July 2013 11:04:14 Greg KH wrote: On Tue, Jul 23, 2013 at 07:48:11PM +0200, Tomasz Figa wrote: On Tuesday 23 of July 2013 10:37:11 Greg KH wrote: On Tue, Jul 23, 2013 at 06:50:29PM +0200, Tomasz Figa wrote: Ick, no. Why can't you just pass the pointer to the phy

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

2013-07-23 Thread Greg KH
On Tue, Jul 23, 2013 at 10:07:52PM +0200, Tomasz Figa wrote: On Tuesday 23 of July 2013 12:44:23 Greg KH wrote: On Tue, Jul 23, 2013 at 08:31:05PM +0100, Mark Brown wrote: You don't know the id of the device you are looking up, due to multiple devices being in the system (dynamic ids,

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

2013-07-23 Thread Alan Stern
On Tue, 23 Jul 2013, Tomasz Figa wrote: That's what I was going to suggest too. The struct phy is defined in the board file, which already knows about all the PHYs that exist in the system. (Or perhaps it is allocated dynamically, so that when many board files are present in the same

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

2013-07-23 Thread Tomasz Figa
On Tuesday 23 of July 2013 16:53:55 Alan Stern wrote: On Tue, 23 Jul 2013, Tomasz Figa wrote: That's what I was going to suggest too. The struct phy is defined in the board file, which already knows about all the PHYs that exist in the system. (Or perhaps it is allocated

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

2013-07-23 Thread Tomasz Figa
On Tuesday 23 of July 2013 13:50:07 Greg KH wrote: On Tue, Jul 23, 2013 at 10:07:52PM +0200, Tomasz Figa wrote: On Tuesday 23 of July 2013 12:44:23 Greg KH wrote: On Tue, Jul 23, 2013 at 08:31:05PM +0100, Mark Brown wrote: You don't know the id of the device you are looking up, due to

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

2013-07-23 Thread Alan Stern
On Tue, 23 Jul 2013, Tomasz Figa wrote: If you want to keep the phy struct completely separate from the board file, there's an easy way to do it. Let's say the board file knows about N different PHYs in the system. Then you define an array of N pointers to phys: struct phy

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

2013-07-23 Thread Greg KH
On Tue, Jul 23, 2013 at 11:05:48PM +0200, Tomasz Figa wrote: That's not so bad, as long as you let the phy core use whatever name it wants for the device when it registers it with sysfs. Yes, in regulator core consumer names are completely separated from this. Regulator core simply

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

2013-07-23 Thread Tomasz Figa
On Tuesday 23 of July 2013 17:14:20 Alan Stern wrote: On Tue, 23 Jul 2013, Tomasz Figa wrote: If you want to keep the phy struct completely separate from the board file, there's an easy way to do it. Let's say the board file knows about N different PHYs in the system. Then you

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

2013-07-23 Thread Mark Brown
On Tue, Jul 23, 2013 at 12:44:23PM -0700, Greg KH wrote: On Tue, Jul 23, 2013 at 08:31:05PM +0100, Mark Brown wrote: statement. In any case this is why the APIs doing lookups do the lookups in the context of the requesting device - devices ask for whatever name they use locally. What do