[PATCH v8 12/13] clk: qcom: gdsc: Enable an RCG before turing on the gdsc

2015-08-06 Thread Rajendra Nayak
Some gdsc instances require a certain root clock (RCG) to be turned on *before* the power domain itself can be turned on. Handle this as part of the gdsc enable/disable callbacks. Signed-off-by: Rajendra Nayak rna...@codeaurora.org --- drivers/clk/qcom/gcc-msm8916.c | 1 +

[PATCH v8 11/13] clk: qcom: gdsc: Use PM clocks to control gdsc clocks

2015-08-06 Thread Rajendra Nayak
The devices within a gdsc power domain, quite often have additional clocks to be turned on/off along with the power domain itself. Once the drivers for these devices are converted to use runtime PM, it would be possible to remove all clock handling from the drivers if the gdsc driver can handle

[PATCH v8 10/13] arm: dts: qcom: Add #power-domain-cells property

2015-08-06 Thread Rajendra Nayak
msm8974 has gcc and mmcc nodes, and apq8084 has a gcc node which implement gdsc powerdomains. Add the #power-domain-cells property to them. Signed-off-by: Rajendra Nayak rna...@codeaurora.org --- arch/arm/boot/dts/qcom-apq8084.dtsi | 1 + arch/arm/boot/dts/qcom-msm8974.dtsi | 2 ++

[PATCH v8 03/13] clk: qcom: gdsc: Add support for Memory RET/OFF

2015-08-06 Thread Rajendra Nayak
Along with the GDSC power switch, there is additional control to either retain all memory (core and peripheral) within a given powerdomain or to turn them off while the GDSC is powered down. Add support for these by modelling a RET state where all memory is retained and an OFF state where all

[PATCH v8 09/13] clk: qcom: gdsc: Add GDSCs in apq8084 MMCC

2015-08-06 Thread Rajendra Nayak
From: Stephane Viau sv...@codeaurora.org Add the GDSC instances that exist as part of apq8084 MMCC block. Signed-off-by: Stephane Viau sv...@codeaurora.org Signed-off-by: Rajendra Nayak rna...@codeaurora.org --- drivers/clk/qcom/Kconfig | 1 +

Re: [PATCH v7 12/13] clk: qcom: gdsc: Add GDSCs in apq8084 MMCC

2015-08-06 Thread Rajendra Nayak
On 07/31/2015 08:24 PM, Stanimir Varbanov wrote: snip +static struct gdsc venus0_gdsc = { + .gdscr = 0x1024, + .pd = { + .name = venus0, + }, + .pwrsts = PWRSTS_OFF_ON, + .con_ids = { NULL }, +}; + Rajendra, according to downstream kernel

[PATCH v8 01/13] clk: qcom: Add support for GDSCs

2015-08-06 Thread Rajendra Nayak
From: Stephen Boyd sb...@codeaurora.org GDSCs (Global Distributed Switch Controllers) are responsible for safely collapsing and restoring power to peripherals in the SoC. These are best modelled as power domains using genpd and given the registers are scattered throughout the clock controller

[PATCH v8 00/13] qcom: Add support for GDSCs

2015-08-06 Thread Rajendra Nayak
GDSCs (Global Distributed Switch Controllers) control switches that supply power to an on-chip power domain and hence can be programmed in SW to safely power collapse and restore power to the respective PDs. They are part of a considerable number of recent QCOM SoCs (This series adds support for

[PATCH v8 02/13] clk: qcom: gdsc: Prepare common clk probe to register gdscs

2015-08-06 Thread Rajendra Nayak
The common clk probe registers a clk provider and a reset controller. Update it to register a genpd provider using the gdsc data provided by each platform. Signed-off-by: Rajendra Nayak rna...@codeaurora.org --- drivers/clk/qcom/common.c | 15 ++- drivers/clk/qcom/common.h | 2 ++ 2

[PATCH v8 05/13] clk: qcom: gdsc: Add GDSCs in msm8916 GCC

2015-08-06 Thread Rajendra Nayak
Add all data for the GDSCs which are part of msm8916 GCC block. Signed-off-by: Rajendra Nayak rna...@codeaurora.org --- drivers/clk/qcom/Kconfig | 1 + drivers/clk/qcom/gcc-msm8916.c | 51

[PATCH v8 04/13] clk: qcom: gdsc: Add support for ON only state

2015-08-06 Thread Rajendra Nayak
Certain devices can have GDSCs' which support ON as the only state. They can't be power collapsed to either hit RET or OFF. The clients drivers for these GDSCs' however would expect the state of the core to be reset following a GDSC disable and re-enable. To do this assert/deassert reset lines

Re: [PATCH v1 4/7] ARM: dts: apq8064: Add MDP support

2015-08-06 Thread Rob Clark
On Wed, Aug 5, 2015 at 9:27 PM, Stephen Boyd sb...@codeaurora.org wrote: On 07/28/2015 05:54 AM, Srinivas Kandagatla wrote: @@ -618,5 +633,77 @@ compatible = qcom,tcsr-apq8064, syscon; reg = 0x1a40 0x100; }; + +

Re: next-20150806 build: 2 failures 52 warnings (next-20150806)

2015-08-06 Thread Andy Gross
On Thu, Aug 06, 2015 at 06:19:58PM +0100, Mark Brown wrote: On Thu, Aug 06, 2015 at 12:00:47PM +0100, Build bot for Mark Brown wrote: Today's linux-next fails to build an arm64 allmodconfig due to: arm64-allmodconfig ERROR: qcom_scm_hdcp_req [drivers/gpu/drm/msm/msm.ko] undefined!

Re: next-20150806 build: 2 failures 52 warnings (next-20150806)

2015-08-06 Thread Mark Brown
On Thu, Aug 06, 2015 at 12:00:47PM +0100, Build bot for Mark Brown wrote: Today's linux-next fails to build an arm64 allmodconfig due to: arm64-allmodconfig ERROR: qcom_scm_hdcp_req [drivers/gpu/drm/msm/msm.ko] undefined! ERROR: qcom_scm_hdcp_available [drivers/gpu/drm/msm/msm.ko]

Re: [PATCH V3 2/6] of/slimbus: OF helper for SLIMbus

2015-08-06 Thread Sagar Dharia
Hello Rob, On 8/3/2015 10:13 AM, Rob Herring wrote: On Mon, Aug 3, 2015 at 1:59 AM, Sagar Dharia sdha...@codeaurora.org wrote: OF helper routine scans the SLIMbus DeviceTree, allocates resources, and creates slim_devices according to the hierarchy. Signed-off-by: Sagar Dharia

Re: [PATCH V9 0/5] map GHES memory region according to EFI memory map

2015-08-06 Thread Zhang, Jonathan Zhixiong
On 8/5/2015 9:13 AM, Matt Fleming wrote: On Wed, 05 Aug, at 05:10:00PM, Matt Fleming wrote: On Wed, 05 Aug, at 08:58:52AM, Zhang, Jonathan Zhixiong wrote: Yes, absolutely. It has been in my mind, sorry I was tied up in the last few days. I wonder what I may missed, I certainly do x86 build

[PATCH V10 0/5] map GHES memory region according to EFI memory map

2015-08-06 Thread Jonathan (Zhixiong) Zhang
From: Jonathan (Zhixiong) Zhang zjzh...@codeaurora.org On a platform with APEI (ACPI Platform Error Interface) enabled, firmware updates a memory region with hardware error record using nocache attribute. When OS reads the region, since it maps the region with cacahed attribute even though EFI

Re: [PATCH v2] backlight: pm8941-wled: Move PM8941 WLED driver to backlight

2015-08-06 Thread Jingoo Han
On Wednesday, July 22, 2015 9:45 AM, Bjorn Andersson wrote: The Qualcomm PM8941 WLED block is used for backlight and should therefor be in the backlight framework and not in the LED framework. This moves the driver and adapts to the backlight api instead. Acked-by: Jacek Anaszewski