Re: [PATCH 3/3] pinctrl: qcom: handle input-enable pinconf property

2015-02-04 Thread Bjorn Andersson
On Wed, Feb 4, 2015 at 2:03 AM, Linus Walleij linus.wall...@linaro.org wrote: On Fri, Jan 30, 2015 at 5:20 PM, Bjorn Andersson bjorn.anders...@sonymobile.com wrote: On Fri 30 Jan 02:27 PST 2015, Stanimir Varbanov wrote: + case PIN_CONFIG_INPUT_ENABLE: + /* Pin is output

Re: [PATCH v2 1/2] clk: qcom: gcc-msm8960: add child devices support.

2015-01-30 Thread Bjorn Andersson
On Fri, Jan 30, 2015 at 2:17 AM, Srinivas Kandagatla srinivas.kandaga...@linaro.org wrote: This patch adds support to add child devices to gcc as some of the registers mapped by gcc are used by drivers like thermal sensors. Signed-off-by: Srinivas Kandagatla srinivas.kandaga...@linaro.org ---

Re: [PATCH] regulator: qcom-rpm: Make it possible to specify supply

2015-01-30 Thread Bjorn Andersson
On Fri 30 Jan 00:57 PST 2015, Srinivas Kandagatla wrote: Hi Bjorn, Thanks for sending this patch.. I almost forgot about this. Shouldn’t we update the DT Bindings with this info? At this time we don't have any bindings for the subnodes merged. So I also sent out [1] yesterday, including

Re: [PATCH 2/2] drm/msm/hdmi: add hdmi hdcp support (V2)

2015-01-30 Thread Bjorn Andersson
On Tue, Jan 13, 2015 at 12:43 PM, Jilai Wang jil...@codeaurora.org wrote: Add HDMI HDCP support including HDCP PartI/II/III authentication. V1: Initial Change V2: Address BjornRob's comments Refactor the authentication process to use single work instead of multiple work for different

Re: [PATCH v2 1/2] clk: qcom: gcc-msm8960: add child devices support.

2015-01-30 Thread Bjorn Andersson
On Fri, Jan 30, 2015 at 1:16 PM, Stephen Boyd sb...@codeaurora.org wrote: On 01/30/15 10:06, Srinivas Kandagatla wrote: [..] Stephen Any comments? I don't understand any of this. We should be making a specific tsens device directly in the gcc driver probe and not doing any sort of

Re: [PATCH v2 2/2] leds: add Qualcomm PM8941 WLED driver

2015-01-29 Thread Bjorn Andersson
On Thu 29 Jan 04:48 PST 2015, Ivan T. Ivanov wrote: Hi Bjorn, Just few nitpick comments. Thanks. On Fri, 2015-01-23 at 16:54 -0800, Bjorn Andersson wrote: From: Courtney Cavin ca...@sonymobile.com This adds support for the WLED ('White' LED) block on Qualcomm's PM8941 PMICs

[PATCH] regulator: qcom-rpm: Make it possible to specify supply

2015-01-29 Thread Bjorn Andersson
Make it possible to specify the supply of a regulator, through the vin-supply property in dt. Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- drivers/regulator/qcom_rpm-regulator.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/regulator/qcom_rpm-regulator.c b

Re: [PATCH 2/9] regulator: core: Introduce set_optimum_mode op

2015-01-29 Thread Bjorn Andersson
On Wed 28 Jan 11:52 PST 2015, Mark Brown wrote: On Tue, Jan 27, 2015 at 06:46:32PM -0800, Bjorn Andersson wrote: + /* set most efficient regulator operating mode for load */ + int (*set_optimum_mode)(struct regulator_dev *, int input_uV, + int output_uV, int

Re: [PATCH 1/6] soc: qcom: gsbi: Add support for ADM CRCI muxing

2015-01-27 Thread Bjorn Andersson
On Tue 27 Jan 14:10 PST 2015, Andy Gross wrote: This solution looks good, just some style things. diff --git a/drivers/soc/qcom/qcom_gsbi.c b/drivers/soc/qcom/qcom_gsbi.c [..] +#define MAX_GSBI 12 + +#define TCSR_ADM_CRCI_BASE 0x70 + +struct crci_config { + u32 num_rows;

[PATCH 9/9] regulator: qcom-rpm: Implement set_optimum_mode

2015-01-27 Thread Bjorn Andersson
Pass the requested load directly to the rpm. Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- drivers/regulator/qcom_rpm-regulator.c | 28 1 file changed, 28 insertions(+) diff --git a/drivers/regulator/qcom_rpm-regulator.c b/drivers/regulator

[PATCH 7/9] regulator: wm8400: move to set_optimum_mode

2015-01-27 Thread Bjorn Andersson
Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- drivers/regulator/wm8400-regulator.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/regulator/wm8400-regulator.c b/drivers/regulator/wm8400-regulator.c index 82d8290..7f4c924 100644

[PATCH 6/9] regulator: hi6421: move to set_optimum_mode

2015-01-27 Thread Bjorn Andersson
Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- drivers/regulator/hi6421-regulator.c | 15 +-- 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/drivers/regulator/hi6421-regulator.c b/drivers/regulator/hi6421-regulator.c index 42dc5fb..42b362d 100644

[PATCH 1/9] regulator: core: Consolidate drms update handling

2015-01-27 Thread Bjorn Andersson
Refactor drms_uA_update() slightly to allow regulator_set_optimum_mode() to utilize the same logic instead of duplicating it. Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- drivers/regulator/core.c | 112 +++ 1 file changed, 35

[PATCH 0/9] Simplify regulator_set_optimum_mode

2015-01-27 Thread Bjorn Andersson
of whatever regulator they are supplied by) Bjorn Andersson (9): regulator: core: Consolidate drms update handling regulator: core: Introduce set_optimum_mode op regulator: ab8500: move to set_optimum_mode regulator: wm831x-ldo: move to set_optimum_mode regulator: wm8350: move

[PATCH 3/9] regulator: ab8500: move to set_optimum_mode

2015-01-27 Thread Bjorn Andersson
Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- drivers/regulator/ab8500.c | 48 +++--- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/drivers/regulator/ab8500.c b/drivers/regulator/ab8500.c index 0f97514..c1588c1 100644

[PATCH 5/9] regulator: wm8350: move to set_optimum_mode

2015-01-27 Thread Bjorn Andersson
Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- drivers/regulator/wm8350-regulator.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/regulator/wm8350-regulator.c b/drivers/regulator/wm8350-regulator.c index 7ec7c39..f8bcaed 100644

[PATCH v2 1/2] input: Add Qualcomm PM8941 power key driver

2015-01-23 Thread Bjorn Andersson
From: Courtney Cavin courtney.ca...@sonymobile.com Signed-off-by: Courtney Cavin courtney.ca...@sonymobile.com Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- drivers/input/misc/Kconfig | 12 ++ drivers/input/misc/Makefile| 1 + drivers/input/misc/pm8941

Re: [PATCH v2 2/2] leds: add Qualcomm PM8941 WLED driver

2015-01-23 Thread Bjorn Andersson
On Fri, Jan 23, 2015 at 4:54 PM, Bjorn Andersson bjorn.anders...@sonymobile.com wrote: From: Courtney Cavin courtney.ca...@sonymobile.com This adds support for the WLED ('White' LED) block on Qualcomm's PM8941 PMICs. Signed-off-by: Courtney Cavin courtney.ca...@sonymobile.com Signed-off

[PATCH v2 2/2] input: pm8941-pwrkey: Add DT binding documentation

2015-01-23 Thread Bjorn Andersson
From: Courtney Cavin courtney.ca...@sonymobile.com Signed-off-by: Courtney Cavin courtney.ca...@sonymobile.com Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- .../bindings/input/qcom,pm8941-pwrkey.txt | 43 ++ 1 file changed, 43 insertions

[PATCH v2 0/2] Qualcomm PM8941 power key driver

2015-01-23 Thread Bjorn Andersson
These patches add dt bindings and a device driver for the power key block in the Qualcomm PM8941 pmic. Changes since v1: * Use a reboot_notifier to set power off/reboot mode * Use irq flags from devicetree * Some style fixes Courtney Cavin (2): input: Add Qualcomm PM8941 power key driver

[PATCH v2 1/2] leds: add DT binding for Qualcomm PM8941 WLED block

2015-01-23 Thread Bjorn Andersson
From: Courtney Cavin courtney.ca...@sonymobile.com This adds device tree binding documentation for the WLED ('White' LED) block on Qualcomm's PM8941 PMICs. Signed-off-by: Courtney Cavin courtney.ca...@sonymobile.com Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com

[PATCH v2 2/2] leds: add Qualcomm PM8941 WLED driver

2015-01-23 Thread Bjorn Andersson
From: Courtney Cavin courtney.ca...@sonymobile.com This adds support for the WLED ('White' LED) block on Qualcomm's PM8941 PMICs. Signed-off-by: Courtney Cavin courtney.ca...@sonymobile.com Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- drivers/leds/Kconfig| 8

Re: [PATCH 8/8] msm: scm: Move the scm driver to drivers/soc/qcom

2015-01-21 Thread Bjorn Andersson
On Wed, Jan 21, 2015 at 5:13 PM, Olof Johansson o...@lixom.net wrote: [..] On Mon, Aug 4, 2014 at 6:31 PM, Stephen Boyd sb...@codeaurora.org wrote: Architectural changes in the ARM Linux kernel tree mandate the eventual removal of the mach-* directories. Move the scm driver to drivers/soc/qcom

Re: [PATCH 1/2] soc: qcom: Add TCSR driver

2015-01-09 Thread Bjorn Andersson
On Fri, Jan 9, 2015 at 9:13 AM, Andy Gross agr...@codeaurora.org wrote: On Fri, Jan 09, 2015 at 01:06:56AM +0100, Arnd Bergmann wrote: On Thursday 08 January 2015 16:52:56 Andy Gross wrote: This patch adds support for the TCSR (Top Control and Status Register) IP block that is present in

Re: Possible regression with commit 52221610d

2015-01-05 Thread Bjorn Andersson
On Sun, Dec 21, 2014 at 7:01 PM, Tim Kryger tim.kry...@gmail.com wrote: On Wed, Dec 17, 2014 at 11:57 AM, Bjorn Andersson bj...@kryo.se wrote: [..] Non-the-less, feel free to propose a patch and I will give it a test. Lets start with the simplest change first. Please give this a try and let

Re: [RFC 0/2] Qualcomm RPM sleep states

2014-12-29 Thread Bjorn Andersson
On Fri 26 Dec 09:09 PST 2014, Mark Brown wrote: On Mon, Dec 15, 2014 at 10:05:54PM -0800, Bjorn Andersson wrote: On Mon, Dec 15, 2014 at 10:04 AM, Mark Brown broo...@kernel.org wrote: On Thu, Dec 11, 2014 at 02:36:54PM -0800, Bjorn Andersson wrote: We already have a runtime API

Re: Possible regression with commit 52221610d

2014-12-16 Thread Bjorn Andersson
On Mon, Dec 15, 2014 at 10:27 PM, Bjorn Andersson bj...@kryo.se wrote: On Sun, Dec 14, 2014 at 8:48 PM, Tim Kryger tim.kry...@gmail.com wrote: On Sat, Dec 13, 2014 at 11:22 PM, Bjorn Andersson bj...@kryo.se wrote: [..] Or simply; what is vmmc (in the code) supposed to represent? Hi Bjorn

Re: [RFC 0/2] Qualcomm RPM sleep states

2014-12-15 Thread Bjorn Andersson
On Mon, Dec 15, 2014 at 10:04 AM, Mark Brown broo...@kernel.org wrote: On Thu, Dec 11, 2014 at 02:36:54PM -0800, Bjorn Andersson wrote: [..] We have to put the consumer into a state where we can release the regulator, then we need to tell the RPM to update the state of the regulator and we

Re: [RFC 0/2] Qualcomm RPM sleep states

2014-12-11 Thread Bjorn Andersson
On Tue 09 Dec 12:28 PST 2014, Mark Brown wrote: On Tue, Dec 09, 2014 at 11:25:18AM -0800, Bjorn Andersson wrote: On Tue 09 Dec 10:16 PST 2014, Mark Brown wrote: I think having an idle state (or possibly just using the suspend state, I'm still foggy if the two states are actually

Re: [RFC 0/2] Qualcomm RPM sleep states

2014-12-09 Thread Bjorn Andersson
On Tue 09 Dec 10:16 PST 2014, Mark Brown wrote: On Mon, Dec 08, 2014 at 12:55:03PM -0800, Bjorn Andersson wrote: On Mon 08 Dec 11:39 PST 2014, Mark Brown wrote: Now I'm confused again. I thought entry and exit was all done separately so it was just about saying what should happen

Re: [RFC 0/2] Qualcomm RPM sleep states

2014-12-08 Thread Bjorn Andersson
On Thu 04 Dec 13:15 PST 2014, Stephen Boyd wrote: On 11/28/2014 12:16 PM, Mark Brown wrote: On Thu, Nov 27, 2014 at 11:42:41AM -0800, Bjorn Andersson wrote: [..] The exposure of multiple regulators moves the problem to the devicetree, making sure to map the consumers to the right state

Re: [RFC 0/2] Qualcomm RPM sleep states

2014-12-08 Thread Bjorn Andersson
On Mon 08 Dec 11:39 PST 2014, Mark Brown wrote: On Mon, Dec 08, 2014 at 10:06:36AM -0800, Bjorn Andersson wrote: On Thu 04 Dec 13:15 PST 2014, Stephen Boyd wrote: On 11/28/2014 12:16 PM, Mark Brown wrote: I think I now have a reasonable picture of what's going on but wanted

Re: [PATCH v2 1/3] genirq: Allow the irqchip state of an IRQ to be save/restored

2014-12-08 Thread Bjorn Andersson
assigning err to something useful in the setter below: Reviewed-by: Bjorn Andersson bjorn.anders...@sonymobile.com Tested-by: Bjorn Andersson bjorn.anders...@sonymobile.com diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c [..] +/** + * irq_set_irqchip_state - set the state

Re: [PATCH 1/2] input: Add Qualcomm PM8941 power key driver

2014-12-08 Thread Bjorn Andersson
On Tue, Oct 7, 2014 at 4:42 PM, Dmitry Torokhov dmitry.torok...@gmail.com wrote: On Tue, Oct 07, 2014 at 04:30:46PM -0700, Bjorn Andersson wrote: On Tue 07 Oct 02:54 PDT 2014, Kiran Padwal wrote: [..] Shouldn't we unregister input device? It's allocated with devm_input_allocate_device

[PATCH 1/2] leds: add DT binding for Qualcomm PM8941 WLED block

2014-12-08 Thread Bjorn Andersson
From: Courtney Cavin courtney.ca...@sonymobile.com This adds device tree binding documentation for the WLED ('White' LED) block on Qualcomm's PM8941 PMICs. Signed-off-by: Courtney Cavin courtney.ca...@sonymobile.com Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com

[PATCH 2/2] leds: add Qualcomm PM8941 WLED driver

2014-12-08 Thread Bjorn Andersson
From: Courtney Cavin courtney.ca...@sonymobile.com This adds support for the WLED ('White' LED) block on Qualcomm's PM8941 PMICs. Signed-off-by: Courtney Cavin courtney.ca...@sonymobile.com Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- drivers/leds/Kconfig| 8

Re: [PATCH 2/2] drm/msm/hdmi: add hdmi hdcp support

2014-12-03 Thread Bjorn Andersson
On Wed, Dec 3, 2014 at 9:16 AM, jil...@codeaurora.org wrote: [..] + enum hdmi_hdcp_state hdcp_state; + struct mutex state_mutex; + struct delayed_work hdcp_reauth_work; + struct delayed_work hdcp_auth_part1_1_work; + struct delayed_work hdcp_auth_part1_2_work;

Re: [PATCH 2/2] drm/msm/hdmi: add hdmi hdcp support

2014-12-02 Thread Bjorn Andersson
On Mon, Dec 1, 2014 at 1:56 PM, Jilai Wang jil...@codeaurora.org wrote: Add HDMI HDCP support including HDCP PartI/II/III authentication. Signed-off-by: Jilai Wang jil...@codeaurora.org --- Hi Jilai, [..] diff --git a/drivers/gpu/drm/msm/hdmi/hdmi.c b/drivers/gpu/drm/msm/hdmi/hdmi.c [..]

Re: [RFC 0/2] Qualcomm RPM sleep states

2014-11-27 Thread Bjorn Andersson
On Thu, Nov 27, 2014 at 11:02 AM, Mark Brown broo...@kernel.org wrote: On Wed, Nov 26, 2014 at 03:34:47PM -0800, Bjorn Andersson wrote: Problem 1: Regulators are shared between CPU PLLs and other peripherals and when we take the cpu to idle we need a way to let go of the CPU PLL vote

Re: [PATCH v2 1/3] pinctrl: Add Qualcomm TLMM driver

2014-11-26 Thread Bjorn Andersson
On Tue, Nov 25, 2014 at 11:55 AM, Timur Tabi ti...@codeaurora.org wrote: On Thu, Dec 5, 2013 at 8:10 PM, Bjorn Andersson bjorn.anders...@sonymobile.com wrote: +static int msm_gpio_init(struct msm_pinctrl *pctrl) +{ + struct gpio_chip *chip; + int irq; + int ret

[PATCH v8 0/3] Qualcomm Resource Power Manager

2014-11-26 Thread Bjorn Andersson
my own snapping, as per Marks request - Split regulator ops in mV, uV and swtich versions as per Marks request. - Added devicetree property to enable pull down. Bjorn Andersson (3): mfd: devicetree: bindings: Add Qualcomm RPM DT binding mfd: qcom-rpm: Driver for the Qualcomm RPM

[PATCH v8 3/3] regulator: qcom-rpm: Add missing state flag in call to RPM

2014-11-26 Thread Bjorn Andersson
This adds the missing state parameter to the call down to the RPM. This is currently hard coded to the active state, as that's all we're supporting at this moment. Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- drivers/regulator/qcom_rpm-regulator.c | 1 + 1 file changed, 1

[PATCH v8 2/3] mfd: qcom-rpm: Driver for the Qualcomm RPM

2014-11-26 Thread Bjorn Andersson
Driver for the Resource Power Manager (RPM) found in Qualcomm 8660, 8960 and 8064 based devices. The driver exposes resources that child drivers can operate on; to implementing regulator, clock and bus frequency drivers. Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- Lee

[PATCH v8 1/3] mfd: devicetree: bindings: Add Qualcomm RPM DT binding

2014-11-26 Thread Bjorn Andersson
Add binding for the Qualcomm Resource Power Manager (RPM) found in 8660, 8960 and 8064 based devices. Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- Removed regulator definition from this patch, as these needs more discussion to be able to implement SoC assisted power save

Re: [RFC 0/2] Qualcomm RPM sleep states

2014-11-26 Thread Bjorn Andersson
On Mon 24 Nov 16:02 PST 2014, Stephen Boyd wrote: On 11/24/2014 01:59 PM, Bjorn Andersson wrote: On Mon 24 Nov 13:19 PST 2014, Stephen Boyd wrote: [..] What exactly are we circumventing? I can only guess that we're talking about the aggregation logic? We're circumventing the fact

Re: [RFC 0/2] Qualcomm RPM sleep states

2014-11-26 Thread Bjorn Andersson
On Tue 25 Nov 12:44 PST 2014, Mark Brown wrote: On Mon, Nov 24, 2014 at 01:19:47PM -0800, Stephen Boyd wrote: On 11/24/2014 10:16 AM, Mark Brown wrote: [..] respectively. The RPM regulator driver aggregates the active set for both the regulators via a max() operation and sends that as a

Re: [PATCH 1/4] drm/msm/hdmi: use HPD interrupt to track connector status change

2014-11-26 Thread Bjorn Andersson
On Wed, Nov 26, 2014 at 12:15 PM, Jilai Wang jil...@codeaurora.org wrote: HPD interrupt can be tracked for each connector, so don't need to poll the connector status for state change. Change-Id: I2c062838af5922d32ce87a50676a45dcaedb44f2 Please remove the Change-Id when sending patches to the

Re: [RFC 0/2] Qualcomm RPM sleep states

2014-11-24 Thread Bjorn Andersson
On Mon 24 Nov 13:19 PST 2014, Stephen Boyd wrote: [..] What exactly are we circumventing? I can only guess that we're talking about the aggregation logic? We're circumventing the fact that the regulator core doesn't have knowledge about our multiple presented views of the same resource.

Re: [PATCH 3/3] regulator: rpm: add support for RPM-controller SMB208

2014-11-21 Thread Bjorn Andersson
. I'm missing both patches 1-3 and the cover letter, what's the story with the series - are there interdependencies? Hi Mark, There are no new dependencies introduced here, patch 1 and 2 are DT and mfd additions. So you can apply this patch independently in your tree. Acked-by: Bjorn Andersson

Re: [RFC 0/2] Qualcomm RPM sleep states

2014-11-21 Thread Bjorn Andersson
On Fri 21 Nov 15:54 PST 2014, Mark Brown wrote: On Fri, Nov 21, 2014 at 03:43:54PM -0800, Stephen Boyd wrote: This sleep set/active set stuff has to do with more than just regulators. It applies to any resource that the RPM provides, but regulators are a primary use case so you're on Cc

Re: [PATCH 1/3] genirq: Allow the irqchip state of an IRQ to be save/restored

2014-11-19 Thread Bjorn Andersson
On Mon, Oct 27, 2014 at 4:47 AM, Marc Zyngier marc.zyng...@arm.com wrote: [...] Agreed, this makes a lot of sense. Will respin it. Any update on this? I have a couple of drivers on the way that needs this (querying level of an interrupt line). Regards, Bjorn -- To unsubscribe from this list:

Re: [PATCH v9 2/9] qcom: spm: Add Subsystem Power Manager driver

2014-11-18 Thread Bjorn Andersson
On Mon, Nov 17, 2014 at 1:32 PM, Daniel Lezcano daniel.lezc...@linaro.org wrote: On 10/25/2014 01:40 AM, Lina Iyer wrote: Hi Lina, [ ... ] +static inline void spm_register_write(struct spm_driver_data *drv, + enum spm_reg reg, u32 val) +{ + if

Re: [RFC 1/2] mfd: qcom-rpm: Expose sleep state resources to clients

2014-11-12 Thread Bjorn Andersson
On Wed 12 Nov 06:45 PST 2014, Lina Iyer wrote: On Wed, Nov 12 2014 at 02:52 -0700, Lee Jones wrote: On Tue, 11 Nov 2014, Bjorn Andersson wrote: On Tue 11 Nov 04:04 PST 2014, Lee Jones wrote: On Mon, 10 Nov 2014, Bjorn Andersson wrote: + writel_relaxed(BIT(state

Re: [RFC 1/2] mfd: qcom-rpm: Expose sleep state resources to clients

2014-11-12 Thread Bjorn Andersson
On Wed 12 Nov 01:52 PST 2014, Lee Jones wrote: On Tue, 11 Nov 2014, Bjorn Andersson wrote: On Tue 11 Nov 04:04 PST 2014, Lee Jones wrote: On Mon, 10 Nov 2014, Bjorn Andersson wrote: Resources exposed from the RPM have an active state that is used during normal

Re: [RFC 1/2] mfd: qcom-rpm: Expose sleep state resources to clients

2014-11-11 Thread Bjorn Andersson
On Tue 11 Nov 04:04 PST 2014, Lee Jones wrote: On Mon, 10 Nov 2014, Bjorn Andersson wrote: Resources exposed from the RPM have an active state that is used during normal operations and a sleep state that is used for HW assisted sleep modes. Expose this in the api to let client drivers

Re: [RFC 2/2] regulator: qcom-rpm: Implement RPM assisted disable

2014-11-11 Thread Bjorn Andersson
On Tue 11 Nov 01:11 PST 2014, Andreas F?rber wrote: Hi, Am 10.11.2014 um 23:52 schrieb Bjorn Andersson: diff --git a/Documentation/devicetree/bindings/mfd/qcom-rpm.txt b/Documentation/devicetree/bindings/mfd/qcom-rpm.txt index 4264021..4671eef 100644 --- a/Documentation/devicetree

Re: [RFC 2/2] regulator: qcom-rpm: Implement RPM assisted disable

2014-11-11 Thread Bjorn Andersson
On Tue 11 Nov 03:59 PST 2014, Lee Jones wrote: On Mon, 10 Nov 2014, Bjorn Andersson wrote: Some regulators are used to power e.g. PLLs that clocks the core we're running on, so we can't turn them off directly; but we do want them off when the core is powered down. To handle

Re: [RFC 2/2] regulator: qcom-rpm: Implement RPM assisted disable

2014-11-11 Thread Bjorn Andersson
On Tue 11 Nov 06:21 PST 2014, Javier Martinez Canillas wrote: Hello Bjorn, Hi Javier, On Mon, Nov 10, 2014 at 11:52 PM, Bjorn Andersson bjorn.anders...@sonymobile.com wrote: Some regulators are used to power e.g. PLLs that clocks the core we're running on, so we can't turn them off

[RFC 0/2] Qualcomm RPM sleep states

2014-11-10 Thread Bjorn Andersson
Bjorn Andersson (2): mfd: qcom-rpm: Expose sleep state resources to clients regulator: qcom-rpm: Implement RPM assisted disable Documentation/devicetree/bindings/mfd/qcom-rpm.txt | 28 drivers/mfd/qcom_rpm.c |9 +-- drivers/regulator/qcom_rpm-regulator.c

[RFC 2/2] regulator: qcom-rpm: Implement RPM assisted disable

2014-11-10 Thread Bjorn Andersson
in sync between the states, so that if the CPU(s) go to sleep with a particular regulator still enabled there will be no change. Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- Documentation/devicetree/bindings/mfd/qcom-rpm.txt | 28 drivers/regulator/qcom_rpm

[RFC 1/2] mfd: qcom-rpm: Expose sleep state resources to clients

2014-11-10 Thread Bjorn Andersson
Resources exposed from the RPM have an active state that is used during normal operations and a sleep state that is used for HW assisted sleep modes. Expose this in the api to let client drivers set the sleep state as well. Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com

Re: [PATCH] mfd: qcom-spmi-pmic: Add support for more chips versions

2014-11-05 Thread Bjorn Andersson
On Tue, Nov 4, 2014 at 5:33 AM, Ivan T. Ivanov iiva...@mm-sol.com wrote: [..] @@ -28,11 +144,27 @@ static int pmic_spmi_probe(struct spmi_device *sdev) { struct device_node *root = sdev-dev.of_node; struct regmap *regmap; + struct property *prop; + int major,

Re: [PATCH] mfd: qcom-spmi-pmic: Add support for more chips versions

2014-11-05 Thread Bjorn Andersson
On Wed, Nov 5, 2014 at 10:31 AM, Ivan T. Ivanov iiva...@mm-sol.com wrote: On Wed, 2014-11-05 at 10:11 -0800, Bjorn Andersson wrote: On Tue, Nov 4, 2014 at 5:33 AM, Ivan T. Ivanov iiva...@mm-sol.com wrote: [..] @@ -28,11 +144,27 @@ static int pmic_spmi_probe(struct spmi_device *sdev

Re: [PATCH v3 2/6] pinctrl: Introduce pinctrl driver for Qualcomm SSBI PMIC's

2014-11-03 Thread Bjorn Andersson
On Mon 03 Nov 00:48 PST 2014, Srinivas Kandagatla wrote: Hi Bjorn, On 20/08/14 23:13, Bjorn Andersson wrote: On Wed, Aug 20, 2014 at 2:28 PM, Bjorn Andersson bjorn.anders...@sonymobile.com wrote: On Wed 20 Aug 01:06 PDT 2014, Srinivas Kandagatla wrote: 2 Looking back at v3.4 kernel

[PATCH v5] hwspinlock: qcom: Add support for Qualcomm HW Mutex block

2014-10-27 Thread Bjorn Andersson
formatting, replaced msm prefix with qcom, cleaned up includes] Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- We need this driver to add support for the shared memory manager, so I'm reviving Kumars patch from a year ago, with some additional sprinkles on top

Re: [PATCH 0/2] Qualcomm PM8941 power key driver

2014-10-24 Thread Bjorn Andersson
On Wed 08 Oct 02:50 PDT 2014, Ivan T. Ivanov wrote: On Tue, 2014-10-07 at 11:46 -0700, Bjorn Andersson wrote: On Tue 07 Oct 02:01 PDT 2014, Ivan T. Ivanov wrote: Hi Bjorn, On Mon, 2014-10-06 at 18:11 -0700, Bjorn Andersson wrote: [..] create mode 100644 drivers/input/misc

Re: [RFC 3/7] mfd: devicetree: bindings: Add Qualcomm SMD based RPM DT binding

2014-10-24 Thread Bjorn Andersson
On Wed 08 Oct 14:47 PDT 2014, Jeffrey Hugo wrote: On 9/30/2014 6:08 PM, Bjorn Andersson wrote: On Tue 30 Sep 16:16 PDT 2014, Jeffrey Hugo wrote: On 9/30/2014 8:37 AM, Bjorn Andersson wrote: [..] That's right, because you have these tables in devicetree in the caf version. You have

Re: [RFC 6/7] mfd: qcom-smd-rpm: Driver for the Qualcomm RPM over SMD

2014-10-24 Thread Bjorn Andersson
On Mon 20 Oct 00:22 PDT 2014, Lee Jones wrote: On Fri, 17 Oct 2014, Bjorn Andersson wrote: On Wed 08 Oct 01:40 PDT 2014, Lee Jones wrote: [...] +static struct qcom_smd_driver qcom_smd_rpm_driver = { + .probe = qcom_smd_rpm_probe, + .remove = qcom_smd_rpm_remove

Re: [PATCH] genirq: Introduce irq_read_line()

2014-10-24 Thread Bjorn Andersson
On Tue, Oct 21, 2014 at 2:34 AM, Marc Zyngier marc.zyng...@arm.com wrote: Hi all, On 21/10/14 10:22, Thomas Gleixner wrote: On Thu, 4 Sep 2014, Bjorn Andersson wrote: On Tue, Aug 19, 2014 at 1:23 PM, Bjorn Andersson bjorn.anders...@sonymobile.com wrote: Introduce the irq_read_line

Re: [PATCH] genirq: Introduce irq_read_line()

2014-10-24 Thread Bjorn Andersson
On Fri, Oct 24, 2014 at 10:59 AM, Marc Zyngier marc.zyng...@arm.com wrote: Hi Bjorn, On 24/10/14 18:31, Bjorn Andersson wrote: On Tue, Oct 21, 2014 at 2:34 AM, Marc Zyngier marc.zyng...@arm.com wrote: [..] I would prefer to see that you had explicit functions for the various things that you

Re: [RFC 4/7] soc: qcom: Add Shared Memory Manager driver

2014-10-17 Thread Bjorn Andersson
On Wed 08 Oct 14:33 PDT 2014, Jeffrey Hugo wrote: Here in my initial detailed pass. I still have some issues that I want to clarify on my end, but I think I have plenty of comments to start with. Thanks Jeff! On 9/29/2014 6:34 PM, Bjorn Andersson wrote: The Shared Memory Manager driver

Re: [PATCH v2 3/3] ARM: dts: qcom: Add SDHC nodes for APQ8084 platform

2014-10-10 Thread Bjorn Andersson
On Tue, Sep 2, 2014 at 8:40 AM, Georgi Djakov gdja...@mm-sol.com wrote: Enable support for the two SD host controllers on the APQ8084 platform by adding the required nodes to the DT files. On the IFC6540 board, the first controller is connected to the onboard eMMC and the second is connected

Re: [PATCH] ARM: qcom: Increase MMC_BLOCK_MINORS in defconfig

2014-10-09 Thread Bjorn Andersson
Good stuff. Reviewed-by: Bjorn Andersson bjorn.anders...@sonymobile.com Regards, Bjorn --- arch/arm/configs/qcom_defconfig |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/configs/qcom_defconfig b/arch/arm/configs/qcom_defconfig index 8c7da33..cd09e12 100644

Re: [PATCH 0/2] Qualcomm PM8941 power key driver

2014-10-07 Thread Bjorn Andersson
On Tue 07 Oct 02:01 PDT 2014, Ivan T. Ivanov wrote: Hi Bjorn, On Mon, 2014-10-06 at 18:11 -0700, Bjorn Andersson wrote: These patches add dt bindings and a device driver for the power key block in the Qualcomm PM8941 pmic. Courtney Cavin (2): input: Add Qualcomm PM8941 power

[PATCH 1/2] input: Add Qualcomm PM8941 power key driver

2014-10-06 Thread Bjorn Andersson
From: Courtney Cavin courtney.ca...@sonymobile.com Signed-off-by: Courtney Cavin courtney.ca...@sonymobile.com Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- drivers/input/misc/Kconfig | 12 +++ drivers/input/misc/Makefile|1 + drivers/input/misc/pm8941

[PATCH 2/2] input: pm8941-pwrkey: Add DT binding documentation

2014-10-06 Thread Bjorn Andersson
From: Courtney Cavin courtney.ca...@sonymobile.com Signed-off-by: Courtney Cavin courtney.ca...@sonymobile.com Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- .../bindings/input/qcom,pm8941-pwrkey.txt | 43 1 file changed, 43 insertions

Re: [PATCH 1/2] input: Add Qualcomm PM8941 power key driver

2014-10-06 Thread Bjorn Andersson
On Mon 06 Oct 18:30 PDT 2014, Dmitry Torokhov wrote: Hi Bjorn, Hi, On Mon, Oct 06, 2014 at 06:12:00PM -0700, Bjorn Andersson wrote: + + rc = devm_request_threaded_irq(pdev-dev, pwrkey-irq, + NULL, pm8941_pwrkey_irq

Re: [PATCH v5 0/4] Qualcomm SPMI PMIC pin controller drivers

2014-10-03 Thread Bjorn Andersson
circuits, which support analog and digital input/output. v4: https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg725568.html Bjorn Andersson (1): pinctrl: Device tree bindings for Qualcomm PMIC GPIO block Ivan T. Ivanov (3): pinctrl: Device tree bindings for Qualcomm PMIC

Re: [RFC 5/7] soc: qcom: Add Shared Memory Driver

2014-10-03 Thread Bjorn Andersson
On Thu 02 Oct 15:38 PDT 2014, Stephen Boyd wrote: On 09/29/14 17:34, Bjorn Andersson wrote: + +#define GET_RX_CHANNEL_INFO(channel, param) \ + (channel-rx_info_word ? \ + channel-rx_info_word-param : \ + channel-rx_info-param) + +#define GET_TX_CHANNEL_INFO

Re: [RFC 4/7] soc: qcom: Add Shared Memory Manager driver

2014-09-30 Thread Bjorn Andersson
On Mon 29 Sep 23:28 PDT 2014, Kiran Padwal wrote: Hi, On Tuesday 30 September 2014 11:47 AM, Kiran Padwal wrote: Hi Bjorn, On Tuesday 30 September 2014 06:04 AM, Bjorn Andersson wrote: [..] + smem-hwlock = of_hwspin_lock_request(pdev-dev.of_node, NULL); Compilation breaks

Re: [RFC 3/7] mfd: devicetree: bindings: Add Qualcomm SMD based RPM DT binding

2014-09-30 Thread Bjorn Andersson
On Tue 30 Sep 06:46 PDT 2014, Kumar Gala wrote: On Sep 29, 2014, at 7:34 PM, Bjorn Andersson bjorn.anders...@sonymobile.com wrote: diff --git a/Documentation/devicetree/bindings/mfd/qcom-rpm-smd.txt b/Documentation/devicetree/bindings/mfd/qcom-rpm-smd.txt new file mode 100644

Re: [RFC 0/7] Qualcomm SMEM, SMD, RPM and regulators

2014-09-30 Thread Bjorn Andersson
On Tue 30 Sep 06:49 PDT 2014, Kumar Gala wrote: On Sep 29, 2014, at 7:34 PM, Bjorn Andersson bjorn.anders...@sonymobile.com wrote: All Qualcomm platforms implements a shared heap among the processors in the SoC, used for sharing data with other parts of the system. One consumer

Re: [PATCH v2 1/4] ARM: dts: apq8064: add RPM regulators support

2014-09-30 Thread Bjorn Andersson
On Tue 30 Sep 07:09 PDT 2014, Srinivas Kandagatla wrote: This patch adds rpm node to apq8064 dt as rpm would be used by other devices for regulator support. Also adds all the regulators in the rpm. Some comments on the compatibles, based on rpm-regulator-8960 msm-3.4. After giving this some

Re: [PATCH v7 1/3] mfd: devicetree: bindings: Add Qualcomm RPM DT binding

2014-09-30 Thread Bjorn Andersson
On Wed 24 Sep 09:39 PDT 2014, Kumar Gala wrote: On Sep 22, 2014, at 6:25 PM, Bjorn Andersson bjorn.anders...@sonymobile.com wrote: [..] diff --git a/Documentation/devicetree/bindings/mfd/qcom-rpm.txt b/Documentation/devicetree/bindings/mfd/qcom-rpm.txt [..] +- qcom,ipc

Re: [PATCH v7 3/3] regulator: qcom-rpm: Regulator driver for the Qualcomm RPM

2014-09-30 Thread Bjorn Andersson
On Wed 24 Sep 06:50 PDT 2014, Kumar Gala wrote: On Sep 24, 2014, at 3:35 AM, Mark Brown broo...@kernel.org wrote: On Mon, Sep 22, 2014 at 04:25:29PM -0700, Bjorn Andersson wrote: Driver for regulators exposed by the Resource Power Manager (RPM) found in Qualcomm 8660, 8960 and 8064

Re: [PATCH v7 1/3] mfd: devicetree: bindings: Add Qualcomm RPM DT binding

2014-09-30 Thread Bjorn Andersson
On Tue 30 Sep 09:02 PDT 2014, Kumar Gala wrote: On Sep 30, 2014, at 10:28 AM, Bjorn Andersson bjorn.anders...@sonymobile.com wrote: On Wed 24 Sep 09:39 PDT 2014, Kumar Gala wrote: On Sep 22, 2014, at 6:25 PM, Bjorn Andersson bjorn.anders...@sonymobile.com wrote

Re: [PATCH v4 3/4] pinctrl: Qualcomm SPMI PMIC GPIO pin controller driver

2014-09-30 Thread Bjorn Andersson
On Wed 24 Sep 06:09 PDT 2014, Ivan T. Ivanov wrote: On Tue, 2014-09-23 at 21:18 -0700, Bjorn Andersson wrote: On Mon 15 Sep 07:44 PDT 2014, Ivan T. Ivanov wrote: snip +static int pmic_gpio_of_xlate(struct gpio_chip *chip, + const struct of_phandle_args

Re: [PATCH 1/4] ARM: DT: apq8064: add rpm support

2014-09-30 Thread Bjorn Andersson
On Tue 30 Sep 11:27 PDT 2014, Stephen Boyd wrote: On 09/29/14 22:02, Bjorn Andersson wrote: On Mon 29 Sep 15:17 PDT 2014, Stephen Boyd wrote: On 09/29/14 02:14, Srinivas Kandagatla wrote: @@ -246,6 +247,24 @@ #reset-cells = 1; }; + apcs

Re: [PATCH 1/4] ARM: DT: apq8064: add rpm support

2014-09-30 Thread Bjorn Andersson
On Tue 30 Sep 12:13 PDT 2014, Stephen Boyd wrote: On 09/30/14 12:00, Bjorn Andersson wrote: Hmm, seems I got that wrong, sorry about that. But do you mean all wrong as in that I use the wrong bit or to some greater extent? Currently all following requests should timeout, but maybe

Re: [RFC 1/7] soc: qcom: Add device tree binding for SMEM

2014-09-30 Thread Bjorn Andersson
On Tue 30 Sep 12:03 PDT 2014, Stephen Boyd wrote: On 09/29/14 17:34, Bjorn Andersson wrote: + +- reg: + Usage: required + Value type: prop-encoded-array + Definition: base address and size pair for each area representing the + shared memory. The first pair

Re: [PATCH] i2c: qup: Fix order of runtime pm initialization

2014-09-30 Thread Bjorn Andersson
On Tue 30 Sep 12:59 PDT 2014, Andy Gross wrote: On Mon, Sep 29, 2014 at 06:53:24PM -0700, Bjorn Andersson wrote: On Mon 29 Sep 15:00 PDT 2014, Andy Gross wrote: The runtime pm calls need to be done before populating the children via the i2c_add_adapter call. If this is not done

Re: [PATCH v4] hwspinlock: qcom: Add support for Qualcomm HW Mutex block

2014-09-30 Thread Bjorn Andersson
On Tue 30 Sep 14:48 PDT 2014, Suman Anna wrote: Hi Bjorn, Thanks for the review, I didn't find the generic binding until after I sent this out. On 09/29/2014 11:35 PM, Bjorn Andersson wrote: [..] diff --git a/Documentation/devicetree/bindings/hwlock/qcom-hwspinlock.txt b

Re: [PATCH v4] hwspinlock: qcom: Add support for Qualcomm HW Mutex block

2014-09-30 Thread Bjorn Andersson
On Tue 30 Sep 15:14 PDT 2014, Jeffrey Hugo wrote: On 9/29/2014 10:35 PM, Bjorn Andersson wrote: [..] +static int qcom_hwspinlock_probe(struct platform_device *pdev) +{ + struct device_node *node = pdev-dev.of_node; + const struct of_device_id *match; + struct hwspinlock_device

Re: [RFC 3/7] mfd: devicetree: bindings: Add Qualcomm SMD based RPM DT binding

2014-09-30 Thread Bjorn Andersson
On Tue 30 Sep 16:16 PDT 2014, Jeffrey Hugo wrote: On 9/30/2014 8:37 AM, Bjorn Andersson wrote: On Tue 30 Sep 06:46 PDT 2014, Kumar Gala wrote: On Sep 29, 2014, at 7:34 PM, Bjorn Andersson bjorn.anders...@sonymobile.com wrote: diff --git a/Documentation/devicetree/bindings/mfd/qcom

[RFC 7/7] regulator: qcom-smd-rpm: Regulator driver for the Qualcomm RPM

2014-09-29 Thread Bjorn Andersson
Driver for regulators exposed by the Resource Power Manager (RPM) found in Qualcomm 8974 based devices. Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- According to the datasheet for the PMIC the regulators are indeed programmed in steps, but the steps seems to vary between

[RFC 6/7] mfd: qcom-smd-rpm: Driver for the Qualcomm RPM over SMD

2014-09-29 Thread Bjorn Andersson
Driver for the Resource Power Manager (RPM) found in Qualcomm 8974 based devices. The driver exposes resources that child drivers can operate on; to implementing regulator, clock and bus frequency drivers. Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- Note

[RFC 4/7] soc: qcom: Add Shared Memory Manager driver

2014-09-29 Thread Bjorn Andersson
The Shared Memory Manager driver implements an interface for allocating and accessing items in the memory area shared among all of the processors in a Qualcomm platform. Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- In later platforms this is extended to support secure smem

[RFC 3/7] mfd: devicetree: bindings: Add Qualcomm SMD based RPM DT binding

2014-09-29 Thread Bjorn Andersson
Add binding documentation for the Qualcomm Resource Power Manager (RPM) using shared memory (Qualcomm SMD) as transport mechanism. This is found in 8974 and newer based devices. The binding currently describes the rpm itself and the regulator subnodes. Signed-off-by: Bjorn Andersson bjorn.anders

[RFC 2/7] soc: qcom: Add device tree binding for SMD

2014-09-29 Thread Bjorn Andersson
Add device tree binding documentation for the Qualcomm Shared Memory Device. Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- I was looking at having one smd node per remote processor - e.g flatten the first and second level. As all the channels, for all the remote processors

[RFC 0/7] Qualcomm SMEM, SMD, RPM and regulators

2014-09-29 Thread Bjorn Andersson
a separate set of patches. Bjorn Andersson (7): soc: qcom: Add device tree binding for SMEM soc: qcom: Add device tree binding for SMD mfd: devicetree: bindings: Add Qualcomm SMD based RPM DT binding soc: qcom: Add Shared Memory Manager driver soc: qcom: Add Shared Memory Driver mfd

<    1   2   3   4   5   6   >