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

2013-07-25 Thread Bjorn Andersson
On Wed, Jul 24, 2013 at 10:37 AM, Stephen Boyd sb...@codeaurora.org wrote: [snip] + unsigned int i, divisor; + const struct msm_baud_map *entry; + static const struct msm_baud_map table[] = { + { 1536, 0x00, 1 }, + { 768, 0x11, 1 }, +

Re: [PATCH] mmc: sdhci-msm: Add support for MSM chipsets

2013-07-30 Thread Bjorn Andersson
On Tue, Jul 30, 2013 at 8:22 AM, Georgi Djakov gdja...@mm-sol.com wrote: This platform driver adds the support of Secure Digital Host Controller Interface compliant controller in MSM chipsets. [snip] + + sdhc_1: qcom,sdhc@f9824900 { + compatible = qcom,sdhci-msm; +

Re: [PATCH v6 2/2] mmc: sdhci-msm: Initial support for MSM chipsets

2013-10-05 Thread Bjorn Andersson
Hi Georgi, Thanks for working on this, unfortunately it seems like I need to port the rpm regulators to be able to test this. But I did find that... On Fri, Sep 27, 2013 at 9:57 AM, Georgi Djakov gdja...@mm-sol.com wrote: ... +static irqreturn_t sdhci_msm_pwr_irq(int irq, void *data) +{ +

Re: [PATCH RFC v2 3/5] spmi: add generic SPMI controller binding documentation

2013-10-06 Thread Bjorn Andersson
On Tue, Aug 27, 2013 at 2:55 PM, Stephen Warren swar...@wwwdotorg.org wrote: On 08/27/2013 11:01 AM, Josh Cartwright wrote: ... cell 0 - address type (0: master, 1: unique ID, 2: group ID, ...) I think it would make sense to have the master id as a property of the bus, as you could consider

[PATCH 2/3] pinctrl: Add msm8x74 configuration

2013-11-23 Thread Bjorn Andersson
Add initial definition of parameters for pinctrl-msm for the msm8x74 platform. Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- drivers/pinctrl/Kconfig | 4 + drivers/pinctrl/Makefile | 1 + drivers/pinctrl/pinctrl-msm8x74.c | 641

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

2013-11-23 Thread Bjorn Andersson
This adds a pinctrl, pinmux, pinconf and gpiolib driver for the Qualcomm TLMM block. Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- drivers/pinctrl/Kconfig |6 + drivers/pinctrl/Makefile |1 + drivers/pinctrl/pinctrl-msm.c | 1118

[PATCH 3/3] pinctrl: Add documentation for pinctrl-msm8x74

2013-11-23 Thread Bjorn Andersson
This adds initial documentation for the pinctrl-msm8x74 driver. Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- .../bindings/pinctrl/qcom,msm8x74-pinctrl.txt | 86 ++ 1 file changed, 86 insertions(+) create mode 100644 Documentation/devicetree

[PATCH 0/3] pinctrl: Qualcomm 8x74 pinctrl driver

2013-11-23 Thread Bjorn Andersson
and definitions for more SoCs. Bjorn Andersson (3): pinctrl: Add Qualcomm TLMM driver pinctrl: Add msm8x74 configuration pinctrl: Add documentation for pinctrl-msm8x74 .../bindings/pinctrl/qcom,msm8x74-pinctrl.txt | 86 ++ drivers/pinctrl/Kconfig| 10 + drivers

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

2013-12-05 Thread Bjorn Andersson
On Tue 03 Dec 00:50 PST 2013, Linus Walleij wrote: On Sun, Nov 24, 2013 at 12:38 AM, Bjorn Andersson bjorn.anders...@sonymobile.com wrote: This adds a pinctrl, pinmux, pinconf and gpiolib driver for the Qualcomm TLMM block. Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com

[PATCH v2 0/3] pinctrl: Qualcomm 8x74 pinctrl driver

2013-12-05 Thread Bjorn Andersson
* Replaced pinctrl_add_gpio_range with gpiochip_add_pin_range * Other minor updates based on review comments Bjorn Andersson (3): pinctrl: Add Qualcomm TLMM driver pinctrl: Add msm8x74 configuration pinctrl: Add documentation for pinctrl-msm8x74 .../bindings/pinctrl/qcom,msm8x74-pinctrl.txt

[PATCH v2 3/3] pinctrl: Add documentation for pinctrl-msm8x74

2013-12-05 Thread Bjorn Andersson
This adds initial documentation for the pinctrl-msm8x74 driver. Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- .../bindings/pinctrl/qcom,msm8x74-pinctrl.txt | 92 ++ 1 file changed, 92 insertions(+) create mode 100644 Documentation/devicetree

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

2013-12-05 Thread Bjorn Andersson
This adds a pinctrl, pinmux, pinconf and gpiolib driver for the Qualcomm TLMM block. Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- drivers/pinctrl/Kconfig |6 + drivers/pinctrl/Makefile |1 + drivers/pinctrl/pinctrl-msm.c | 1028

[PATCH v2 2/3] pinctrl: Add msm8x74 configuration

2013-12-05 Thread Bjorn Andersson
Add initial definition of parameters for pinctrl-msm for the msm8x74 platform. Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- drivers/pinctrl/Kconfig | 4 + drivers/pinctrl/Makefile | 1 + drivers/pinctrl/pinctrl-msm8x74.c | 636

[PATCH v5 2/2] i2c: New bus driver for the Qualcomm QUP I2C controller

2014-03-13 Thread Bjorn Andersson
(interrupt generated for each block-size data transfer). Cc: Andy Gross agr...@codeaurora.org Cc: Stephen Boyd sb...@codeaurora.org Signed-off-by: Ivan T. Ivanov iiva...@mm-sol.com Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- drivers/i2c/busses/Kconfig | 10 + drivers/i2c

[PATCH v5 1/2] i2c: qup: Add device tree bindings information

2014-03-13 Thread Bjorn Andersson
: reformulated part of binding description added version to compatible cleaned up example] Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- .../devicetree/bindings/i2c/qcom,i2c-qup.txt | 46 1 file changed, 46 insertions(+) create mode 100644

[PATCH v5 0/2] Qualcomm Universal Peripheral (QUP) I2C controller

2014-03-13 Thread Bjorn Andersson
time, so that we actually can execute more than 1 transmission per xfer. Bjorn Andersson (1): i2c: New bus driver for the Qualcomm QUP I2C controller Ivan T. Ivanov (1): i2c: qup: Add device tree bindings information .../devicetree/bindings/i2c/qcom,i2c-qup.txt | 46 ++ drivers/i2c

Re: [PATCH] pinctrl: msm: fix up out-of-order merge conflict

2014-03-14 Thread Bjorn Andersson
ed118a5fd951bd2def8249ee251842c4f81fe4bd pinctrl-msm: Support output-{high,low} configuration introduced a new switchclause using it. Fix this up by removing the offending register assignment. Reported-by: Kbuild test robot fengguang...@intel.com Cc: Stephen Boyd sb...@codeaurora.org Cc: Bjorn Andersson bjorn.anders

Re: linux-next: Tree for Feb 17 (pinctrl-msm)

2014-02-24 Thread Bjorn Andersson
On Mon 24 Feb 06:46 PST 2014, Linus Walleij wrote: On Mon, Feb 17, 2014 at 6:33 PM, Randy Dunlap rdun...@infradead.org wrote: On 02/16/2014 10:23 PM, Stephen Rothwell wrote: Hi all, If you see failures in building this tree due to missing declarations of k..alloc/free, then it may be

Re: [PATCH v3 2/2] i2c: New bus driver for the Qualcomm QUP I2C controller

2014-02-24 Thread Bjorn Andersson
On Thu 20 Feb 16:52 PST 2014, Joe Perches wrote: On Thu, 2014-02-20 at 16:38 -0800, Bjorn Andersson wrote: This bus driver supports the QUP i2c hardware controller in the Qualcomm SOCs. The Qualcomm Universal Peripheral Engine (QUP) is a general purpose data path engine with input

Re: [PATCH v3 2/2] i2c: New bus driver for the Qualcomm QUP I2C controller

2014-02-24 Thread Bjorn Andersson
On Thu 20 Feb 18:53 PST 2014, Emilio L?pez wrote: Hi Bjorn, El 20/02/14 21:38, Bjorn Andersson escribió: [...] + clk_freq = 10; + if (!of_property_read_u32(node, clock-frequency, val)) + clk_freq = val; val will be modified only if no error occurs, so you may

Re: [PATCH v3 2/2] i2c: New bus driver for the Qualcomm QUP I2C controller

2014-02-24 Thread Bjorn Andersson
On Fri 21 Feb 00:16 PST 2014, Maxime Ripard wrote: Hi Bjorn, On Thu, Feb 20, 2014 at 04:38:10PM -0800, Bjorn Andersson wrote: +static int qup_i2c_probe(struct platform_device *pdev) +{ [ snip ] + + qup_i2c_enable_clocks(qup); + [ snip

Re: [PATCH v3 2/2] i2c: New bus driver for the Qualcomm QUP I2C controller

2014-02-24 Thread Bjorn Andersson
On Mon 24 Feb 09:40 PST 2014, Josh Cartwright wrote: On Mon, Feb 24, 2014 at 12:33:10PM +0200, Ivan T. Ivanov wrote: On Fri, 2014-02-21 at 09:35 -0600, Kumar Gala wrote: On Feb 20, 2014, at 6:38 PM, Bjorn Andersson bjorn.anders...@sonymobile.com wrote: This bus driver supports

Re: linux-next: Tree for Feb 17 (pinctrl-msm)

2014-02-24 Thread Bjorn Andersson
then the others to be able to be compiled as a module. FWIW; Reviewed-by: Bjorn Andersson bjorn.anders...@sonymobile.com Josh Regards, Bjorn --8-- Subject: [PATCH] pinctrl: msm: make PINCTRL_MSM bool instead of tristate Modular builds of pinctrl-msm break due to handle_bad_irq being

Re: [PATCH v3 2/2] i2c: New bus driver for the Qualcomm QUP I2C controller

2014-02-25 Thread Bjorn Andersson
On Fri, Feb 21, 2014 at 3:06 AM, Mark Rutland mark.rutl...@arm.com wrote: On Fri, Feb 21, 2014 at 12:38:10AM +, Bjorn Andersson wrote: [...] +static const struct of_device_id qup_i2c_dt_match[] = { + { .compatible = qcom,i2c-qup-v1.1.1 }, + { .compatible = qcom,i2c-qup-v2.1.1

Re: [PATCH] devicetree: bindings: Make msm8974-pinctrl documentation match code

2014-02-27 Thread Bjorn Andersson
On Wed, Feb 26, 2014 at 11:12 AM, Stephen Boyd sb...@codeaurora.org wrote: The compatible string doesn't have an x in it. Fix it. Also remove the qcom prefix from pins and functions as this binding uses the generic pinctrl bindings for the pins and functions. Cc: Bjorn Andersson bjorn.anders

Re: [PATCH v3] hwspinlock/msm: Add support for Qualcomm MSM HW Mutex block

2014-02-27 Thread Bjorn Andersson
Hi Kumar, I pulled this in to my 3.14 tree and gave it a spin. But I keep hitting the case of unlock below telling me that someone else is holding the lock. On Wed, Aug 14, 2013 at 12:09 PM, Kumar Gala ga...@codeaurora.org wrote: [...] + +static int msm_hwspinlock_trylock(struct hwspinlock

Re: [PATCHv4 4/7] hwspinlock/core: add common OF helpers

2014-03-02 Thread Bjorn Andersson
On Sat, Mar 1, 2014 at 9:14 PM, Ohad Ben-Cohen o...@wizery.com wrote: On Mon, Feb 10, 2014 at 9:14 PM, Suman Anna s-a...@ti.com wrote: On 02/07/2014 04:49 PM, Bjorn Andersson wrote: It seems to be standard practice to pass the error value back to the consumer, so you should return ERR_PTR(ret

Re: [PATCH v9 1/3] mmc: sdhci-msm: Qualcomm SDHCI binding documentation

2014-03-02 Thread Bjorn Andersson
On Fri, Feb 28, 2014 at 3:24 AM, Georgi Djakov gdja...@mm-sol.com wrote: This platform driver adds the initial support of Secure Digital Host Controller Interface compliant controller found in Qualcomm chipsets. Hi Georgi, When testing this I was confused by the warnings from sdhci not

Re: [PATCH v9 2/3] mmc: sdhci-msm: Initial support for Qualcomm chipsets

2014-03-03 Thread Bjorn Andersson
On Fri, Feb 28, 2014 at 3:24 AM, Georgi Djakov gdja...@mm-sol.com wrote: This platform driver adds the initial support of Secure Digital Host Controller Interface compliant controller found in Qualcomm chipsets. Hi Georgi, Sorry for reposting this, I have no idea how I managed to send this

Re: [PATCH] pinctrl: msm: drop wake_irqs bitmap

2014-03-06 Thread Bjorn Andersson
good! Acked-by: Bjorn Andersson bjorn.anders...@sonymobile.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org

Re: [PATCH 0/7] pinctrl-msm cleanups

2014-03-07 Thread Bjorn Andersson
++- drivers/pinctrl/pinctrl-msm.h | 5 +-- drivers/pinctrl/pinctrl-msm8x74.c | 1 - 4 files changed, 27 insertions(+), 54 deletions(-) Looks good Acked-by: Bjorn Andersson bjorn.anders...@sonymobile.com -- To unsubscribe from this list: send the line unsubscribe linux

[PATCH v2 1/2] i2c: qup: Add device tree bindings information

2014-01-13 Thread Bjorn Andersson
: reformulated part of binding description and cleaned up example] Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- .../devicetree/bindings/i2c/qcom,i2c-qup.txt | 41 ++ 1 file changed, 41 insertions(+) create mode 100644 Documentation/devicetree/bindings/i2c/qcom

[PATCH v2 2/2] i2c: New bus driver for the QUP I2C controller

2014-01-13 Thread Bjorn Andersson
framework changes splited up qup_i2c_enable() in enable/disable don't overwrite ret value on error in xfer functions initilize core for each transfer remove explicit pinctrl selection use existing clock instead of setting new core clock] Signed-off-by: Bjorn

[PATCH v2 0/2] Qualcomm Universal Peripheral (QUP) I2C controller

2014-01-13 Thread Bjorn Andersson
Picking up Ivans i2c-qup submission from a few months back, as I've now tested and corrected some minor things. I also introduced changes based on the review of v1. Changes from v1: - Cleaned up device tree binding example. - Refrased device tree bindings. - Following changes in the i2c

Re: [PATCHv3 2/6] mailbox: Introduce a new common API

2014-02-18 Thread Bjorn Andersson
On Mon, Feb 17, 2014 at 11:06 PM, Jassi Brar jaswinder.si...@linaro.org wrote: Hi Courtney, On 18 February 2014 06:22, Courtney Cavin courtney.ca...@sonymobile.com wrote: On Sat, Feb 15, 2014 at 07:25:27PM +0100, Jassi Brar wrote: [...] +struct ipc_client { I'm not so sure about the

[PATCH v3 1/2] i2c: qup: Add device tree bindings information

2014-02-20 Thread Bjorn Andersson
: reformulated part of binding description added version to compatible cleaned up example] Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- .../devicetree/bindings/i2c/qcom,i2c-qup.txt | 44 1 file changed, 44 insertions(+) create mode 100644

[PATCH v3 2/2] i2c: New bus driver for the Qualcomm QUP I2C controller

2014-02-20 Thread Bjorn Andersson
(interrupt generated for each block-size data transfer). Cc: Andy Gross agr...@codeaurora.org Cc: Stephen Boyd sb...@codeaurora.org Signed-off-by: Ivan T. Ivanov iiva...@mm-sol.com Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- drivers/i2c/busses/Kconfig | 10 + drivers/i2c

[PATCH v3 0/2] Qualcomm Universal Peripheral (QUP) I2C controller

2014-02-20 Thread Bjorn Andersson
qup_i2c_enable(bool) into enable/disable functions. - Return value was overwritten on error in write_one/read_one. - Initialize the i2c core every time, so that we actually can execute more than 1 transmission per xfer. Bjorn Andersson (1): i2c: New bus driver for the Qualcomm QUP I2C controller Ivan

Re: [PATCH 1/2] pinctrl-msm: Add SPI8 pin definitions

2014-02-10 Thread Bjorn Andersson
...@mm-sol.com Björn can I have your ACK on this patch? Indeed, Acked-by: Bjorn Andersson bjorn.anders...@sonymobile.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org

Re: [PATCH 2/2] ARM: dts: MSM8974: Add pinctrl node

2014-02-10 Thread Bjorn Andersson
inheriting these nodes, closer to the product dts files. Reviewed-by: Bjorn Andersson bjorn.anders...@sonymobile.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo

[PATCH] staging: android: logger: Correct write offset reset on error

2013-07-22 Thread Bjorn Andersson
to be retrieved after acquiring the mutex. Cc: Android Kernel Team kernel-t...@android.com Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- drivers/staging/android/logger.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/staging/android/logger.c b/drivers

[PATCH] ARM: zImage: Allow DTB to override broken ATAG_MEM

2014-05-06 Thread Bjorn Andersson
Support overriding ATAG_MEM, by specifying non-zero content of the /memory/reg property in the appended DTB. This is needed to work around bootloaders passing broken tags. Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- arch/arm/boot/compressed/atags_to_fdt.c | 18

Re: [PATCH] ARM: zImage: Allow DTB to override broken ATAG_MEM

2014-05-06 Thread Bjorn Andersson
On Tue, May 6, 2014 at 10:16 PM, Bjorn Andersson bjorn.anders...@sonymobile.com wrote: [...] +static int fdt_overrides_atag_mem(void *fdt) +{ + const char *memory; + int len = 0; + + memory = getprop(fdt, /memory, reg, len); + if (memory) { + while

Re: [RFC PATCH 0/3] devicetree, qcomm PMIC: fix node name conflict

2014-05-07 Thread Bjorn Andersson
On Tue, May 6, 2014 at 6:32 PM, Rob Herring robherri...@gmail.com wrote: On Tue, May 6, 2014 at 7:48 PM, Frank Rowand frowand.l...@gmail.com wrote: An issue with the path of SPMI nodes under /sys/bus/... was reported in https://lkml.org/lkml/2014/4/23/312. The symptom is that two different

Re: [PATCH] ARM: zImage: Allow DTB to override broken ATAG_MEM

2014-05-07 Thread Bjorn Andersson
On Wed, May 7, 2014 at 1:06 AM, Uwe Kleine-König u.kleine-koe...@pengutronix.de wrote: On Tue, May 06, 2014 at 10:16:16PM -0700, Bjorn Andersson wrote: Support overriding ATAG_MEM, by specifying non-zero content of the /memory/reg property in the appended DTB. This is needed to work around

Re: [PATCH] i2c: qup: Fix pm_runtime_get_sync usage

2014-05-09 Thread Bjorn Andersson
that, thought I tested that path properly. Wolfram, please pick this up as soon as possible as it renders the driver useless if one enables pm runtime. Acked-by: Bjorn Andersson bjorn.anders...@sonymobile.com Regards, Bjorn -- To unsubscribe from this list: send the line unsubscribe linux-kernel

Re: [PATCH v1 00/11] Add Qualcomm SD Card Controller support.

2014-05-09 Thread Bjorn Andersson
On Tue, Apr 29, 2014 at 1:18 AM, srinivas.kandaga...@linaro.org wrote: [...] This patch series adds Qualcomm SD Card Controller support in pl180 mmci driver. QCom SDCC is basically a pl180, but bit more customized, some of the register layouts and offsets are different to the ones mentioned in

Re: [PATCH] RFT: pinctrl: msm: switch to using generic GPIO irqchip helpers

2014-05-09 Thread Bjorn Andersson
On Fri 09 May 01:33 PDT 2014, Linus Walleij wrote: On Tue, Apr 29, 2014 at 8:06 PM, Linus Walleij linus.wall...@linaro.org wrote: This switches the Qualcomm MSM pin control driver over to using the generic GPIO irqchip helpers. Cc: Bjorn Andersson bjorn.anders...@sonymobile.com Cc

Re: [Patch v2] pinctrl: msm: Add more MSM8X74 pin definitions

2014-05-09 Thread Bjorn Andersson
On Fri 09 May 10:52 PDT 2014, Andy Gross wrote: This patch adds pin definitiones for the MSM8x74 TLMM. New definitions include: BLSP devices (I2C, UART, UART flow control, SPI, and UIM), mi2s, gp clk, pdm, gcc clk, cci_timer, cci_i2c, cam_clk, hsic, tsif, sdc3, sdc4, and other assorted

[PATCH] pinctrl: msm: Add msm8960 definitions

2014-06-10 Thread Bjorn Andersson
Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- .../bindings/pinctrl/qcom,msm8960-pinctrl.txt | 108 ++ drivers/pinctrl/Kconfig|8 + drivers/pinctrl/Makefile |1 + drivers/pinctrl/pinctrl-msm8960.c

[PATCH v2 2/3] soc: qcom-rpm: Driver for the Qualcomm RPM

2014-06-12 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 --- drivers

[PATCH v2 0/3] Qualcomm Resource Power Manager driver

2014-06-12 Thread Bjorn Andersson
. - Using set_voltage_sel instead of rolling 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): soc: devicetree: bindings: Add Qualcomm RPM DT binding soc: qcom-rpm

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

2014-06-12 Thread Bjorn Andersson
Driver for regulators exposed by the Resource Power Manager (RPM) found in Qualcomm 8660, 8960 and 8064 based devices. Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- drivers/regulator/Kconfig | 12 + drivers/regulator/Makefile | 1 + drivers

[PATCH v2 1/3] soc: devicetree: bindings: Add Qualcomm RPM DT binding

2014-06-12 Thread Bjorn Andersson
Add binding for the Qualcomm Resource Power Manager (RPM) found in 8660, 8960 and 8064 based devices. The binding currently describes the rpm itself and the regulator subnodes. Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- .../devicetree/bindings/soc/qcom/qcom,rpm.txt

Re: [PATCH v2 0/3] Qualcomm Resource Power Manager driver

2014-06-12 Thread Bjorn Andersson
On Thu, Jun 12, 2014 at 10:33 AM, Bjorn Andersson bjorn.anders...@sonymobile.com wrote: Changes since v1: - Moved rpm driver to drivers/soc [...] include/linux/mfd/qcom_rpm.h | 12 + Missed the last one in the move... s/mfd/soc/ Will wait a little before sending out

Re: [PATCH RFC 00/12] Add Qualcomm SD Card Controller support.

2014-05-19 Thread Bjorn Andersson
On Mon, Apr 21, 2014 at 2:43 PM, srinivas.kandaga...@linaro.org wrote: From: Srinivas Kandagatla srinivas.kandaga...@linaro.org [snip] This patches are tested in PIO mode on IFC8064 board with both eMMC and external SD card. I would appreciate any feedback/suggestions on the overall

Re: [PATCHv5 2/4] mailbox: Introduce framework for mailbox

2014-05-19 Thread Bjorn Andersson
On Mon, May 19, 2014 at 11:03 AM, Jassi Brar jaswinder.si...@linaro.org wrote: On 19 May 2014 18:38, Arnd Bergmann a...@arndb.de wrote: On Friday 16 May 2014 19:03:25 Jassi Brar wrote: [...] Do you have an example for a platform like that? I'd expect that normally we can have a boot loader

Re: [PATCH 0/3] Qualcomm Resource Power Manager driver

2014-05-29 Thread Bjorn Andersson
On Wed, May 28, 2014 at 10:06 AM, Kumar Gala ga...@codeaurora.org wrote: It is the purpose so that as we see common patterns between either drivers/soc/VENDOR we can refactor in the future. However, we need to all a little time for those patterns to emerge rather than shoe horning in

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

2014-05-29 Thread Bjorn Andersson
On Wed, May 28, 2014 at 9:34 AM, Kumar Gala ga...@codeaurora.org wrote: On May 27, 2014, at 12:28 PM, Bjorn Andersson bjorn.anders...@sonymobile.com wrote: Add binding for the Qualcomm Resource Power Manager (RPM) found in 8660, 8960 and 8064 based devices. The binding currently describes

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

2014-05-29 Thread Bjorn Andersson
On Thu, May 29, 2014 at 9:19 AM, Srinivas Kandagatla srinivas.kandaga...@linaro.org wrote: +- reg: + Usage: required + Value type: prop-encoded-array + Definition: two entries specifying the RPM's message ram and ipc register + +- reg-names: + Usage: required +

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

2014-05-29 Thread Bjorn Andersson
On Thu, May 29, 2014 at 9:54 AM, Lee Jones lee.jo...@linaro.org wrote: diff --git a/include/dt-bindings/mfd/qcom_rpm.h b/include/dt-bindings/mfd/qcom_rpm.h new file mode 100644 index 000..277e789 --- /dev/null +++ b/include/dt-bindings/mfd/qcom_rpm.h @@ -0,0 +1,142 @@ +/* + * This

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

2014-05-29 Thread Bjorn Andersson
On Thu, May 29, 2014 at 9:19 AM, Srinivas Kandagatla srinivas.kandaga...@linaro.org wrote: +++ b/drivers/mfd/qcom_rpm.c [...] +struct qcom_rpm { + struct device *dev; + struct completion ack; + struct mutex lock; + + void __iomem *status_regs; + void __iomem

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

2014-05-29 Thread Bjorn Andersson
On Wed, May 28, 2014 at 9:55 AM, Mark Brown broo...@kernel.org wrote: On Tue, May 27, 2014 at 10:28:41AM -0700, Bjorn Andersson wrote: +static int rpm_reg_set_voltage(struct regulator_dev *rdev, +int min_uV, int max_uV, +unsigned

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

2014-05-29 Thread Bjorn Andersson
On Thu, May 29, 2014 at 2:18 PM, Mark Brown broo...@kernel.org wrote: On Thu, May 29, 2014 at 02:03:40PM -0700, Bjorn Andersson wrote: Please fix your mailer to word wrap at less than 80 columns so quoted text is legible. The hardware in this case is a pmic shared by all cpus in the system

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

2014-05-29 Thread Bjorn Andersson
On Thu, May 29, 2014 at 2:41 PM, Srinivas Kandagatla srinivas.kandaga...@linaro.org wrote: Although we will not have more than one rpm in a system and therefore not instatiate this driver multiple times I do not want to run it off the global state. I agree. Why not make a separate data

Re: [PATCH v2 00/14] Add Qualcomm SD Card Controller support

2014-05-23 Thread Bjorn Andersson
On Fri, May 23, 2014 at 1:11 AM, Srinivas Kandagatla srinivas.kandaga...@linaro.org wrote: On 23/05/14 08:50, Ulf Hansson wrote: [...] It seems like you had some CRC issues during read/write? Did you manage to resolve that issue? Bjorn is using different SOC and board than the IFC6410 Am

Re: [PATCH v2 00/14] Add Qualcomm SD Card Controller support

2014-05-23 Thread Bjorn Andersson
On Fri, May 23, 2014 at 9:50 AM, Srinivas Kandagatla srinivas.kandaga...@linaro.org wrote: Hi Bjorn, Thanks for the update. Hi Srini, After pulling in Ulfs next branch again and reapplying v3 my issues are now gone. Not sure what I screwed up when I merged v2, this seems to work just fine

[PATCH] pinctrl: msm: Add missing sdc1 and sdc3 groups for apq8064

2014-05-23 Thread Bjorn Andersson
Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- drivers/pinctrl/pinctrl-apq8064.c | 21 ++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/drivers/pinctrl/pinctrl-apq8064.c b/drivers/pinctrl/pinctrl-apq8064.c index 23c4c21..3adf9fd 100644

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

2014-05-27 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 --- drivers

[PATCH 0/3] Qualcomm Resource Power Manager driver

2014-05-27 Thread Bjorn Andersson
in these devices. Bjorn Andersson (3): mfd: devicetree: bindings: Add Qualcomm RPM DT binding mfd: qcom-rpm: Driver for the Qualcomm RPM regulator: qcom-rpm: Regulator driver for the Qualcomm RPM Documentation/devicetree/bindings/mfd/qcom,rpm.txt | 283 +++ drivers/mfd/Kconfig

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

2014-05-27 Thread Bjorn Andersson
Driver for regulators exposed by the Resource Power Manager (RPM) found in Qualcomm 8660, 8960 and 8064 based devices. Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- drivers/regulator/Kconfig | 12 + drivers/regulator/Makefile | 1 + drivers

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

2014-05-27 Thread Bjorn Andersson
Add binding for the Qualcomm Resource Power Manager (RPM) found in 8660, 8960 and 8064 based devices. The binding currently describes the rpm itself and the regulator subnodes. Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- Documentation/devicetree/bindings/mfd/qcom,rpm.txt

[PATCH v2] pinctrl: msm: Add missing sdc1 and sdc3 groups

2014-05-27 Thread Bjorn Andersson
Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- Thought I already sent you parts of this previously, sorry about that. This should apply on your devel branch. drivers/pinctrl/pinctrl-apq8064.c | 47 +++ 1 file changed, 47 insertions(+) diff

Re: [PATCH 0/3] Qualcomm Resource Power Manager driver

2014-05-28 Thread Bjorn Andersson
On Wed, May 28, 2014 at 9:23 AM, Kumar Gala ga...@codeaurora.org wrote: On May 27, 2014, at 12:28 PM, Bjorn Andersson bjorn.anders...@sonymobile.com wrote: This series adds a regulator driver for the Resource Power Manager found in Qualcomm 8660, 8960 and 8064 based devices. The RPM

Re: [Patch v3] pinctrl: msm: Add more MSM8X74 pin definitions

2014-05-12 Thread Bjorn Andersson
pins. Signed-off-by: Andy Gross agr...@codeaurora.org Acked-By: Bjorn Andersson bjorn.anders...@sonymobile.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo

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

2014-06-16 Thread Bjorn Andersson
Driver for regulators exposed by the Resource Power Manager (RPM) found in Qualcomm 8660, 8960 and 8064 based devices. Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- drivers/regulator/Kconfig | 12 + drivers/regulator/Makefile | 1 + drivers

[PATCH v3 2/3] soc: qcom-rpm: Driver for the Qualcomm RPM

2014-06-16 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 --- drivers

[PATCH v3 0/3] Qualcomm Resource Power Manager driver

2014-06-16 Thread Bjorn Andersson
request. - Added devicetree property to enable pull down. Bjorn Andersson (3): soc: devicetree: bindings: Add Qualcomm RPM DT binding soc: qcom-rpm: Driver for the Qualcomm RPM regulator: qcom-rpm: Regulator driver for the Qualcomm RPM .../devicetree/bindings/soc/qcom/qcom,rpm.txt | 261

[PATCH v3 1/3] soc: devicetree: bindings: Add Qualcomm RPM DT binding

2014-06-16 Thread Bjorn Andersson
Add binding for the Qualcomm Resource Power Manager (RPM) found in 8660, 8960 and 8064 based devices. The binding currently describes the rpm itself and the regulator subnodes. Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- .../devicetree/bindings/soc/qcom/qcom,rpm.txt

Re: [PATCH v3 0/3] Qualcomm Resource Power Manager driver

2014-06-17 Thread Bjorn Andersson
On Tue, Jun 17, 2014 at 10:07 AM, Kevin Hilman khil...@linaro.org wrote: +Paul Walmsley Bjorn Andersson bjorn.anders...@sonymobile.com writes: This series adds a regulator driver for the Resource Power Manager found in Qualcomm 8660, 8960 and 8064 based devices. The RPM driver exposes

Re: [PATCH v3 1/3] soc: devicetree: bindings: Add Qualcomm RPM DT binding

2014-06-17 Thread Bjorn Andersson
On Tue, Jun 17, 2014 at 4:59 PM, Stephen Boyd sb...@codeaurora.org wrote: [...] because ipc is actually a register inside the Krait complex's global clock control/distribution hardware block (it's located at 0x2011000). From what I can tell, this is the only non-clock/power register inside

Re: [PATCH] pinctrl: qcom: Add BUS_HOLD pin bias

2014-06-17 Thread Bjorn Andersson
On Tue, Jun 17, 2014 at 9:49 PM, Andy Gross agr...@codeaurora.org wrote: This patch adds the BUS_HOLD (Keeper) bias option for pins. Signed-off-by: Andy Gross agr...@codeaurora.org Acked-by: Bjorn Andersson bjorn.anders...@sonymobile.com -- To unsubscribe from this list: send the line

Re: [PATCH] pinctrl: msm: Add msm8960 definitions

2014-06-17 Thread Bjorn Andersson
On Tue, Jun 17, 2014 at 3:00 PM, Andy Gross agr...@codeaurora.org wrote: On Tue, Jun 10, 2014 at 11:25:23AM -0700, Bjorn Andersson wrote: In general, it all looks good. I only have 2 areas of concern. The first is a nit and it has to do with alternate pins for functions. There really

[PATCH] regulator: core: Make regulator object reflect configured voltage

2014-02-03 Thread Bjorn Andersson
this difference in the consumer driver. Eliminate this difference by populating the min_uV and max_uV of the newly created regulator from the constraints so that calles to regulator_set_voltage is considered no-ops and not a failure. Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com

Re: [PATCH] regulator: core: Make regulator object reflect configured voltage

2014-02-04 Thread Bjorn Andersson
On Tue, Feb 4, 2014 at 3:05 AM, Mark Brown broo...@kernel.org wrote: On Mon, Feb 03, 2014 at 09:54:28PM -0800, Bjorn Andersson wrote: + /* + * Make the regulator reflect the configured voltage selected in + * machine_constraints_voltage() + */ + if (rdev-constraints

Re: [PATCH] regulator: core: Make regulator object reflect configured voltage

2014-02-04 Thread Bjorn Andersson
On Tue, Feb 4, 2014 at 10:18 AM, Mark Brown broo...@kernel.org wrote: On Tue, Feb 04, 2014 at 10:02:14AM -0800, Bjorn Andersson wrote: On Tue, Feb 4, 2014 at 3:05 AM, Mark Brown broo...@kernel.org wrote: Why not do this at the time we apply the voltage? That would seem to be more robust

[PATCH] pinctrl-msm: Support output-{high,low} configuration

2014-02-04 Thread Bjorn Andersson
Add support for configuring pins as output with value as from the pinconf-generic interface. Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- drivers/pinctrl/pinctrl-msm.c | 27 +++ 1 file changed, 27 insertions(+) diff --git a/drivers/pinctrl/pinctrl

Re: [PATCH] regulator: core: Make regulator object reflect configured voltage

2014-02-05 Thread Bjorn Andersson
On Tue, Feb 4, 2014 at 12:00 PM, Mark Brown broo...@kernel.org wrote: On Tue, Feb 04, 2014 at 11:09:03AM -0800, Bjorn Andersson wrote: I have a regulator that's being configured from DT as: regulator-min-microvolt = 295; regulator-max-microvolt = 295; In the consumer I do

[PATCH] regulator: core: Allow regulator_set_voltage for fixed regulators

2014-02-05 Thread Bjorn Andersson
Make it okay to call regulator_set_voltage on regulators with fixed voltage if the requested range overlaps the current/configured voltage. Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- drivers/regulator/core.c | 14 ++ 1 file changed, 14 insertions(+) diff

Re: [PATCH v2 1/2] i2c: qup: Add device tree bindings information

2014-01-16 Thread Bjorn Andersson
it to work on our boards. I did modify the wording of most of these to match how it is written in the other Qualcomm definitions. @Mark, would you rather have me change this to your suggested wording? On Mon, 2014-01-13 at 16:30 -0800, Bjorn Andersson wrote: From: Ivan T. Ivanov iiva

[PATCH v3 1/2] i2c: qup: Add device tree bindings information

2014-01-17 Thread Bjorn Andersson
: reformulated part of binding description and cleaned up example] Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- .../devicetree/bindings/i2c/qcom,i2c-qup.txt | 41 ++ 1 file changed, 41 insertions(+) create mode 100644 Documentation/devicetree/bindings/i2c/qcom

[PATCH v3 2/2] i2c: New bus driver for the QUP I2C controller

2014-01-17 Thread Bjorn Andersson
framework changes splited up qup_i2c_enable() in enable/disable don't overwrite ret value on error in xfer functions initilize core for each transfer remove explicit pinctrl selection use existing clock instead of setting new core clock] Signed-off-by: Bjorn

[PATCH v3 0/2] Qualcomm Universal Peripheral (QUP) I2C controller

2014-01-17 Thread Bjorn Andersson
Continuing on Ivans i2c-qup series. Changes from v2: - Removed unused variables and includes - Corrected read logic in irq handler - Made the polling loop in qup_i2c_poll_state() less arbitrary - Only building suspend/resume if CONFIG_PM_SLEEP Changes from v1: - Cleaned up device tree

Re: [PATCH v3 3/6] pinctrl: Make PINCTRL selectable by defconfig/menuconfig

2013-12-16 Thread Bjorn Andersson
On Mon 16 Dec 02:01 PST 2013, Linus Walleij wrote: On Thu, Dec 12, 2013 at 10:35 PM, Christian Daudt b...@fixthebug.org wrote: I had requested this from Sherman. The reason is so that pinctrl can be selectable through defconfig, instead of through SoC select statements. And the reason

Re: [PATCH 1/2] gpio: msm: Fix irq mask/unmask by writing bits instead of numbers

2013-12-12 Thread Bjorn Andersson
On Thu 12 Dec 11:02 PST 2013, Linus Walleij wrote: On Wed, Dec 11, 2013 at 12:19 AM, Stephen Boyd sb...@codeaurora.org wrote: We should be writing bits here but instead we're writing the numbers that correspond to the bits we want to write. Fix it by wrapping the numbers in the BIT()

Re: [PATCH v2 2/3] pinctrl: Add msm8x74 configuration

2013-12-12 Thread Bjorn Andersson
On Thu 12 Dec 11:15 PST 2013, Linus Walleij wrote: On Wed, Dec 11, 2013 at 2:49 AM, Stephen Boyd sb...@codeaurora.org wrote: ... I don't follow what Linus is recommending. How could .gpio_request_enable()/.gpio_disable_free() help us here? That removes the need to define a single group

[PATCH 0/4] pinctrl-msm: Fixes for various issues

2013-12-14 Thread Bjorn Andersson
Various fixes based on feedback from Stephen Boyd and kbuild test robot Bjorn Andersson (4): pinctrl-msm: Fix spelling misstakes and missing consts pinctrl-msm: Tidy up error handling pinctrl-msm: Remove separate allocation of bitmaps pinctrl-msm: Rename compatible to be more specific

[PATCH 1/4] pinctrl-msm: Fix spelling misstakes and missing consts

2013-12-14 Thread Bjorn Andersson
Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- drivers/pinctrl/pinctrl-msm.c | 14 +++--- drivers/pinctrl/pinctrl-msm8x74.c |4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/pinctrl/pinctrl-msm.c b/drivers/pinctrl/pinctrl-msm.c

[PATCH 2/4] pinctrl-msm: Tidy up error handling

2013-12-14 Thread Bjorn Andersson
Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- drivers/pinctrl/pinctrl-msm.c | 76 ++--- 1 file changed, 26 insertions(+), 50 deletions(-) diff --git a/drivers/pinctrl/pinctrl-msm.c b/drivers/pinctrl/pinctrl-msm.c index 322bc0a..c1a3053

[PATCH 3/4] pinctrl-msm: Remove separate allocation of bitmaps

2013-12-14 Thread Bjorn Andersson
Make the bitmaps part of the msm_pinctrl allocation instead of separately allocating them. Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- drivers/pinctrl/pinctrl-msm.c | 32 +--- 1 file changed, 5 insertions(+), 27 deletions(-) diff --git

  1   2   3   4   5   6   7   8   9   10   >