Re: [PATCH 1/7] usb: phy: msm: Move mach dependent code to platform data

2013-07-24 Thread Felipe Balbi
On Mon, Jun 24, 2013 at 06:27:38PM +0300, Ivan T. Ivanov wrote: From: Ivan T. Ivanov iiva...@mm-sol.com This patch fix compilation error and is an intermediate step before the addition of DeviceTree support for newer targets. Fix suggested here: https://lkml.org/lkml/2013/6/19/381 Cc:

Re: [PATCH 7/7] usb: phy: msm: Lindent the code

2013-07-24 Thread Felipe Balbi
On Mon, Jun 24, 2013 at 06:27:44PM +0300, Ivan T. Ivanov wrote: From: Ivan T. Ivanov iiva...@mm-sol.com Cc: Felipe Balbi ba...@ti.com Cc: Greg Kroah-Hartman gre...@linuxfoundation.org Cc: linux-...@vger.kernel.org Cc: linux-ker...@vger.kernel.org Signed-off-by: Ivan T. Ivanov

Re: [PATCH v2 1/7] usb: phy: msm: Move mach depndend code to platform data

2013-07-24 Thread Felipe Balbi
On Tue, Jul 09, 2013 at 06:47:07PM +0300, Ivan T. Ivanov wrote: From: Ivan T. Ivanov iiva...@mm-sol.com This patch fix compilation error and is an intermediate step before the addition of DeviceTree support for newer targets. Fix suggested here: https://lkml.org/lkml/2013/6/19/381 Cc:

Re: [PATCH v2 1/7] usb: phy: msm: Move mach depndend code to platform data

2013-07-24 Thread Felipe Balbi
On Wed, Jul 24, 2013 at 03:34:43PM +0300, Felipe Balbi wrote: On Tue, Jul 09, 2013 at 06:47:07PM +0300, Ivan T. Ivanov wrote: From: Ivan T. Ivanov iiva...@mm-sol.com This patch fix compilation error and is an intermediate step before the addition of DeviceTree support for newer targets.

Re: [PATCH v2 2/7] usb: phy: msm: Migrate to Managed Device Resource allocation

2013-07-24 Thread Felipe Balbi
Hi, On Tue, Jul 09, 2013 at 06:47:08PM +0300, Ivan T. Ivanov wrote: From: Ivan T. Ivanov iiva...@mm-sol.com Use managed device resources to clean up the probe/remove and get DT support for free. Signed-off-by: Ivan T. Ivanov iiva...@mm-sol.com --- drivers/usb/phy/phy-msm-usb.c | 78

Re: [PATCH v2 3/7] usb: phy: msm: Move regulator usage to managed resource allocation

2013-07-24 Thread Felipe Balbi
On Tue, Jul 09, 2013 at 06:47:09PM +0300, Ivan T. Ivanov wrote: From: Ivan T. Ivanov iiva...@mm-sol.com This patch move global regulators variables to driver state structire and move allocation of the regulators to be devm managed. split into two patches please. One for moving the global

RE: [PATCH V3 4/4] scsi: ufs: Improve UFS fatal error handling

2013-07-24 Thread Seungwon Jeon
On Wed, July 24, 2013, Sujit Reddy Thumma wrote: On 7/23/2013 2:04 PM, Seungwon Jeon wrote: On Sat, July 20, 2013, Sujit Reddy Thumma wrote: On 7/19/2013 7:28 PM, Seungwon Jeon wrote: On Tue, July 09, 2013, Sujit Reddy Thumma wrote: Error handling in UFS driver is broken and resets the

RE: [PATCH V3 3/4] scsi: ufs: Fix device and host reset methods

2013-07-24 Thread Seungwon Jeon
On Wed, July 24, 2013, Sujit Reddy Thumma wrote: On 7/23/2013 1:57 PM, Seungwon Jeon wrote: On Sat, July 20, 2013, Sujit Reddy Thumma wrote: On 7/19/2013 7:27 PM, Seungwon Jeon wrote: On Tue, July 09, 2013, Sujit Reddy Thumma wrote: As of now SCSI initiated error handling is broken

Re: [PATCH v4 00/17] 64-bit friendly generic sched_clock()

2013-07-24 Thread Christopher Covington
On 07/18/2013 07:21 PM, Stephen Boyd wrote: This patchset adds support for 64 bit counters in the generic sched_clock code and converts drivers over to use it. Based on v3.11-rc1. Changes since v3: * Move to use seqcount to fix issues with 64-bit cyc counters * Move to hrtimer to fix

Re: [PATCH 1/7] usb: phy: msm: Move mach dependent code to platform data

2013-07-24 Thread David Brown
On Mon, Jun 24, 2013 at 06:27:38PM +0300, Ivan T. Ivanov wrote: From: Ivan T. Ivanov iiva...@mm-sol.com This patch fix compilation error and is an intermediate step before the addition of DeviceTree support for newer targets. Fix suggested here: https://lkml.org/lkml/2013/6/19/381 Cc: David

[PATCH 1/4] msm_serial: Fix NUL byte output on UARTDM

2013-07-24 Thread Stephen Boyd
UARTDM serial devices require us to wait for the entire TX fifo to drain before we can change the contents of the NCF_TX register. Furthermore, if we write any characters to the TX fifo within the same clock cycle of changing the NCF_TX register the NCF_TX register won't latch properly. To fix

[PATCH 0/4] msm_serial fixes and improvements

2013-07-24 Thread Stephen Boyd
Here are a couple fixes and improvements to the msm_serial driver. The first two patches fix a bug on UARTDM devices and silence sparse warnings. The last two patches improve the baud code detection and increase the throughput on UARTDM devices. After this it is rather trivial to add support for

[PATCH 4/4] msm_serial: Send more than 1 character at a time on UARTDM

2013-07-24 Thread Stephen Boyd
UARTDM cores have a TX fifo that can accept more than one character per register write, but the msm_serial driver currently only supports 1 character mode. Add support for this mode of operation to speed up the transmit path on DM devices. Signed-off-by: Stephen Boyd sb...@codeaurora.org ---

[PATCH 3/4] msm_serial: Make baud_code detection more dynamic

2013-07-24 Thread Stephen Boyd
Currently msm_set_baud_rate() assumes the uart clock rate is 1.8432 MHz. This is not always true, and limits our options to program the baud rate. Instead of assuming the rate and hard-coding the baud_code based on it, calculate the divider that we want and try to find the closest baud_code that

[PATCH 2/4] msm_serial: Fix sparse warnings

2013-07-24 Thread Stephen Boyd
drivers/tty/serial/msm_serial.c:302:6: warning: symbol 'msm_set_mctrl' was not declared. Should it be static? drivers/tty/serial/msm_serial.c:597:17: warning: incorrect type in argument 2 (different address spaces) drivers/tty/serial/msm_serial.c:597:17: expected void volatile [noderef]

Re: [PATCH 1/4] msm_serial: Fix NUL byte output on UARTDM

2013-07-24 Thread David Brown
On Wed, Jul 24, 2013 at 11:37:28AM -0700, Stephen Boyd wrote: UARTDM serial devices require us to wait for the entire TX fifo to drain before we can change the contents of the NCF_TX register. Furthermore, if we write any characters to the TX fifo within the same clock cycle of changing the

Re: [PATCH 4/4] msm_serial: Send more than 1 character at a time on UARTDM

2013-07-24 Thread David Brown
On Wed, Jul 24, 2013 at 11:37:31AM -0700, Stephen Boyd wrote: UARTDM cores have a TX fifo that can accept more than one character per register write, but the msm_serial driver currently only supports 1 character mode. Add support for this mode of operation to speed up the transmit path on DM

Re: [PATCH v4 0/5] Memory mapped architected timers

2013-07-24 Thread Stephen Boyd
On 07/22, Mark Rutland wrote: Hi Stephen, On Fri, Jul 19, 2013 at 12:59:27AM +0100, Stephen Boyd wrote: This patchset adds support for memory mapped architected timers. We don't have any other global broadcast timer in our system, so we use the mmio timer during low power modes. The

[PATCH v2 0/9] Move MSM closer to multi-platform

2013-07-24 Thread Stephen Boyd
These are a set of patches that move MSM closer to multi-platform but still keep everything compiling. We still have to tackle reset and dma, but these patches shouldn't be controversial. Rohit Vaswani (1): ARM: msm: Remove unused and unmapped MSM_TLMM_BASE for 8x60 Stephen Boyd (8): ARM:

[PATCH v2 8/9] iommu/msm: Move mach includes to iommu directory

2013-07-24 Thread Stephen Boyd
Two header files exist in mach-msm's include/mach directory that are only used by the MSM iommu driver. Move these files to the iommu driver directory and prefix them with msm_. This allows us to compile the MSM iommu driver on multi-platform kernels. Acked-by: Joerg Roedel j...@8bytes.org Cc:

[PATCH v2 2/9] ARM: msm: Don't compile __msm_ioremap_caller() unless used

2013-07-24 Thread Stephen Boyd
This function is only used on MSM7x00A so only compile the function if the build includes support for that platform. Signed-off-by: Stephen Boyd sb...@codeaurora.org --- arch/arm/mach-msm/io.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-msm/io.c b/arch/arm/mach-msm/io.c

[PATCH v2 6/9] ARM: msm: Move mach/board.h contents to common.h

2013-07-24 Thread Stephen Boyd
The contents of mach/board.h are only used by files within mach-msm so there is no need to export this file outside of the mach-msm directory. Move the contents of the file to common.h to allow us to compile MSM in the multi-platform kernel. Cc: Florian Tobias Schandinat florianschandi...@gmx.de

[PATCH v2 1/9] ARM: msm: Remove unused and unmapped MSM_TLMM_BASE for 8x60

2013-07-24 Thread Stephen Boyd
From: Rohit Vaswani rvasw...@codeaurora.org MSM_TLMM_BASE is currently not mapped by 8x60. Remove it. Signed-off-by: Rohit Vaswani rvasw...@codeaurora.org Signed-off-by: Stephen Boyd sb...@codeaurora.org --- arch/arm/mach-msm/include/mach/msm_iomap-8x60.h | 4 1 file changed, 4

[PATCH v2 3/9] ARM: msm: Move debug-macro.S to include/debug

2013-07-24 Thread Stephen Boyd
One more step to allowing MSM to participate in the multi-platform defconfig. Signed-off-by: Stephen Boyd sb...@codeaurora.org --- arch/arm/Kconfig.debug | 9 +++- .../mach/debug-macro.S = include/debug/msm.S} | 32 ++-

[PATCH v2 4/9] ARM: msm: Remove TMR and TMR0 static mappings

2013-07-24 Thread Stephen Boyd
Nobody is using these mappings so just drop them. of_iomap() in the timer driver will take care of it for us. Doing this allows us to remove the 8x60 and 8960 iomap files completely. Signed-off-by: Stephen Boyd sb...@codeaurora.org --- arch/arm/mach-msm/board-dt-8660.c | 2 +-

Re: [PATCH 0/3] MSM gpio fixes

2013-07-24 Thread David Brown
On Sat, Jul 20, 2013 at 10:54:42PM +0200, Linus Walleij wrote: On Thu, Jul 18, 2013 at 10:07 PM, David Brown dav...@codeaurora.org wrote: Rohit sent these three fixes out on June 18. I still need a devicetree ack for the first patch, and would like these to get pulled in for v3.11 Rohit

[PATCH v1 01/14] clk: fixed-rate: Export clk_fixed_rate_register()

2013-07-24 Thread Stephen Boyd
Export this symbol so that modules can register fixed rate clocks. Signed-off-by: Stephen Boyd sb...@codeaurora.org --- drivers/clk/clk-fixed-rate.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/clk-fixed-rate.c b/drivers/clk/clk-fixed-rate.c index dc58fbd..1ed591a 100644 ---

[PATCH v1 00/14] Add support for MSM's mmio clocks

2013-07-24 Thread Stephen Boyd
Reposting this RFC due to conflicts with v3.11-rc1 and because I haven't gone through and generated all the data needed yet. This is just a few clocks for now to give a general idea until I get some comments from DT reviewers. The first 4 patches are generic clock framework patches. They add

[PATCH v1 04/14] clk: Add set_rate_and_parent() op

2013-07-24 Thread Stephen Boyd
Some of Qualcomm's clocks can change their parent and rate at the same time with a single register write. Add support for this hardware to the common clock framework by adding a new set_rate_and_parent() op. When the clock framework determines that both the parent and the rate are going to change

[PATCH v1 13/14] clk: msm: Add MSM8974 GCC data

2013-07-24 Thread Stephen Boyd
Add the necessary data to probe an 8974 gcc device. Signed-off-by: Stephen Boyd sb...@codeaurora.org --- .../devicetree/bindings/clock/qcom,gcc.txt | 1 + drivers/clk/msm/Kconfig| 7 ++ drivers/clk/msm/Makefile | 1 +

[PATCH v1 09/14] clk: msm: Add support for MSM8960's global clock controller (GCC)

2013-07-24 Thread Stephen Boyd
Fill in the data and wire up the global clock controller to the MSM clock driver. This should allow most non-multimedia device drivers to control their clocks on 8960 based platforms. Cc: devicet...@vger.kernel.org Signed-off-by: Stephen Boyd sb...@codeaurora.org ---

[PATCH v1 02/14] clk: Add of_init_clk_data() to parse common clock bindings

2013-07-24 Thread Stephen Boyd
Consolidate DT parsing for the common bits of a clock binding in one place to simplify clock drivers. This also has the added benefit of standardizing how the clock names used by the common clock framework are generated from the DT bindings. We always use the first clock-output-names string if it

[PATCH v1 10/14] clk: msm: Add support for MSM8960's multimedia clock controller (MMCC)

2013-07-24 Thread Stephen Boyd
Fill in the data and wire up the multimedia clock controller to the MSM clock driver. This should allow multimedia device drivers to control their clocks on 8960 based platforms. Cc: devicet...@vger.kernel.org Signed-off-by: Stephen Boyd sb...@codeaurora.org ---

[PATCH v1 12/14] ARM: dts: msm: Add MSM8960 MMCC DT nodes

2013-07-24 Thread Stephen Boyd
Add the necessary DT data to probe the multimedia clock controller on MSM8960 devices. Signed-off-by: Stephen Boyd sb...@codeaurora.org --- arch/arm/boot/dts/msm8960-cdp.dts | 37 + 1 file changed, 37 insertions(+) diff --git

[PATCH v1 08/14] clk: msm: Add MSM clock driver

2013-07-24 Thread Stephen Boyd
Add a clock driver that registers clocks from a DT node's 'clocks' child. Each new SoC will add a file describing the software interface and frequency plan to drivers/clk/msm/ and then hook that into the msm_cc_match_table by means of a compatible string and an msm_clk_match table. Signed-off-by:

[PATCH v1 03/14] clk: Add of_clk_match() for device drivers

2013-07-24 Thread Stephen Boyd
In similar fashion as of_regulator_match() add an of_clk_match() function that finds an initializes clock init_data structs from devicetree. Drivers should use this API to find clocks that their device is providing and then iterate over their match table registering the clocks with the init data

[PATCH v1 06/14] clk: msm: Add support for root clock generators (RCGs)

2013-07-24 Thread Stephen Boyd
Cc: devicet...@vger.kernel.org Signed-off-by: Stephen Boyd sb...@codeaurora.org --- Documentation/devicetree/bindings/clock/msm.txt | 31 + drivers/clk/msm/Makefile| 2 + drivers/clk/msm/clk-rcg.c | 754

[PATCH v1 07/14] clk: msm: Add support for branches/gate clocks

2013-07-24 Thread Stephen Boyd
Cc: devicet...@vger.kernel.org Signed-off-by: Stephen Boyd sb...@codeaurora.org --- Documentation/devicetree/bindings/clock/msm.txt | 28 drivers/clk/msm/Makefile| 1 + drivers/clk/msm/clk-branch.c| 190

[PATCH v1 05/14] clk: msm: Add support for phase locked loops (PLLs)

2013-07-24 Thread Stephen Boyd
Add support for MSM's PLLs (phase locked loops). This is sufficient enough to be able to determine the rate the PLL is running at. We can add rate setting support later when it's needed. Cc: devicet...@vger.kernel.org Signed-off-by: Stephen Boyd sb...@codeaurora.org ---