[PATCH 0/2] mmc: pwrseq: Add support to multiple gpios in pwrseq simple

2015-01-28 Thread Srinivas Kandagatla
could not get BT and WLAN working at same time on IFC6410. Thanks, srini Srinivas Kandagatla (2): mmc: pwrseq: Add support to control multiple gpios in simple pwrseq mmc: pwrseq: Update document with multiple gpios support .../devicetree/bindings/mmc/mmc-pwrseq-simple.txt | 7 ++- drivers/mmc

[PATCH 2/2] mmc: pwrseq: Update document with multiple gpios support

2015-01-28 Thread Srinivas Kandagatla
This patch updates the text and examples the mmc pwrseq document with multiple gpios support. Typical example is WLAN and BT chips on SDIO bus. Signed-off-by: Srinivas Kandagatla --- Documentation/devicetree/bindings/mmc/mmc-pwrseq-simple.txt | 7 --- 1 file changed, 4 insertions(+), 3

Re: [PATCH 2/5] mmc: pwrseq_simple: Extend to support more pins

2015-01-28 Thread Srinivas Kandagatla
On 28/01/15 16:13, Javier Martinez Canillas wrote: Hello Srinivas, Thanks a lot for your feedback. On 01/28/2015 03:01 PM, Srinivas Kandagatla wrote: Hi Javier, You are in a lead of 3 hrs from me.. Surprisingly I send very much same patch just few Mins ago :-) :-) I didn't fin

Re: [PATCH 0/2] mmc: pwrseq: Add support to multiple gpios in pwrseq simple

2015-01-28 Thread Srinivas Kandagatla
On 28/01/15 13:35, Ulf Hansson wrote: On 28 January 2015 at 14:16, Srinivas Kandagatla wrote: This patchset adds support to reset/powerup multiple gpio pins on a given sdio bus. The use case is simple, on sdio we could have multiple devices like WLAN, BT which are controlled by there own

[PATCH v2] thermal: Fix examples in DT documentation

2015-01-28 Thread Srinivas Kandagatla
There are various issues with the examples in this documentation, some of the DT labels are invalid and one of the macro THERMAL_NO_LIMITS referenced is not available as well. This patch attempts to fix such errors in the documentation. Signed-off-by: Srinivas Kandagatla --- Changes Since v1

[PATCH 1/2] mmc: pwrseq: Add support to control multiple gpios in simple pwrseq

2015-01-28 Thread Srinivas Kandagatla
not get BT and WLAN working at same time on IFC6410. Signed-off-by: Srinivas Kandagatla --- drivers/mmc/core/pwrseq_simple.c | 64 1 file changed, 45 insertions(+), 19 deletions(-) diff --git a/drivers/mmc/core/pwrseq_simple.c b/drivers/mmc/core

[PATCH v4 00/10] Add simple EEPROM Framework via regmap.

2015-03-30 Thread Srinivas Kandagatla
ort. * Move kerneldoc to the src files spotted by Mark Brown. * Remove local list and do eeprom lookup by using class_find_device() Thanks, srini Maxime Ripard (1): eeprom: sunxi: Move the SID driver to the eeprom framework Srinivas Kandagatla (9): regmap: Introduce regmap_get_max_r

[PATCH v4 01/10] regmap: Introduce regmap_get_max_register.

2015-03-30 Thread Srinivas Kandagatla
This patch introduces regmap_get_max_register() function which would be used by the infrastructures like eeprom framework built on top of regmap. Signed-off-by: Srinivas Kandagatla --- drivers/base/regmap/regmap.c | 12 include/linux/regmap.h | 7 +++ 2 files changed, 19

[PATCH v4 02/10] regmap: Introduce regmap_get_reg_stride.

2015-03-30 Thread Srinivas Kandagatla
This patch introduces regmap_get_reg_stride() function which would be used by the infrastructures like eeprom framework built on top of regmap. Mostly this function would be used for sanity checks on inputs within such infrastructure. Signed-off-by: Srinivas Kandagatla --- drivers/base/regmap

[PATCH v4 03/10] eeprom: Add a simple EEPROM framework for eeprom providers

2015-03-30 Thread Srinivas Kandagatla
eeprom framework] Signed-off-by: Srinivas Kandagatla --- drivers/Kconfig | 2 + drivers/Makefile| 1 + drivers/eeprom/Kconfig | 10 ++ drivers/eeprom/Makefile | 6 ++ drivers/eeprom/core.c | 233

[PATCH v4 04/10] eeprom: Add a simple EEPROM framework for eeprom consumers

2015-03-30 Thread Srinivas Kandagatla
the framework] Signed-off-by: Srinivas Kandagatla --- drivers/eeprom/core.c | 271 include/linux/eeprom-consumer.h | 61 + 2 files changed, 332 insertions(+) create mode 100644 include/linux/eeprom-consumer.h diff --git a/drivers

[PATCH v4 05/10] eeprom: Add bindings for simple eeprom framework

2015-03-30 Thread Srinivas Kandagatla
This patch adds bindings for simple eeprom framework which allows eeprom consumers to talk to eeprom providers to get access to eeprom cell data. Signed-off-by: Maxime Ripard [Maxime Ripard: intial version of eeprom framework] Signed-off-by: Srinivas Kandagatla --- .../devicetree/bindings

[PATCH v4 09/10] eeprom: sunxi: Move the SID driver to the eeprom framework

2015-03-30 Thread Srinivas Kandagatla
-by: Srinivas Kandagatla --- Documentation/ABI/testing/sysfs-driver-sunxi-sid | 22 --- .../bindings/eeprom/allwinner,sunxi-sid.txt| 21 +++ .../bindings/misc/allwinner,sunxi-sid.txt | 17 --- drivers/eeprom/Kconfig | 11 ++ drivers/eeprom

[PATCH v4 06/10] eeprom: Add simple eeprom-mmio consumer helper functions.

2015-03-30 Thread Srinivas Kandagatla
This patch adds probe and remove helper functions for eeproms which are mmio based, With these helper function new eeprom consumer drivers need very little code add its driver. This code is currently used for qfprom and sunxi-sid eeprom consumer drivers. Signed-off-by: Srinivas Kandagatla

[PATCH v4 08/10] eeprom: qfprom: Add bindings for qfprom

2015-03-30 Thread Srinivas Kandagatla
This patch adds bindings for qfprom found in QCOM SOCs. QFPROM driver is based on simple eeprom framework. Signed-off-by: Srinivas Kandagatla --- .../devicetree/bindings/eeprom/qfprom.txt | 34 ++ 1 file changed, 34 insertions(+) create mode 100644 Documentation

[PATCH v4 07/10] eeprom: qfprom: Add Qualcomm QFPROM support.

2015-03-30 Thread Srinivas Kandagatla
the driver. Signed-off-by: Srinivas Kandagatla --- drivers/eeprom/Kconfig | 15 +++ drivers/eeprom/Makefile | 4 drivers/eeprom/qfprom.c | 51 + 3 files changed, 70 insertions(+) create mode 100644 drivers/eeprom/qfprom.c diff

[PATCH v4 10/10] eeprom: Add to MAINTAINERS for eeprom framework

2015-03-30 Thread Srinivas Kandagatla
This patch adds MAINTAINERS to eeprom framework. Signed-off-by: Srinivas Kandagatla --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 358eb01..7094bb0 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3721,6 +3721,15 @@ T: git git

Re: [PATCH v4 05/10] eeprom: Add bindings for simple eeprom framework

2015-04-07 Thread Srinivas Kandagatla
Thanks Matt and Rob for review, On 06/04/15 16:04, Matt Porter wrote: On Mon, Apr 06, 2015 at 09:11:05AM -0500, Rob Herring wrote: On Mon, Apr 6, 2015 at 8:32 AM, Matt Porter wrote: On Mon, Mar 30, 2015 at 10:57:59PM +0100, Srinivas Kandagatla wrote: This patch adds bindings for simple

Re: [PATCH v4 05/10] eeprom: Add bindings for simple eeprom framework

2015-04-07 Thread Srinivas Kandagatla
On 07/04/15 18:46, Mark Brown wrote: On Tue, Apr 07, 2015 at 06:35:49PM +0100, Srinivas Kandagatla wrote: On 06/04/15 16:04, Matt Porter wrote: On Mon, Apr 06, 2015 at 09:11:05AM -0500, Rob Herring wrote: The generic binding could really use a "read-only" property here as this i

Re: [PATCH v4 04/10] eeprom: Add a simple EEPROM framework for eeprom consumers

2015-04-07 Thread Srinivas Kandagatla
Thanks Stephen for review, On 07/04/15 19:45, Stephen Boyd wrote: On 03/30, Srinivas Kandagatla wrote: @@ -130,6 +138,37 @@ static struct class eeprom_class = { .dev_release= eeprom_release, }; +static int of_eeprom_match(struct device *dev, const void *eeprom_np

Re: [PATCH v4 05/10] eeprom: Add bindings for simple eeprom framework

2015-04-08 Thread Srinivas Kandagatla
On 07/04/15 20:46, Matt Porter wrote: On Tue, Apr 07, 2015 at 07:03:30PM +0100, Srinivas Kandagatla wrote: On 07/04/15 18:46, Mark Brown wrote: On Tue, Apr 07, 2015 at 06:35:49PM +0100, Srinivas Kandagatla wrote: On 06/04/15 16:04, Matt Porter wrote: On Mon, Apr 06, 2015 at 09:11:05AM

Re: [PATCH 1/2] tty: serial: msm: Add mask value for UART_DM registers

2015-04-08 Thread Srinivas Kandagatla
On 08/04/15 14:13, Pramod Gurav wrote: There is no bit setting as UART_IPR_RXSTALE_LAST for UART_DM core so do it only for UART core. Signed-off-by: Pramod Gurav -- Changes since last version: - Added new macro fo UART_DM_MR1_AUTO_RFR_LEVEL1 instead of modifying existing. - Added a new m

Re: [PATCH v2 06/12] ARM: dts: apq8064: Add MDP support

2015-04-10 Thread Srinivas Kandagatla
On 10/04/15 21:21, Stephen Boyd wrote: On 04/10/15 12:39, Srinivas Kandagatla wrote: On 10/04/15 18:04, Stephen Boyd wrote: On 04/10/15 05:34, Srinivas Kandagatla wrote: @@ -250,6 +265,18 @@ }; }; +ext_3p3v: regulator-fixed@1 { +compatible

[PATCH v3 00/11] ARM: dts: apq8064 dt patches

2015-04-10 Thread Srinivas Kandagatla
for serial port Srinivas Kandagatla (8): ARM: dts: apq8064: add RPM regulators support ARM: dts: apq8064-ifc6410: Add basic regulators ARM: dts: apq8064: Add usb host support. ARM: dts: apq8064: Add USB OTG support ARM: dts: apq8064: Add SATA controller support. ARM: dts: apq8064-cm

[PATCH v3 02/11] ARM: dts: apq8064-ifc6410: Add basic regulators

2015-04-10 Thread Srinivas Kandagatla
This patch adds support to basic regulators wiredup on IFC6410 board. All these regulators are tested as part of USB, SATA and HDMI. Signed-off-by: Srinivas Kandagatla --- arch/arm/boot/dts/qcom-apq8064-ifc6410.dts | 67 ++ 1 file changed, 67 insertions(+) diff

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

2015-04-10 Thread Srinivas Kandagatla
This patch adds rpm node to apq8064 dt as rpm would be used by other devices for regulator support. Signed-off-by: Srinivas Kandagatla --- arch/arm/boot/dts/qcom-apq8064.dtsi | 24 1 file changed, 24 insertions(+) diff --git a/arch/arm/boot/dts/qcom-apq8064.dtsi b

[PATCH v3 07/11] ARM: dts: apq8064: Add usb host support to CM QS-600

2015-04-10 Thread Srinivas Kandagatla
From: Nicolas Dechesne This patch adds device tree nodes to support two usb hosts on Compulab QS600 board. Signed-off-by: Srinivas Kandagatla [Srinivas Kandagatla: fixed up regulators and status properties] Signed-off-by: Nicolas Dechesne --- arch/arm/boot/dts/qcom-apq8064-cm-qs600.dts | 22

[PATCH v3 11/11] ARM: dts: apq8064: add i2c3 node for panel.

2015-04-10 Thread Srinivas Kandagatla
This patch adds i2c3 node which is used for panel control on IFC6410. Signed-off-by: Srinivas Kandagatla --- arch/arm/boot/dts/qcom-apq8064-ifc6410.dts | 10 ++ arch/arm/boot/dts/qcom-apq8064.dtsi| 27 +++ 2 files changed, 37 insertions(+) diff --git a

[PATCH v3 10/11] ARM: dts: apq8064: Move i2c1 pinctrl to apq8064.dtsi

2015-04-10 Thread Srinivas Kandagatla
I2C1 pinctrl is not really specific to a board, moving to SOC dtsi would avoid redefining this in every board. Signed-off-by: Srinivas Kandagatla --- arch/arm/boot/dts/qcom-apq8064-ifc6410.dts | 7 --- arch/arm/boot/dts/qcom-apq8064.dtsi| 7 +++ 2 files changed, 7 insertions

[PATCH v3 05/11] ARM: dts: apq8064: Add SATA controller support.

2015-04-10 Thread Srinivas Kandagatla
This patch adds AHCI based SATA controller support to APQ8064. Tested on IFC6410 board. Signed-off-by: Srinivas Kandagatla --- arch/arm/boot/dts/qcom-apq8064-ifc6410.dts | 9 arch/arm/boot/dts/qcom-apq8064.dtsi| 35 ++ 2 files changed, 44 insertions

[PATCH v3 06/11] ARM: dts: apq8064-cm-qs600: Add basic regulators.

2015-04-10 Thread Srinivas Kandagatla
This patch adds basic regulator support for USB and HDMI. Signed-off-by: Srinivas Kandagatla --- arch/arm/boot/dts/qcom-apq8064-cm-qs600.dts | 61 + 1 file changed, 61 insertions(+) diff --git a/arch/arm/boot/dts/qcom-apq8064-cm-qs600.dts b/arch/arm/boot/dts/qcom

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

2015-04-10 Thread Srinivas Kandagatla
From: Pramod Gurav Define an alias for serial port present on ifc6410 which is used as console. Signed-off-by: Srinivas Kandagatla [Srinivas Kandagatla: renamed the serial0 label appropriately] Signed-off-by: Pramod Gurav --- arch/arm/boot/dts/qcom-apq8064-ifc6410.dts | 4 arch/arm/boot

[PATCH v3 04/11] ARM: dts: apq8064: Add USB OTG support

2015-04-10 Thread Srinivas Kandagatla
This patch adds USB OTG support on USB1 of APQ8064 SOC. Tested on IFC6410 with ethernet gadget. Signed-off-by: Srinivas Kandagatla --- arch/arm/boot/dts/qcom-apq8064-ifc6410.dts | 17 arch/arm/boot/dts/qcom-apq8064.dtsi| 32 ++ 2 files

[PATCH v3 08/11] ARM: dts: apq8064: Add USB OTG support for CM QS-600

2015-04-10 Thread Srinivas Kandagatla
From: Nicolas Dechesne This patch adds USB OTG support on USB1 for Compulab QS-600 Board. Signed-off-by: Srinivas Kandagatla [Srinivas Kandagatla: fixed up regulators and status properties] Signed-off-by: Nicolas Dechesne --- arch/arm/boot/dts/qcom-apq8064-cm-qs600.dts | 17

[PATCH v3 03/11] ARM: dts: apq8064: Add usb host support.

2015-04-10 Thread Srinivas Kandagatla
This patch adds device tree nodes to support two usb hosts on APQ8064 SOC. Signed-off-by: Srinivas Kandagatla --- arch/arm/boot/dts/qcom-apq8064-ifc6410.dts | 22 ++ arch/arm/boot/dts/qcom-apq8064.dtsi| 47 ++ 2 files changed, 69 insertions

[RFC PATCH 00/14] ASoC: qcom: add support to apq8016 audio

2015-04-30 Thread Srinivas Kandagatla
documentation. I would like to get your opinon on the over all approch. Kenneth/Patrick, Could you please try these patches on storm board? Thanks, srini Srinivas Kandagatla (14): ASoC: qcom: Remove redundant error check. ASoC: qcom: remove unnecessary header files ASoC: qcom: move

[RFC PATCH 01/14] ASoC: qcom: Remove redundant error check.

2015-04-30 Thread Srinivas Kandagatla
This patch remove redundant check after request_resource as ioremap would do the check anyway. Signed-off-by: Srinivas Kandagatla --- sound/soc/qcom/lpass-cpu.c | 4 1 file changed, 4 deletions(-) diff --git a/sound/soc/qcom/lpass-cpu.c b/sound/soc/qcom/lpass-cpu.c index 6698d05..1e284c6

[RFC PATCH 04/14] ASoC: qcom: remove hardcoded i2s port number

2015-04-30 Thread Srinivas Kandagatla
This patch attempts to remove the hardcoded i2s port number in lpass driver. Now the the port number comes from the dai id field. This will allow other SOCs to use different port numbers on the lpass driver. Signed-off-by: Srinivas Kandagatla --- sound/soc/qcom/lpass-cpu.c | 17

[RFC PATCH 02/14] ASoC: qcom: remove unnecessary header files

2015-04-30 Thread Srinivas Kandagatla
This patch removes unnecessary header files in lpass cpu and platform code. Signed-off-by: Srinivas Kandagatla --- sound/soc/qcom/lpass-cpu.c | 6 +- sound/soc/qcom/lpass-platform.c | 6 -- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/sound/soc/qcom/lpass-cpu.c b

[RFC PATCH 03/14] ASoC: qcom: move ipq806x specific bits out of lpass driver.

2015-04-30 Thread Srinivas Kandagatla
. Signed-off-by: Srinivas Kandagatla --- sound/soc/qcom/Kconfig | 9 +- sound/soc/qcom/Makefile | 2 + sound/soc/qcom/lpass-cpu.c | 157 sound/soc/qcom/lpass-ipq806x.c | 82 + sound/soc/qcom/lpass-lpaif

[RFC PATCH 10/14] ASoC: qcom: add bit map to track static dma channel allocations

2015-04-30 Thread Srinivas Kandagatla
This patch adds dma channel bit mask to lpass data to keep track of dma channel allocations. This flag would be used in apq8016 lpass driver. Signed-off-by: Srinivas Kandagatla --- sound/soc/qcom/lpass.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sound/soc/qcom/lpass.h b/sound/soc

[RFC PATCH 07/14] ASoC: qcom: add no osr clk flag to lpass variant

2015-04-30 Thread Srinivas Kandagatla
Some LPASS integrations like on APQ8016 do not have OSR clk, so adding no osr clk bit would allow such integrations to use lpass driver. Signed-off-by: Srinivas Kandagatla --- sound/soc/qcom/lpass-cpu.c | 49 +- sound/soc/qcom/lpass.h | 2 ++ 2

[RFC PATCH 12/14] ASoC: qcom: add apq8016 sound card support

2015-04-30 Thread Srinivas Kandagatla
This patch adds apq8016 machine driver support. This patch was tested on two apq8016-sbc and msm8916-mtp board for both hdmi and analog audio features. Signed-off-by: Srinivas Kandagatla --- sound/soc/qcom/Kconfig | 9 ++ sound/soc/qcom/Makefile | 1 + sound/soc/qcom/apq8016.c | 214

[RFC PATCH 11/14] ASoC: qcom: Add apq8016 lpass driver support

2015-04-30 Thread Srinivas Kandagatla
This patch adds apq8016 lpass driver support. APQ8016 has 4 MI2S which can be routed to one internal codec and 2 external codec interfaces. Primary, Secondary, Quaternary I2S can do Rx(playback) and Tertiary and Quaternary can do Tx(capture). Signed-off-by: Srinivas Kandagatla --- sound/soc

[RFC PATCH 13/14] ASoC: qcom: Document apq8016 bindings.

2015-04-30 Thread Srinivas Kandagatla
This patch updates lpass bindings with apq8016 specific bindings. Signed-off-by: Srinivas Kandagatla --- Documentation/devicetree/bindings/sound/qcom,lpass-cpu.txt | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/sound/qcom

[RFC PATCH 14/14] ASoC: qcom: document apq8016 machine driver bindings

2015-04-30 Thread Srinivas Kandagatla
This patch adds bindings for apq8016 machine driver. On APQ8016 4 MI2S can be configured to different sinks like internal codec/external codec, this connection is controlled via 2 iomux registers. Signed-off-by: Srinivas Kandagatla --- .../bindings/sound/qcom,apq8016-machine.txt| 61

[RFC PATCH 08/14] ASoC: qcom: add dma channel control offset to variant data

2015-04-30 Thread Srinivas Kandagatla
This patch adds ability to pass dma channel control bits start offset, which differ in differnet qcom SOCs. On apq8016 dma channel control bits start after an offset of 1. Signed-off-by: Srinivas Kandagatla --- sound/soc/qcom/lpass-platform.c | 2 +- sound/soc/qcom/lpass.h | 6

[RFC PATCH 05/14] ASoC: qcom: remove hardcoded dma channel

2015-04-30 Thread Srinivas Kandagatla
This patch removes hardcoded dma channel value in lpass driver, Now the dma channel allocation happens in the SOC specific layer. This will allow different LPASS integrations to use the lpass driver in more generic way. Signed-off-by: Srinivas Kandagatla --- sound/soc/qcom/lpass-ipq806x.c | 12

[RFC PATCH 09/14] ASoC: qcom: Add ability to handle interrupts per dma channel

2015-04-30 Thread Srinivas Kandagatla
This patch adds ablity to lpass driver to handle interrupt per dma channel. Without this patch its not possible to use multipl ports on the lpass. Signed-off-by: Srinivas Kandagatla --- sound/soc/qcom/lpass-platform.c | 89 + sound/soc/qcom/lpass.h

[RFC PATCH 06/14] ASoC: qcom: support bitclk and osrclk per i2s port

2015-04-30 Thread Srinivas Kandagatla
This patch adds support to allow bitclk and osrclk per i2s dai port. on APQ8016 there are 4 i2s ports each one has its own bit clks. Without this patch its not possible to support multiple i2s ports in the lpass driver. Signed-off-by: Srinivas Kandagatla --- sound/soc/qcom/lpass-cpu.c | 53

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

2015-04-13 Thread Srinivas Kandagatla
On 08/04/15 18:48, Bjorn Andersson wrote: On Wed, Mar 18, 2015 at 4:01 AM, Marc Zyngier wrote: There is a number of cases where a kernel subsystem may want to introspect the state of an interrupt at the irqchip level: - When a peripheral is shared between virtual machines, its interrupt s

Re: [PATCH v5 00/11] Add simple NVMEM Framework via regmap.

2015-05-29 Thread Srinivas Kandagatla
On 29/05/15 02:20, Dan Williams wrote: On Thu, May 21, 2015 at 9:42 AM, Srinivas Kandagatla wrote: Thankyou all for providing inputs and comments on previous versions of this patchset. Here is the v5 of the patchset addressing all the issues raised as part of previous versions review. This

Re: [PATCH 2/6] clocksource: arm_global_timer: Migrate to new 'set-state' interface

2015-06-12 Thread Srinivas Kandagatla
devices, for example: ONESHOT_STOPPED. Cc: Srinivas Kandagatla Cc: Maxime Coquelin Cc: Patrice Chotard Signed-off-by: Viresh Kumar --- drivers/clocksource/arm_global_timer.c | 37 -- 1 file changed, 17 insertions(+), 20 deletions(-) diff --git a/drivers/clocksourc

Re: [PATCH v2 0/3] Add the efuse driver on rockchip platform

2015-06-16 Thread Srinivas Kandagatla
Hi Stefan, On 16/06/15 09:52, Stefan Wahren wrote: Hi Caesar, [add Maxime and Srinivas] Am 16.06.2015 um 09:27 schrieb Caesar Wang: The original driver is uploaded by Jianqun. Here is his patchs: https://patchwork.kernel.org/patch/5410341/ https://patchwork.kernel.org/patch/5410351

Re: [PATCH v2 0/3] Add the efuse driver on rockchip platform

2015-06-16 Thread Srinivas Kandagatla
On 16/06/15 11:06, Caesar Wang wrote: Hi Srinivas, 在 2015年06月16日 17:21, Srinivas Kandagatla 写道: Hi Stefan, On 16/06/15 09:52, Stefan Wahren wrote: Hi Caesar, [add Maxime and Srinivas] Am 16.06.2015 um 09:27 schrieb Caesar Wang: The original driver is uploaded by Jianqun. Here is his

Re: [PATCH v2 0/3] Add the efuse driver on rockchip platform

2015-06-18 Thread Srinivas Kandagatla
On 18/06/15 08:05, Stefan Wahren wrote: Hi Srinivas, Am 16.06.2015 um 12:54 schrieb Srinivas Kandagatla: On 16/06/15 11:06, Caesar Wang wrote: Hi Srinivas, 在 2015年06月16日 17:21, Srinivas Kandagatla 写道: Hi Stefan, On 16/06/15 09:52, Stefan Wahren wrote: Hi Caesar, [add Maxime and

Re: [PATCH 1/3] drm/msm: dsi host: add missing of_node_put()

2015-06-22 Thread Srinivas Kandagatla
On 22/06/15 15:54, Archit Taneja wrote: Decrement device node refcount if of_get_child_by_name is successfully called. Signed-off-by: Archit Taneja --- drivers/gpu/drm/msm/dsi/dsi_host.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/msm/dsi/dsi_host.c b/drivers/gpu

[PATCH v6 1/9] nvmem: Add a simple NVMEM framework for nvmem providers

2015-06-22 Thread Srinivas Kandagatla
version of eeprom framework] Signed-off-by: Srinivas Kandagatla --- drivers/Kconfig| 2 + drivers/Makefile | 1 + drivers/nvmem/Kconfig | 10 ++ drivers/nvmem/Makefile | 6 + drivers/nvmem/core.c | 398

[PATCH v6 0/9] Add simple NVMEM Framework via regmap.

2015-06-22 Thread Srinivas Kandagatla
rt. * Move kerneldoc to the src files spotted by Mark Brown. * Remove local list and do eeprom lookup by using class_find_device() Thanks, srini Maxime Ripard (1): nvmem: sunxi: Move the SID driver to the nvmem framework Srinivas Kandagatla (8): nvmem: Add a simple NVMEM framework for nvm

[PATCH v6 4/9] nvmem: Add bindings for simple nvmem framework

2015-06-22 Thread Srinivas Kandagatla
This patch adds bindings for simple nvmem framework which allows nvmem consumers to talk to nvmem providers to get access to nvmem cell data. Signed-off-by: Maxime Ripard [Maxime Ripard: intial version of eeprom framework] Signed-off-by: Srinivas Kandagatla --- Documentation/devicetree

[PATCH v6 6/9] nvmem: qfprom: Add Qualcomm QFPROM support.

2015-06-22 Thread Srinivas Kandagatla
the driver. Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/Kconfig | 15 + drivers/nvmem/Makefile | 4 +++ drivers/nvmem/qfprom.c | 89 ++ 3 files changed, 108 insertions(+) create mode 100644 drivers/nvmem/qfprom.c diff --git a

[PATCH v6 5/9] Documentation: nvmem: add nvmem api level and how-to doc

2015-06-22 Thread Srinivas Kandagatla
This patch add basic how-to and api summary documentation for simple NVMEM framework. Signed-off-by: Srinivas Kandagatla --- Documentation/nvmem/nvmem.txt | 151 ++ 1 file changed, 151 insertions(+) create mode 100644 Documentation/nvmem/nvmem.txt diff

[PATCH v6 3/9] nvmem: Add nvmem_device based consumer apis.

2015-06-22 Thread Srinivas Kandagatla
, which is what these new APIS provide. These wrapper apis would help such users to avoid code duplication in there drivers and also avoid them reading a big eeprom blob and parsing it internally in there driver. Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/core.c | 256

[PATCH v6 2/9] nvmem: Add a simple NVMEM framework for consumers

2015-06-22 Thread Srinivas Kandagatla
the framework] Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/core.c | 415 + include/linux/nvmem-consumer.h | 75 2 files changed, 490 insertions(+) create mode 100644 include/linux/nvmem-consumer.h diff --git a/drivers/nvmem

[PATCH v6 7/9] nvmem: qfprom: Add bindings for qfprom

2015-06-22 Thread Srinivas Kandagatla
This patch adds bindings for qfprom found in QCOM SOCs. QFPROM driver is based on simple nvmem framework. Reviewed-by: Stephen Boyd Signed-off-by: Srinivas Kandagatla --- Documentation/devicetree/bindings/nvmem/qfprom.txt | 35 ++ 1 file changed, 35 insertions(+) create

[PATCH v6 8/9] nvmem: sunxi: Move the SID driver to the nvmem framework

2015-06-22 Thread Srinivas Kandagatla
-by: Srinivas Kandagatla --- Documentation/ABI/testing/sysfs-driver-sunxi-sid | 22 --- .../bindings/misc/allwinner,sunxi-sid.txt | 17 --- .../bindings/nvmem/allwinner,sunxi-sid.txt | 21 +++ drivers/misc/eeprom/Kconfig| 13 -- drivers/misc/eeprom

[PATCH v6 9/9] nvmem: Add to MAINTAINERS for nvmem framework

2015-06-22 Thread Srinivas Kandagatla
This patch adds MAINTAINERS to nvmem framework. Signed-off-by: Srinivas Kandagatla --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index b2ef613..26e1829 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -6993,6 +6993,15 @@ S: Supported

Re: [RFC PATCH v6 2/2] nvmem: Add Vybrid OCOTP and OCROM support

2015-06-23 Thread Srinivas Kandagatla
Hi Sanchayan, On 23/06/15 14:44, Sanchayan Maity wrote: The patch adds support for the On Chip One Time Programmable Peripheral (OCOTP) and On Chip ROM (OCROM) support. On Vybrid OCOTP contain data like SoC ID, MAC address and OCROM has the revision ID. Signed-off-by: Sanchayan Maity --- d

Re: [RFC PATCH v6 2/2] nvmem: Add Vybrid OCOTP and OCROM support

2015-06-24 Thread Srinivas Kandagatla
On 24/06/15 09:35, Maxime Ripard wrote: Hi, On Tue, Jun 23, 2015 at 07:14:57PM +0530, Sanchayan Maity wrote: +static struct nvmem_config ocotp_config = { + .name = "soc_id", +}; + +static struct nvmem_config rom_config = { + .name = "rom_rev", +}; Srinivas, shouldn't we use the

Re: [RFC PATCH v6 2/2] nvmem: Add Vybrid OCOTP and OCROM support

2015-06-24 Thread Srinivas Kandagatla
On 24/06/15 06:19, maitysancha...@gmail.com wrote: I just tested it without the "select REGMAP_MMIO" and it works just fine. You just got lucky in this case, as REGMAP_MMIO is getting selected somewhere else. Drivers should directly select the dependecies. In this case this driver actually

Re: [PATCH v6 0/9] Add simple NVMEM Framework via regmap.

2015-06-24 Thread Srinivas Kandagatla
On 23/06/15 20:47, Stefan Wahren wrote: 0001000 > i want to port OCOTP driver for MXS, which hasn't MMIO. From my understanding That's cool. hexdump would readout the complete register range defined in provider DT node. How can i achieve that hexdump only reads the data area within the reg

Re: [PATCH v6 8/9] nvmem: sunxi: Move the SID driver to the nvmem framework

2015-06-24 Thread Srinivas Kandagatla
On 23/06/15 21:44, Stefan Wahren wrote: Srinivas Kandagatla hat am 23. Juni 2015 um 01:09 geschrieben: From: Maxime Ripard Now that we have the nvmem framework, we can consolidate the common driver code. Move the driver to the framework, and hopefully, it will fix the sysfs file

Re: [PATCH v6 7/9] nvmem: qfprom: Add bindings for qfprom

2015-06-24 Thread Srinivas Kandagatla
On 23/06/15 10:25, Rajendra Nayak wrote: [].. +Example: + +qfprom: qfprom@0070 { +compatible = "qcom,qfprom"; +reg= <0x0070 0x8000>; +... +/* Data cells */ +tsens_calibration: calib@404 { +reg = <0x4404 0x10>; +

Re: [PATCH v6 4/9] nvmem: Add bindings for simple nvmem framework

2015-06-24 Thread Srinivas Kandagatla
On 23/06/15 21:35, Stefan Wahren wrote: +Required properties: >+reg: specifies the offset in byte within that storage device, start bit >+ in the byte and the length in bits of the data we care about. Is the second parameter really in bits, not bytes? Thanks for spotting this, I will fix this

Re: [PATCH v6 2/9] nvmem: Add a simple NVMEM framework for consumers

2015-06-24 Thread Srinivas Kandagatla
On 23/06/15 21:16, Stefan Wahren wrote: + >+struct device; Do we need forward declaration of struct device_node too? Yep, Will fix it in next version. --srini >+/* consumer cookie */ >[...] -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message

Re: [PATCH v6 3/9] nvmem: Add nvmem_device based consumer apis.

2015-06-24 Thread Srinivas Kandagatla
On 23/06/15 21:28, Stefan Wahren wrote: >@@ -26,6 +35,21 @@ void devm_nvmem_cell_put(struct device *dev, struct >nvmem_cell *cell); >void *nvmem_cell_read(struct nvmem_cell *cell, ssize_t *len); >int nvmem_cell_write(struct nvmem_cell *cell, void *buf, ssize_t len); > >+/* direct nvmem device r

Re: [PATCH v6 1/9] nvmem: Add a simple NVMEM framework for nvmem providers

2015-06-24 Thread Srinivas Kandagatla
On 23/06/15 21:10, Stefan Wahren wrote: Hi Srinivas, sorry for the messed up indention. NP, + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include Sorting alphabetically would by nice Good Idea. + [...] +/** + * nvmem_regis

Re: [PATCH v6 1/9] nvmem: Add a simple NVMEM framework for nvmem providers

2015-06-24 Thread Srinivas Kandagatla
On 23/06/15 10:26, Pantelis Antoniou wrote: Hi Joe, >On Jun 23, 2015, at 05:52 , Joe Perches wrote: > >On Tue, 2015-06-23 at 00:08 +0100, Srinivas Kandagatla wrote: >>This patch adds just providers part of the framework just to enable easy >>review. >[] >>

Re: [PATCH v5 03/11] nvmem: Add a simple NVMEM framework for nvmem providers

2015-06-24 Thread Srinivas Kandagatla
On 24/06/15 01:24, Stephen Boyd wrote: Can you assign the attributes to the device_type in the nvmem::struct device? I don't see why these attributes need to be part of the class. I will fix this. >> >>>+{ >>>+return class_register(&nvmem_class); >> >>I thought class was on the way out

Re: [PATCH v6 0/9] Add simple NVMEM Framework via regmap.

2015-06-24 Thread Srinivas Kandagatla
On 24/06/15 13:30, Stefan Wahren wrote: >If the question is just about hexdump, then hexdump itself can read >file from given offset and size. yes, this is my question at first. Let me show the difference between the current implementation and my expectations as a user. $ hexdump /sys/class/n

Re: [PATCH v6 0/9] Add simple NVMEM Framework via regmap.

2015-06-24 Thread Srinivas Kandagatla
On 24/06/15 18:47, Stefan Wahren wrote: Hi Srinivas, Srinivas Kandagatla hat am 24. Juni 2015 um 15:03 geschrieben: On 24/06/15 13:30, Stefan Wahren wrote: If the question is just about hexdump, then hexdump itself can read file from given offset and size. yes, this is my question at

Re: [PATCH 8/8] pinctrl: qcom: ssbi: Family A gpio & mpp drivers

2015-06-24 Thread Srinivas Kandagatla
/pinctrl/qcom/Makefile | 2 + drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c | 795 ++ Tested the gpio driver with WLAN on IFC6410 Tested-by: Srinivas Kandagatla --srini -- To unsubscribe from this list: send the line "unsubscribe linux-kernel&qu

Re: [PATCH v4 2/3] ASoC: qcom: add apq8016 sound card support

2015-06-03 Thread Srinivas Kandagatla
On 02/06/15 20:55, Mark Brown wrote: On Fri, May 22, 2015 at 04:54:07PM +0100, Srinivas Kandagatla wrote: + if (cpu_dai->id == MI2S_QUATERNARY) { + /* Configure the Quat MI2S to TLMM */ + writel(readl(pdata->mic

[PATCH v5 0/2] ASoC: qcom: add support to apq8016 sbc machine driver

2015-06-09 Thread Srinivas Kandagatla
the dai links to the correct codec names. - removed the special case for EPROBE_DEFER in probe, spotted by Mark. - Dropped all the Changes since comments as most of the patches in last series are merged to topic/qcom branch. --srini Srinivas Kandagatla (2): ASoC: qcom: document apq8016

[PATCH v5 1/2] ASoC: qcom: document apq8016 sbc machine driver bindings

2015-06-09 Thread Srinivas Kandagatla
This patch adds bindings for apq8016 sbc machine driver. APQ8016 has 4 MI2S which can be configured to different sinks like internal codec/external codec, this connection and various parameters are controlled via 2 iomux registers. Acked-by: Kenneth Westfield Signed-off-by: Srinivas Kandagatla

[PATCH v5 2/2] ASoC: qcom: add apq8016 sound card support

2015-06-09 Thread Srinivas Kandagatla
This patch adds apq8016 machine driver support. This patch is tested on DB410c and msm8916-mtp board for both hdmi and analog audio features. Acked-by: Kenneth Westfield Signed-off-by: Srinivas Kandagatla --- sound/soc/qcom/Kconfig | 9 ++ sound/soc/qcom/Makefile | 2 + sound

[PATCH 2/2] ASoC: qcom: storm: remove special casing EPROBE_DEFER

2015-06-09 Thread Srinivas Kandagatla
This patch removes special casing the EPROBE_DEFER error handling in the driver. Signed-off-by: Srinivas Kandagatla --- sound/soc/qcom/storm.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/sound/soc/qcom/storm.c b/sound/soc/qcom/storm.c index ee06613..2d833bf

[PATCH 1/2] ASoC: qcom: storm: allocate snd_soc_card struct dynamically.

2015-06-09 Thread Srinivas Kandagatla
-by: Srinivas Kandagatla --- sound/soc/qcom/storm.c | 17 + 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/sound/soc/qcom/storm.c b/sound/soc/qcom/storm.c index b8bd296..ee06613 100644 --- a/sound/soc/qcom/storm.c +++ b/sound/soc/qcom/storm.c @@ -69,11 +69,6 @@ sta

Re: [PATCH v5 1/2] ASoC: qcom: document apq8016 sbc machine driver bindings

2015-06-09 Thread Srinivas Kandagatla
On 09/06/15 17:57, Mark Brown wrote: On Tue, Jun 09, 2015 at 01:59:29PM +0100, Srinivas Kandagatla wrote: >+Optional CPU/CODEC subnodes properties: >+- external : flag to indicate if the I2S is connected to external codec >+Example: Missing blank line between the property and the

Re: [PATCH v5 1/2] ASoC: qcom: document apq8016 sbc machine driver bindings

2015-06-09 Thread Srinivas Kandagatla
On 09/06/15 18:13, Mark Brown wrote: On Tue, Jun 09, 2015 at 06:08:24PM +0100, Srinivas Kandagatla wrote: +- external : flag to indicate if the I2S is connected to external codec not sure I understand why we need a boolean property indicating if an external CODEC is in use - what is

Re: [PATCH v5 2/2] ASoC: qcom: add apq8016 sound card support

2015-06-09 Thread Srinivas Kandagatla
On 09/06/15 18:07, Mark Brown wrote: On Tue, Jun 09, 2015 at 01:59:36PM +0100, Srinivas Kandagatla wrote: + if (cpu_dai->id == MI2S_QUATERNARY) { + /* Configure the Quat MI2S to TLMM */ + writel(readl(pdata->mic

Re: [PATCH v5 2/2] ASoC: qcom: add apq8016 sound card support

2015-06-09 Thread Srinivas Kandagatla
On 09/06/15 19:04, Mark Brown wrote: On Tue, Jun 09, 2015 at 06:51:59PM +0100, Srinivas Kandagatla wrote: On 09/06/15 18:07, Mark Brown wrote: Why not just do these one time at probe, we don't undo them when we shut the DAI down? If I do that Am afraid that the driver would loos

[PATCH v6 2/2] ASoC: qcom: add apq8016 sound card support

2015-06-10 Thread Srinivas Kandagatla
This patch adds apq8016 machine driver support. This patch is tested on DB410c and msm8916-mtp board for both hdmi and analog audio features. Acked-by: Kenneth Westfield Signed-off-by: Srinivas Kandagatla --- sound/soc/qcom/Kconfig | 9 ++ sound/soc/qcom/Makefile | 2 + sound

[PATCH v6 1/2] ASoC: qcom: document apq8016 sbc machine driver bindings

2015-06-10 Thread Srinivas Kandagatla
This patch adds bindings for apq8016 sbc machine driver. APQ8016 has 4 MI2S which can be configured to different sinks like internal codec/external codec, this connection and various parameters are controlled via 2 iomux registers. Acked-by: Kenneth Westfield Signed-off-by: Srinivas Kandagatla

[PATCH v6 0/2] ASoC: qcom: add support to apq8016 sbc machine driver

2015-06-10 Thread Srinivas Kandagatla
names. - removed the special case for EPROBE_DEFER in probe, spotted by Mark. - Dropped all the Changes since comments as most of the patches in last series are merged to topic/qcom branch. --srini Srinivas Kandagatla (2): ASoC: qcom: document apq8016 sbc machine driver bindings ASoC: qcom:

Re: [PATCH v5 03/11] nvmem: Add a simple NVMEM framework for nvmem providers

2015-06-18 Thread Srinivas Kandagatla
Many thanks for review. On 16/06/15 23:43, Stephen Boyd wrote: On 05/21/2015 09:43 AM, Srinivas Kandagatla wrote: diff --git a/drivers/nvmem/core.c b/drivers/nvmem/core.c new file mode 100644 index 000..6c2f0b1 --- /dev/null +++ b/drivers/nvmem/core.c @@ -0,0 +1,398 @@ +/* + * nvmem

Re: [PATCH v5 04/11] nvmem: Add a simple NVMEM framework for consumers

2015-06-18 Thread Srinivas Kandagatla
On 16/06/15 23:29, Stephen Boyd wrote: On 05/21/2015 09:43 AM, Srinivas Kandagatla wrote: @@ -379,6 +380,351 @@ int nvmem_unregister(struct nvmem_device *nvmem) [...] + + return nvmem; +} + +static int __nvmem_device_put(struct nvmem_device *nvmem) Why does this return int? It'

Re: [PATCH v5 05/11] nvmem: Add nvmem_device based consumer apis.

2015-06-18 Thread Srinivas Kandagatla
On 16/06/15 23:49, Stephen Boyd wrote: On 05/21/2015 09:43 AM, Srinivas Kandagatla wrote: diff --git a/drivers/nvmem/core.c b/drivers/nvmem/core.c index 8a4b358..68ee8d1 100644 --- a/drivers/nvmem/core.c +++ b/drivers/nvmem/core.c @@ -436,6 +436,51 @@ static int __nvmem_device_put(struct

Re: [PATCH v5 06/11] nvmem: Add bindings for simple nvmem framework

2015-06-18 Thread Srinivas Kandagatla
On 16/06/15 23:53, Stephen Boyd wrote: On 05/21/2015 09:44 AM, Srinivas Kandagatla wrote: diff --git a/Documentation/devicetree/bindings/nvmem/nvmem.txt b/Documentation/devicetree/bindings/nvmem/nvmem.txt new file mode 100644 index 000..ecea654 --- /dev/null +++ b/Documentation

Re: [PATCH v5 07/11] nvmem: Add simple nvmem-mmio consumer helper functions.

2015-06-18 Thread Srinivas Kandagatla
On 16/06/15 23:58, Stephen Boyd wrote: On 05/21/2015 09:44 AM, Srinivas Kandagatla wrote: diff --git a/drivers/nvmem/nvmem-mmio.c b/drivers/nvmem/nvmem-mmio.c new file mode 100644 index 000..0d8131f --- /dev/null +++ b/drivers/nvmem/nvmem-mmio.c @@ -0,0 +1,69 @@ +/* + * Copyright (C) 2015

<    3   4   5   6   7   8   9   10   11   12   >