[PATCH 3/3] ARM: dts: qcom: Replace gpio node with pinctrl node

2015-06-05 Thread Bjorn Andersson
Replace the standalone gpio driver with pinctrl-msm as we now have msm8660 support there. Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- arch/arm/boot/dts/qcom-msm8660.dtsi | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/arch/arm/boot/dts/qcom

Re: [PATCH v2 2/2] soc: qcom: Add Shared Memory Manager driver

2015-04-24 Thread Bjorn Andersson
On Thu 23 Apr 14:18 PDT 2015, Jeffrey Hugo wrote: This is different, but I rather quite like its simplicity. Some nits and requested clarifications below Thanks. On 4/11/2015 5:32 PM, Bjorn Andersson wrote: The Shared Memory Manager driver implements an interface for allocating

Re: [PATCH v2 1/2] soc: qcom: Add device tree binding for SMEM

2015-04-23 Thread Bjorn Andersson
On Thu, Apr 23, 2015 at 1:01 PM, Jeffrey Hugo jh...@codeaurora.org wrote: On 4/11/2015 5:32 PM, Bjorn Andersson wrote: Add device tree binding documentation for the Qualcom Shared Memory manager. [..] For my information, is there any intention to support the relocatable smem_region

Re: [PATCH 2/5] ufs: Rename of regulator_set_optimum_mode

2015-04-15 Thread Bjorn Andersson
On Tue 14 Apr 05:11 PDT 2015, Akinobu Mita wrote: 2015-02-12 12:35 GMT+09:00 Bjorn Andersson bjorn.anders...@sonymobile.com: The function regulator_set_optimum_mode() is changing name to regulator_set_load(), so update the code accordingly. Also cleaned up ufshcd_config_vreg_load() while

[PATCH 0/3] Qualcomm 8974 RPM Regulator drivers

2015-04-13 Thread Bjorn Andersson
as well as the regulator driver ontop of this RPM abstraction. It depends on the pending smd patches: https://patchwork.kernel.org/patch/6200611/ Bjorn Andersson (3): mfd: devicetree: bindings: Add Qualcomm SMD based RPM DT binding mfd: qcom-smd-rpm: Driver for the Qualcomm RPM over SMD regulator

[PATCH 3/3] regulator: qcom: smd: Regulator driver for the Qualcomm RPM

2015-04-13 Thread Bjorn Andersson
Driver for regulators exposed by the Resource Power Manager (RPM) found in devices based on Qualcomm 8974 and newer platforms. Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- drivers/regulator/Kconfig | 12 ++ drivers/regulator/Makefile | 1

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

2015-04-13 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

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

2015-04-13 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 --- drivers/mfd/Kconfig

Re: [PATCH 2/3] mfd: qcom-smd-rpm: Driver for the Qualcomm RPM over SMD

2015-04-13 Thread Bjorn Andersson
On Mon 13 Apr 16:16 PDT 2015, Paul Bolle wrote: On Mon, 2015-04-13 at 14:58 -0700, Bjorn Andersson wrote: +MODULE_LICENSE(GPLv2); See the patch you submitted in https://lkml.org/lkml/2015/4/7/824 . Ditto for 3/3. Damn, I apprently popped the patch off my stack and therefor missed

[PATCH v2 2/2] soc: qcom: Add Shared Memory Manager driver

2015-04-11 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 --- Changes since v1: - ioremapping the regions nocache

[PATCH v2 1/2] soc: qcom: Add device tree binding for SMEM

2015-04-11 Thread Bjorn Andersson
Add device tree binding documentation for the Qualcom Shared Memory manager. Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- Changes since v1: - None .../devicetree/bindings/soc/qcom/qcom,smem.txt | 49 ++ 1 file changed, 49 insertions(+) create mode

Re: [PATCH v3 01/11] ARM: dts: apq8064: add RPM regulators support

2015-04-10 Thread Bjorn Andersson
On Fri 10 Apr 13:42 PDT 2015, Srinivas Kandagatla wrote: This patch adds rpm node to apq8064 dt as rpm would be used by other devices for regulator support. Signed-off-by: Srinivas Kandagatla srinivas.kandaga...@linaro.org Reviewed-by: Bjorn Andersson bjorn.anders...@sonymobile.com Regards

Re: [PATCH v3 09/11] ARM: dts: apq8064-ifc6410: Add DT alias for serial port

2015-04-10 Thread Bjorn Andersson
the serial0 label appropriately] Signed-off-by: Pramod Gurav pramod.gu...@smartplayin.com --- The order of the sobs should be reversed, your name should be last as you're the last one touching the patch. Reviewed-by: Bjorn Andersson bjorn.anders...@sonymobile.com Regards, Bjorn -- To unsubscribe from

Re: [PATCH 2/2] soc: qcom: Add Shared Memory Manager driver

2015-04-10 Thread Bjorn Andersson
On Fri 10 Apr 14:30 PDT 2015, Andy Gross wrote: On Fri, Apr 03, 2015 at 04:03:20PM -0700, Bjorn Andersson wrote: snip +static int qcom_smem_alloc_private(struct qcom_smem *smem, + unsigned host, + unsigned item

[PATCH 2/2] soc: qcom: Add Shared Memory Driver

2015-04-10 Thread Bjorn Andersson
This adds the Qualcomm Shared Memory Driver (SMD) providing communication channels to remote processors, ontop of SMEM. Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- Note that this code depends on: https://patchwork.kernel.org/patch/6160431/ drivers/soc/qcom/Kconfig

Re: [PATCH 2/2] soc: qcom: Add Shared Memory Manager driver

2015-04-10 Thread Bjorn Andersson
On Sat 04 Apr 04:16 PDT 2015, Paul Bolle wrote: On Fri, 2015-04-03 at 16:03 -0700, Bjorn Andersson wrote: --- a/drivers/soc/qcom/Kconfig +++ b/drivers/soc/qcom/Kconfig +config QCOM_SMEM + tristate Qualcomm Shared Memory Manager (SMEM) + depends on ARCH_QCOM + help

Re: [PATCH 1/2] soc: qcom: Add device tree binding for Shared Memory Device

2015-04-10 Thread Bjorn Andersson
Corrected spelling of the msm mailing list... On Fri 10 Apr 17:16 PDT 2015, Bjorn Andersson wrote: Add device tree binding documentation for the Qualcomm Shared Memory Device, used for communication between the various CPUs in the Qualcomm SoCs. Signed-off-by: Bjorn Andersson bjorn.anders

Re: [PATCH 1/3] pinctrl: qcom-spmi-gpio: Fix output type configuration

2015-04-09 Thread Bjorn Andersson
On Thu 09 Apr 08:18 PDT 2015, Ivan T. Ivanov wrote: GPIO output type configuration was incorrectly overwritten by strength value. Fix this. Signed-off-by: Ivan T. Ivanov ivan.iva...@linaro.org --- Acked-by: Bjorn Andersson bjorn.anders...@sonymobile.com Regards, Bjorn -- To unsubscribe

Re: [PATCH 08/10] ARM: dts: qcom: Add DT alias for serial port

2015-04-09 Thread Bjorn Andersson
On Thu 09 Apr 01:23 PDT 2015, Srinivas Kandagatla wrote: From: Pramod Gurav pramod.gu...@smartplayin.com Define an alias for serial port present on ifc6410 which is used as console. Signed-off-by: Pramod Gurav pramod.gu...@smartplayin.com --- arch/arm/boot/dts/qcom-apq8064-ifc6410.dts

Re: [PATCH 2/3] pinctrl: qcom-spmi-gpio: Fix input value report

2015-04-09 Thread Bjorn Andersson
though, so there shouldn't be any practical issues with this _today_. But please consider revising pmic_gpio_read() to take a u32* parameter for the data instead. Reviewed-by: Bjorn Andersson bjorn.anders...@sonymobile.com Regards, Bjorn -- To unsubscribe from this list: send the line unsubscribe

Re: [PATCH 3/3] pinctrl: qcom-spmi-mpp: Fix input value report

2015-04-09 Thread Bjorn Andersson
; - } + if (ret 0) + return; + + ret = PMIC_MPP_REG_RT_STS_VAL_MASK; + pad-out_value = ret; Same as with the gpio driver. Reviewed-by: Bjorn Andersson bjorn.anders...@sonymobile.com

Re: [PATCH 01/10] ARM: dts: apq8064: add RPM regulators support

2015-04-09 Thread Bjorn Andersson
On Thu 09 Apr 01:22 PDT 2015, 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. Most content of this patch was originally posted by Stephen Boyd on the list. Signed-off-by:

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

2015-04-08 Thread Bjorn Andersson
of the interrupt according to a parameter set to IRQCHIP_STATE_PENDING, IRQCHIP_STATE_ACTIVE, IRQCHIP_STATE_MASKED or IRQCHIP_STATE_LINE_LEVEL. - irq_set_irqchip_state similarly sets the state of the interrupt. Reviewed-by: Bjorn Andersson bjorn.anders...@sonymobile.com Tested-by: Bjorn

Re: [PATCH v3 2/5] regulator: qcom: Don't enable DRMS in driver

2015-04-07 Thread Bjorn Andersson
On Tue, Apr 7, 2015 at 4:11 AM, Mark Brown broo...@kernel.org wrote: On Mon, Apr 06, 2015 at 04:33:57PM -0700, Bjorn Andersson wrote: The driver itself should not flag regulators as being DRMS compatible, this should come from board or dt files. I'm missing patch 1, please check and resend

Re: [PATCH] pinctrl: Add support for PM8916 GPIO's and MPP's

2015-04-07 Thread Bjorn Andersson
: Acked-by: Bjorn Andersson bjorn.anders...@sonymobile.com Regards, Bjorn -- To unsubscribe from this list: send the line unsubscribe linux-arm-msm in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

[PATCH v3 1/5] mfd: devicetree: bindings: Add Qualcomm RPM regulator subnodes

2015-04-06 Thread Bjorn Andersson
Add the regulator subnodes to the Qualcomm RPM MFD device tree bindings. Reviewed-by: Stephen Boyd sb...@codeaurora.org Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- Changes since v2: - s/notes/nodes from Stephen Documentation/devicetree/bindings/mfd/qcom-rpm.txt | 217

Re: [PATCH v6 1/2] DT: hwspinlock: Add binding documentation for Qualcomm hwmutex

2015-04-06 Thread Bjorn Andersson
On Mon, Apr 6, 2015 at 9:31 AM, Ohad Ben-Cohen o...@wizery.com wrote: On Mon, Apr 6, 2015 at 7:22 PM, Tim Bird tbird...@gmail.com wrote: On Fri, Apr 3, 2015 at 6:55 AM, Ohad Ben-Cohen o...@wizery.com wrote: On Thu, Apr 2, 2015 at 9:11 PM, Tim Bird tbird...@gmail.com wrote: On Wed, Apr 1, 2015

Re: [PATCH v2 0/5] Refactor Qualcomm RPM regulator to single platform_device

2015-04-06 Thread Bjorn Andersson
On Thu, Apr 2, 2015 at 3:57 PM, Stephen Boyd sb...@codeaurora.org wrote: On 04/02/15 15:26, Mark Brown wrote: On Thu, Apr 02, 2015 at 03:00:37PM -0700, Stephen Boyd wrote: What happens with debugfs when you have multiple pmics with the same named regulator? I thought that in this case we

Re: [PATCH v2 5/5] regulator: qcom: Rework to single platform device

2015-04-06 Thread Bjorn Andersson
On Thu, Apr 2, 2015 at 4:02 PM, Stephen Boyd sb...@codeaurora.org wrote: On 04/01/15 15:55, Bjorn Andersson wrote: +static int rpm_reg_probe(struct platform_device *pdev) +{ + const struct rpm_regulator_data *reg; + const struct of_device_id *match; + struct regulator_config

Re: [PATCH v2 0/5] Refactor Qualcomm RPM regulator to single platform_device

2015-04-06 Thread Bjorn Andersson
On Mon, Apr 6, 2015 at 9:51 AM, Mark Brown broo...@kernel.org wrote: On Thu, Apr 02, 2015 at 03:57:16PM -0700, Stephen Boyd wrote: On 04/02/15 15:26, Mark Brown wrote: Guenther sent a patch fixing that a while back. This one? Yes. regulator: Ensure unique regulator debugfs directory

[PATCH 2/2] soc: qcom: Add Shared Memory Manager driver

2015-04-03 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 --- Note that this depends on the hwspinlock device tree patches

[PATCH 1/2] soc: qcom: Add device tree binding for SMEM

2015-04-03 Thread Bjorn Andersson
Add device tree binding documentation for the Qualcom Shared Memory manager. Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- .../devicetree/bindings/soc/qcom/qcom,smem.txt | 49 ++ 1 file changed, 49 insertions(+) create mode 100644 Documentation

Re: [PATCH v2 2/5] regulator: Introduce property to flag drms

2015-04-02 Thread Bjorn Andersson
On Thu, Apr 2, 2015 at 1:54 AM, Mark Brown broo...@kernel.org wrote: On Wed, Apr 01, 2015 at 03:55:43PM -0700, Bjorn Andersson wrote: Introduce regulator-allow-drms to make it possible for board configuration to enable drms for regulators. I don't think this is a good name, nobody unfamiliar

[PATCH v2 0/5] Refactor Qualcomm RPM regulator to single platform_device

2015-04-01 Thread Bjorn Andersson
- something that will be clearer with this binding than the previously suggested. [1] https://lkml.org/lkml/2015/2/26/713 Changes since v1: - Reworked DRMS handling to not have the driver specify the support Bjorn Andersson (5): mfd: devicetree: bindings: Add Qualcomm RPM regulator subnodes

[PATCH v2 1/5] mfd: devicetree: bindings: Add Qualcomm RPM regulator subnodes

2015-04-01 Thread Bjorn Andersson
Add the regulator subnodes to the Qualcomm RPM MFD device tree bindings. Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- Documentation/devicetree/bindings/mfd/qcom-rpm.txt | 217 +++-- 1 file changed, 205 insertions(+), 12 deletions(-) diff --git

[PATCH v2 5/5] regulator: qcom: Rework to single platform device

2015-04-01 Thread Bjorn Andersson
the supply description match the data sheet. Suggested-by: Stephen Boyd sb...@codeaurora.org Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- drivers/regulator/qcom_rpm-regulator.c | 244 ++--- 1 file changed, 161 insertions(+), 83 deletions(-) diff --git

[PATCH v2 4/5] regulator: qcom: Refactor of-parsing code

2015-04-01 Thread Bjorn Andersson
Refactor out all custom property parsing code from the probe function into a function suitable for regulator_desc-of_parse_cb usage. Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- drivers/regulator/qcom_rpm-regulator.c | 141 +++-- 1 file changed

[PATCH v2 3/5] regulator: qcom: Don't enable DRMS in driver

2015-04-01 Thread Bjorn Andersson
The driver itself should not flag regulators as being DRMS compatible, this should come from board or dt files. Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- drivers/regulator/qcom_rpm-regulator.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/regulator

[PATCH v2 2/5] regulator: Introduce property to flag drms

2015-04-01 Thread Bjorn Andersson
Introduce regulator-allow-drms to make it possible for board configuration to enable drms for regulators. Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- Documentation/devicetree/bindings/regulator/regulator.txt | 1 + drivers/regulator/of_regulator.c

Re: [PATCH v3 8/9] eeprom: qfprom: Add bindings for qfprom

2015-03-24 Thread Bjorn Andersson
On Tue, Mar 24, 2015 at 11:31 PM, Srinivas Kandagatla srinivas.kandaga...@linaro.org wrote: This patch adds bindings for qfprom found in QCOM SOCs. QFPROM driver is based on simple eeprom framework. Signed-off-by: Srinivas Kandagatla srinivas.kandaga...@linaro.org ---

[PATCH] regulator: Defer lookup of supply to regulator_get

2015-03-24 Thread Bjorn Andersson
Instead of resolving regulator supplies during registration move this to the time of a consumer retrieving a handle. The benefit is that it's possible for one driver to register regulators with internal dependencies out of order. Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com

[PATCH v8 1/2] DT: hwspinlock: Add binding documentation for Qualcomm hwmutex

2015-03-24 Thread Bjorn Andersson
Add binding documentation for the Qualcomm Hardware Mutex. Reviewed-by: Andy Gross agr...@codeaurora.org Reviewed-by: Jeffrey Hugo jh...@codeaurora.org Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- Changes since v7: - Corrected address, compatible and naming of the tcsr block

[PATCH v8 2/2] hwspinlock: qcom: Add support for Qualcomm HW Mutex block

2015-03-24 Thread Bjorn Andersson
Add driver for Qualcomm Hardware Mutex block found in many Qualcomm SoCs. Based on initial effort by Kumar Gala ga...@codeaurora.org Reviewed-by: Andy Gross agr...@codeaurora.org Reviewed-by: Jeffrey Hugo jh...@codeaurora.org Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com

Re: [PATCH v2] mmc: sdhci-msm: Add support for vendor capabilities registers

2015-03-21 Thread Bjorn Andersson
On Sat, Mar 21, 2015 at 7:50 AM, Georgi Djakov georgi.dja...@linaro.org wrote: Some versions of this controller do not advertise their 3.0v and 8bit bus-width support capabilities. It is required to explicitly set these capabilities for the specific controller versions. [..] diff --git

Re: [PATCH v7 1/2] DT: hwspinlock: Add binding documentation for Qualcomm hwmutex

2015-03-20 Thread Bjorn Andersson
On Fri 20 Mar 13:29 PDT 2015, Andy Gross wrote: On Thu, Mar 19, 2015 at 06:48:10PM -0700, Bjorn Andersson wrote: snip +Example: + + tcsr: syscon@1a40 { typo here, syscon@fd484000. And this syscon is specifically for the tcsr mutex reg area. You're right, I didn't read

Re: [PATCH] mfd: devicetree: qcom_rpm: document IPQ8064 resources

2015-03-19 Thread Bjorn Andersson
QCOM_RPM_NSS_FABRIC_1_CLK135 +#define QCOM_RPM_SMB208_S1a 136 +#define QCOM_RPM_SMB208_S1b 137 +#define QCOM_RPM_SMB208_S2a 138 +#define QCOM_RPM_SMB208_S2b 139 Part of that, Reviewed-by: Bjorn Andersson bjorn.anders

[PATCH v7 2/2] hwspinlock: qcom: Add support for Qualcomm HW Mutex block

2015-03-19 Thread Bjorn Andersson
Add driver for Qualcomm Hardware Mutex block found in many Qualcomm SoCs. Based on initial effort by Kumar Gala ga...@codeaurora.org Reviewed-by: Andy Gross agr...@codeaurora.org Reviewed-by: Jeffrey Hugo jh...@codeaurora.org Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com

[PATCH v7 1/2] DT: hwspinlock: Add binding documentation for Qualcomm hwmutex

2015-03-19 Thread Bjorn Andersson
Add binding documentation for the Qualcomm Hardware Mutex. Reviewed-by: Andy Gross agr...@codeaurora.org Reviewed-by: Jeffrey Hugo jh...@codeaurora.org Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- Changes since v6: - Corrected indentation error in example Changes since v5

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

2015-03-19 Thread Bjorn Andersson
On Mon, Feb 16, 2015 at 10:55 AM, Ivan T. Ivanov iiva...@mm-sol.com wrote: On Fri, 2015-01-23 at 16:19 -0800, Bjorn Andersson wrote: 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

Re: [PATCH] mmc: sdhci-msm: Add support for vendor capabilities registers

2015-03-19 Thread Bjorn Andersson
On Thu, Mar 19, 2015 at 9:21 AM, Georgi Djakov georgi.dja...@linaro.org wrote: [..] Does the 8916 board you have work without bumping the regulator_set_load() (previously regulator_set_optimum_mode())? None of my 8974 boards work reliably without it. My 8916 board seems to be working fine

Re: [PATCH] mmc: sdhci-msm: Add support for vendor capabilities registers

2015-03-19 Thread Bjorn Andersson
On Thu, Mar 19, 2015 at 5:55 AM, Georgi Djakov georgi.dja...@linaro.org wrote: [..] @@ -516,6 +527,22 @@ static int sdhci_msm_probe(struct platform_device *pdev) host_version, ((host_version SDHCI_VENDOR_VER_MASK) SDHCI_VENDOR_VER_SHIFT)); +

Re: [PATCH v6 2/2] hwspinlock: qcom: Add support for Qualcomm HW Mutex block

2015-03-18 Thread Bjorn Andersson
On Thu 12 Mar 12:55 PDT 2015, Lina Iyer wrote: On Thu, Mar 12 2015 at 13:43 -0600, Andy Gross wrote: On Thu, Mar 12, 2015 at 01:31:50PM -0600, Lina Iyer wrote: On Fri, Feb 27 2015 at 15:30 -0700, Bjorn Andersson wrote: [..] Also, talking to Jeff it seems like that out of the 32 locks

Re: [PATCH v6 2/2] hwspinlock: qcom: Add support for Qualcomm HW Mutex block

2015-03-18 Thread Bjorn Andersson
On Thu 12 Mar 15:29 PDT 2015, Lina Iyer wrote: On Fri, Feb 27 2015 at 15:30 -0700, Bjorn Andersson wrote: Add driver for Qualcomm Hardware Mutex block found in many Qualcomm SoCs. Based on initial effort by Kumar Gala ga...@codeaurora.org Signed-off-by: Bjorn Andersson bjorn.anders

Re: [PATCH v6 2/2] hwspinlock: qcom: Add support for Qualcomm HW Mutex block

2015-03-18 Thread Bjorn Andersson
On Thu 12 Mar 12:31 PDT 2015, Lina Iyer wrote: On Fri, Feb 27 2015 at 15:30 -0700, Bjorn Andersson wrote: Add driver for Qualcomm Hardware Mutex block found in many Qualcomm SoCs. Based on initial effort by Kumar Gala ga...@codeaurora.org Signed-off-by: Bjorn Andersson bjorn.anders

Re: [PATCH v6 2/2] hwspinlock: qcom: Add support for Qualcomm HW Mutex block

2015-03-18 Thread Bjorn Andersson
On Wed 18 Mar 09:45 PDT 2015, Lina Iyer wrote: On Wed, Mar 18 2015 at 09:56 -0600, Bjorn Andersson wrote: On Thu 12 Mar 12:31 PDT 2015, Lina Iyer wrote: On Fri, Feb 27 2015 at 15:30 -0700, Bjorn Andersson wrote: [..] +#define QCOM_MUTEX_NUM_LOCKS 32 Also, talking to Jeff it seems

Re: [PATCH v6 1/2] DT: hwspinlock: Add binding documentation for Qualcomm hwmutex

2015-03-12 Thread Bjorn Andersson
On Thu 12 Mar 02:51 PDT 2015, Mark Rutland wrote: On Fri, Feb 27, 2015 at 10:30:16PM +, Bjorn Andersson wrote: Add binding documentation for the Qualcomm Hardware Mutex. Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- I think the conclusion on the dt binding

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

2015-03-12 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 --- Changes since

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

2015-03-12 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 --- Changes since v3: - Use devres helper

Re: [PATCH v2 1/3] devicetree: bindings: Document qcom,msm-id and qcom,board-id

2015-03-11 Thread Bjorn Andersson
On Tue, Mar 10, 2015 at 12:57 PM, Kumar Gala ga...@codeaurora.org wrote: On Mar 10, 2015, at 2:52 PM, Arnd Bergmann a...@arndb.de wrote: On Tuesday 10 March 2015 13:10:08 Kumar Gala wrote: The top level qcom,msm-id and qcom,board-id are utilized by bootloaders on Qualcomm MSM platforms to

Re: [PATCH 4/4] regulator: qcom: Rework to single platform device

2015-03-04 Thread Bjorn Andersson
On Wed 04 Mar 11:35 PST 2015, Stephen Boyd wrote: On 03/02/15 20:25, Bjorn Andersson wrote: + match = of_match_device(rpm_of_match, pdev-dev); + for (reg = match-data; reg-name; reg++) { + vreg = devm_kmalloc(pdev-dev, sizeof(*vreg), GFP_KERNEL); + if (!vreg

Re: [PATCH v2 1/2] pinctrl: qcom: enable generic pinconf

2015-03-04 Thread Bjorn Andersson
...@linaro.org Acked-by: Bjorn Andersson bjorn.anders...@sonymobile.com -- To unsubscribe from this list: send the line unsubscribe linux-arm-msm in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

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

2015-03-04 Thread Bjorn Andersson
this part of the api, but the patch is Acked-by: Bjorn Andersson bjorn.anders...@sonymobile.com default: return -ENOTSUPP; } Regards, Bjorn -- To unsubscribe from this list: send the line unsubscribe linux-arm-msm in the body of a message to majord...@vger.kernel.org More

Re: [PATCH 2/4] regulator: core: Expose init_data to of_parse_cb

2015-03-03 Thread Bjorn Andersson
On Tue 03 Mar 04:50 PST 2015, Mark Brown wrote: On Mon, Mar 02, 2015 at 08:25:38PM -0800, Bjorn Andersson wrote: Expose the newly created init_data to the driver's parse callback so that it can futher enhance it with e.g. constraints of the regulator. Why would the driver need to do

Re: [PATCH 3/4] regulator: qcom: Refactor of-parsing code

2015-03-03 Thread Bjorn Andersson
On Tue 03 Mar 06:13 PST 2015, Mark Brown wrote: On Mon, Mar 02, 2015 at 08:25:39PM -0800, Bjorn Andersson wrote: + if ((vreg-parts-uV.mask || vreg-parts-mV.mask) + (!initdata-constraints.min_uV || !initdata-constraints.max_uV)) { + dev_err(pdev-dev, no voltage

Re: [PATCH 1/4] mfd: devicetree: bindings: Add Qualcomm RPM regulator subnodes

2015-03-03 Thread Bjorn Andersson
On Tue 03 Mar 04:47 PST 2015, Mark Brown wrote: On Mon, Mar 02, 2015 at 08:25:37PM -0800, Bjorn Andersson wrote: +- compatible: + Usage: required + Value type: string + Definition: must be one of: + qcom,rpm-pm8058-regulators + qcom,rpm-pm8901

Re: [PATCH 1/4] mfd: devicetree: bindings: Add Qualcomm RPM regulator subnodes

2015-03-03 Thread Bjorn Andersson
On Tue 03 Mar 10:53 PST 2015, Stephen Boyd wrote: On 03/02/15 20:25, Bjorn Andersson wrote: [..] + +- vin_l1_l2_l12_l18-supply: +- vin_l24-supply: +- vin_l25-supply: +- vin_l27-supply: +- vin_l28-supply: +- vin_lvs_1_3_6-supply: +- vin_lvs2-supply: +- vin_lvs_4_5_7-supply

Re: [PATCH 3/4] regulator: qcom: Refactor of-parsing code

2015-03-03 Thread Bjorn Andersson
On Tue 03 Mar 10:56 PST 2015, Stephen Boyd wrote: On 03/02/15 20:25, Bjorn Andersson wrote: + +static int rpm_reg_probe(struct platform_device *pdev) +{ + struct regulator_init_data *initdata; + const struct qcom_rpm_reg *template; + const struct of_device_id *match

Re: [PATCH 1/4] mfd: devicetree: bindings: Add Qualcomm RPM regulator subnodes

2015-03-03 Thread Bjorn Andersson
On Tue 03 Mar 14:02 PST 2015, Stephen Boyd wrote: On 03/03/15 13:54, Bjorn Andersson wrote: On Tue 03 Mar 10:53 PST 2015, Stephen Boyd wrote: On 03/02/15 20:25, Bjorn Andersson wrote: [..] + +- vin_l1_l2_l12_l18-supply: +- vin_l24-supply: +- vin_l25-supply: +- vin_l27-supply

Re: [PATCH 4/4] regulator: qcom: Rework to single platform device

2015-03-03 Thread Bjorn Andersson
On Tue 03 Mar 14:09 PST 2015, Stephen Boyd wrote: On 03/02/15 20:25, Bjorn Andersson wrote: - config.of_node = pdev-dev.of_node; +static int rpm_reg_probe(struct platform_device *pdev) +{ + const struct rpm_regulator_data *reg; + const struct of_device_id *match; + struct

[PATCH 0/4] Refactor Qualcomm RPM regulator to single platform_device

2015-03-03 Thread Bjorn Andersson
- something that will be clearer with this binding than the previously suggested. [1] https://lkml.org/lkml/2015/2/26/713 Bjorn Andersson (4): mfd: devicetree: bindings: Add Qualcomm RPM regulator subnodes regulator: core: Expose init_data to of_parse_cb regulator: qcom: Refactor of-parsing

Re: [PATCH] regulator: qcom-rpm: Rework for single device

2015-03-03 Thread Bjorn Andersson
On Thu 26 Feb 16:00 PST 2015, Stephen Boyd wrote: The RPM regulators are not individual devices. Creating platform devices for each regulator bloats the kernel's runtime memory footprint by ~12k. Let's rework this driver to be a single platform device for all the RPM regulators. This makes

[PATCH 3/4] regulator: qcom: Refactor of-parsing code

2015-03-03 Thread Bjorn Andersson
Refactor out all custom property parsing code from the probe function into a function suitable for regulator_desc-of_parse_cb usage. Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- This simply moves the parsing code out of probe(), no functional change. drivers/regulator

[PATCH 2/4] regulator: core: Expose init_data to of_parse_cb

2015-03-03 Thread Bjorn Andersson
Expose the newly created init_data to the driver's parse callback so that it can futher enhance it with e.g. constraints of the regulator. Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- This is needed because calling regulator_register() with a of_node and of_match

[PATCH 1/4] mfd: devicetree: bindings: Add Qualcomm RPM regulator subnodes

2015-03-03 Thread Bjorn Andersson
Add the regulator subnodes to the Qualcomm RPM MFD device tree bindings. Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- As the previously accepted binding didn't cover any functionality but registering the mfd core there is no users, hence it's fine to drop the two required

[PATCH v6 1/2] DT: hwspinlock: Add binding documentation for Qualcomm hwmutex

2015-02-27 Thread Bjorn Andersson
Add binding documentation for the Qualcomm Hardware Mutex. Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- I think the conclusion on the dt binding discussion for hwspinlocks was that we're down to having the #hwlock-cells intact. So this version includes that, but non

[PATCH v6 2/2] hwspinlock: qcom: Add support for Qualcomm HW Mutex block

2015-02-27 Thread Bjorn Andersson
Add driver for Qualcomm Hardware Mutex block found in many Qualcomm SoCs. Based on initial effort by Kumar Gala ga...@codeaurora.org Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- As Andy Gross introduced the tcsr syscon we can no longer just ioremap the memory directly, so

Re: [PATCH 01/12] ARM: dts: apq8064: add RPM regulators support

2015-02-26 Thread Bjorn Andersson
On Thu, Feb 26, 2015 at 10:25 AM, Kumar Gala ga...@codeaurora.org wrote: On Feb 23, 2015, at 1:54 AM, Srinivas Kandagatla srinivas.kandaga...@linaro.org 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

Re: [PATCH 01/12] ARM: dts: apq8064: add RPM regulators support

2015-02-26 Thread Bjorn Andersson
On Thu, Feb 26, 2015 at 11:00 AM, Bjorn Andersson bj...@kryo.se wrote: On Sun, Feb 22, 2015 at 11:54 PM, Srinivas Kandagatla srinivas.kandaga...@linaro.org 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

Re: [PATCH 01/12] ARM: dts: apq8064: add RPM regulators support

2015-02-26 Thread Bjorn Andersson
Reviewed-by: Bjorn Andersson bjorn.anders...@sonymobile.com However, this binding is not merged yet and Stephen have requesting a complete redesign of the binding as well as the code. So that has to be concluded first, I presume. Separate of that, as it's highly likely that everyone will follow the pcb

Re: [PATCH 01/12] ARM: dts: apq8064: add RPM regulators support

2015-02-26 Thread Bjorn Andersson
On Thu, Feb 26, 2015 at 12:11 PM, Stephen Boyd sb...@codeaurora.org wrote: On 02/26/15 12:09, Srinivas Kandagatla wrote: On 26/02/15 19:31, Stephen Boyd wrote: On 02/22/15 23:54, Srinivas Kandagatla wrote: +pm8921_s5: pm8921-s5 { +compatible=

Re: [PATCH 0/5] Rename regulator_set_optimum_mode

2015-02-25 Thread Bjorn Andersson
On Wed, Feb 11, 2015 at 7:35 PM, Bjorn Andersson bjorn.anders...@sonymobile.com wrote: Changing the name of the regulator_set_optimum_mode() to regulator_set_load() better reflects that the API is doing. Any comments on this? I'm going to propose a patch to the mmc framework calling this api

Re: [PATCH] mfd: devicetree: bindings: Add Qualcomm RPM regulator subnodes

2015-02-24 Thread Bjorn Andersson
On Wed 18 Feb 18:29 PST 2015, Stephen Boyd wrote: On 02/18/15 13:08, Bjorn Andersson wrote: On Wed, Feb 18, 2015 at 12:28 PM, Stephen Boyd sb...@codeaurora.org wrote: After taking a deeper look at this I've come to the following conclusion: We can save 2100 bytes of data by spreading out

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

2015-02-24 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 --- The details surrounding the OVP spike

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

2015-02-24 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 --- Changes since

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

2015-02-18 Thread Bjorn Andersson
On Tue, Feb 17, 2015 at 6:45 PM, Stephen Boyd sb...@codeaurora.org wrote: On 02/17/15 15:02, Bjorn Andersson wrote: On Thu, Feb 12, 2015 at 8:26 PM, Stephen Boyd sb...@codeaurora.org wrote: [..] This doesn't seem to do anything for the OVP spike mentioned in this patch[1]. Do you see

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

2015-02-17 Thread Bjorn Andersson
On Thu, Feb 12, 2015 at 8:07 PM, Stephen Boyd sb...@codeaurora.org wrote: On 01/29/15 04:48, Ivan T. Ivanov wrote: Otherwise it looks good. Driver is loaded and device is detected properly (i have added readings for type and subtype registers). Do you know where I can measure result from

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

2015-02-17 Thread Bjorn Andersson
On Thu, Feb 12, 2015 at 8:04 PM, Stephen Boyd sb...@codeaurora.org wrote: [..] + +static int pm8941_wled_remove(struct platform_device *pdev) +{ + struct pm8941_wled *wled; + + wled = platform_get_drvdata(pdev); + led_classdev_unregister(wled-cdev); Would be nice to have a

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

2015-02-17 Thread Bjorn Andersson
On Tue, Feb 17, 2015 at 2:14 PM, Bryan Wu coolo...@gmail.com wrote: On Thu, Feb 12, 2015 at 8:04 PM, Stephen Boyd sb...@codeaurora.org wrote: On 01/23/15 16:54, Bjorn Andersson wrote: Thanks for the review, Stephen. Bjorn, could you please update your patch according to Stephen's review. I

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

2015-02-11 Thread Bjorn Andersson
On Wed, Feb 11, 2015 at 10:59 AM, jil...@codeaurora.org wrote: There is one issue to use i2c_smbus_XX functions: i2c_smbus_read_i2c_block_data has limitation with the maximum count I2C_SMBUS_BLOCK_MAX. But in function hdmi_hdcp_recv_ksv_fifo, since the downstream ksv_fifo size will exceed

[PATCH 3/5] usb: phy: ab8500-usb: Rename regulator_set_optimum_mode

2015-02-11 Thread Bjorn Andersson
The function regulator_set_optimum_mode() is changing name to regulator_set_load(), so update the code accordingly. Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- drivers/usb/phy/phy-ab8500-usb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers

[PATCH 1/5] regulator: Rename regulator_set_optimum_mode

2015-02-11 Thread Bjorn Andersson
Rename the regulator_set_optimum_mode() function regulator_set_load() to better represent what's going on. Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- Documentation/power/regulator/consumer.txt | 2 +- drivers/regulator/core.c | 8 include/linux

[PATCH 2/5] ufs: Rename of regulator_set_optimum_mode

2015-02-11 Thread Bjorn Andersson
The function regulator_set_optimum_mode() is changing name to regulator_set_load(), so update the code accordingly. Also cleaned up ufshcd_config_vreg_load() while touching the code. Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- drivers/scsi/ufs/ufshcd.c | 27

[PATCH 4/5] usb: phy: phy-msm-usb: Rename regulator_set_optimum_mode

2015-02-11 Thread Bjorn Andersson
The function regulator_set_optimum_mode() is changing name to regulator_set_load(), so update the code accordingly. Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- drivers/usb/phy/phy-msm-usb.c | 15 +-- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git

[PATCH 5/5] regulator: Drop temporary regulator_set_optimum_mode wrapper

2015-02-11 Thread Bjorn Andersson
Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- include/linux/regulator/consumer.h | 7 --- 1 file changed, 7 deletions(-) diff --git a/include/linux/regulator/consumer.h b/include/linux/regulator/consumer.h index 6d4e9d2..d8944f5 100644 --- a/include/linux/regulator

[PATCH 2/2] regulator: qcom-rpm: Implement set_load and enable drms

2015-02-11 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 | 30 ++ 1 file changed, 30 insertions(+) diff --git a/drivers/regulator/qcom_rpm-regulator.c b/drivers/regulator

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

2015-02-10 Thread Bjorn Andersson
On Fri, Jan 30, 2015 at 2:39 PM, Bjorn Andersson bj...@kryo.se wrote: On Fri, Jan 30, 2015 at 1:51 PM, Bjorn Andersson bj...@kryo.se wrote: 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

Re: [PATCH] mfd: devicetree: bindings: Add Qualcomm RPM regulator subnodes

2015-02-09 Thread Bjorn Andersson
On Thu, Jan 29, 2015 at 5:51 PM, Bjorn Andersson bjorn.anders...@sonymobile.com wrote: Add the regulator subnodes to the Qualcomm RPM MFD device tree bindings. Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- After discussing this back and forth we've concluded that we should

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

2015-02-09 Thread Bjorn Andersson
On Fri, Jan 30, 2015 at 4:27 AM, Mark Brown broo...@kernel.org wrote: On Thu, Jan 29, 2015 at 04:07:42PM -0800, Bjorn Andersson wrote: On Wed 28 Jan 11:52 PST 2015, Mark Brown wrote: This is basically fine but can you please rename this to be something that more directly reflects the fact

Re: [PATCH 6/7] net: wireless: wcn36xx: remove powersaving for wcn3620

2015-02-09 Thread Bjorn Andersson
On Mon, Feb 9, 2015 at 1:28 PM, Andy Green andy.gr...@linaro.org wrote: On 10 February 2015 at 05:11, Bjorn Andersson bj...@kryo.se wrote: On Feb 9, 2015 1:07 PM, Andy Green andy.gr...@linaro.org wrote: On 10 February 2015 at 01:54, Bjorn Andersson bj...@kryo.se wrote: On Sat, Jan 17, 2015

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

2015-02-05 Thread Bjorn Andersson
On Thu, Jan 29, 2015 at 4:07 PM, Bjorn Andersson bjorn.anders...@sonymobile.com wrote: 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

<    1   2   3   4   5   6   >