Re: [PATCH v7 4/7] qcom: pm: Add cpu low power mode functions

2014-10-02 Thread Lorenzo Pieralisi
On Sat, Sep 27, 2014 at 01:58:12AM +0100, Lina Iyer wrote: [...] diff --git a/drivers/soc/qcom/pm.c b/drivers/soc/qcom/pm.c new file mode 100644 index 000..a2f7d72 --- /dev/null +++ b/drivers/soc/qcom/pm.c @@ -0,0 +1,109 @@ +/* Copyright (c) 2010-2014, The Linux Foundation. All rights

Re: [PATCH v3 1/2] iio: vadc: Qualcomm SPMI PMIC voltage ADC driver

2014-10-02 Thread Ivan T. Ivanov
Hi Stan, On 09/24/2014 03:56 PM, Stanimir Varbanov wrote: snip +static int vadc_get_dt_data(struct vadc_priv *vadc, struct device_node *node) +{ + struct iio_chan_spec *iio_chan = vadc-iio_chans; + const struct vadc_channels *vadc_chan; + struct vadc_channel_prop prop; +

Re: [PATCH v3 1/2] iio: vadc: Qualcomm SPMI PMIC voltage ADC driver

2014-10-02 Thread Ivan T. Ivanov
+iio maintainers On Thu, 2014-10-02 at 12:29 +0300, Ivan T. Ivanov wrote: Hi Stan, On 09/24/2014 03:56 PM, Stanimir Varbanov wrote: snip +static int vadc_get_dt_data(struct vadc_priv *vadc, struct device_node *node) +{ + struct iio_chan_spec *iio_chan = vadc-iio_chans; +

[PATCH] iio: inkern: Add of_xlate function to struct iio_dev

2014-10-02 Thread Ivan T. Ivanov
When #iio-cells is greater than '0', the driver could provide a custom of_xlate function that reads the *args* and returns the appropriate index in registered IIO channels array. Add simple translation function, suitable for the most 1:1 mapped channels in IIO chips, and use it when driver did

Re: [RFC/PATCH 1/5] mtd: ubi: Read disturb infrastructure

2014-10-02 Thread Tanya Brokhman
Hi Richard, Sorry it took me some time to answer, got per-occupied with some urgent staff. On 9/28/2014 1:54 PM, Richard Weinberger wrote: Am 28.09.2014 12:46, schrieb Tanya Brokhman: On 9/28/2014 11:54 AM, Richard Weinberger wrote: Am 28.09.2014 10:48, schrieb Tanya Brokhman: @@ -424,6

Re: [RFC/PATCH 1/5] mtd: ubi: Read disturb infrastructure

2014-10-02 Thread Richard Weinberger
Am 02.10.2014 14:50, schrieb Tanya Brokhman: Consider the case where you have a board with a fastmap enabled bootloader and a Linux OS. The bootloader does a fastmap attach and boots the kernel from UBI and the kernel it self has the rootfs on UBI too. If you install a new kernel with your

Re: [RFC/PATCH 1/5] mtd: ubi: Read disturb infrastructure

2014-10-02 Thread Richard Weinberger
Am 02.10.2014 14:50, schrieb Tanya Brokhman: Hi Richard, Sorry it took me some time to answer, got per-occupied with some urgent staff. On 9/28/2014 1:54 PM, Richard Weinberger wrote: Am 28.09.2014 12:46, schrieb Tanya Brokhman: On 9/28/2014 11:54 AM, Richard Weinberger wrote: Am

Re: [PATCH] iio: inkern: Add of_xlate function to struct iio_dev

2014-10-02 Thread Lars-Peter Clausen
On 10/02/2014 02:32 PM, Ivan T. Ivanov wrote: When #iio-cells is greater than '0', the driver could provide a custom of_xlate function that reads the *args* and returns the appropriate index in registered IIO channels array. Do you have an example of a device that doesn't want to use the

Re: [RFC/PATCH 1/5] mtd: ubi: Read disturb infrastructure

2014-10-02 Thread Tanya Brokhman
On 10/2/2014 4:24 PM, Richard Weinberger wrote: Am 02.10.2014 14:50, schrieb Tanya Brokhman: Consider the case where you have a board with a fastmap enabled bootloader and a Linux OS. The bootloader does a fastmap attach and boots the kernel from UBI and the kernel it self has the rootfs on

Re: [PATCH] iio: inkern: Add of_xlate function to struct iio_dev

2014-10-02 Thread Ivan T. Ivanov
On Thu, 2014-10-02 at 15:30 +0200, Lars-Peter Clausen wrote: On 10/02/2014 02:32 PM, Ivan T. Ivanov wrote: When #iio-cells is greater than '0', the driver could provide a custom of_xlate function that reads the *args* and returns the appropriate index in registered IIO channels array. Do

Re: [RFC/PATCH 1/5] mtd: ubi: Read disturb infrastructure

2014-10-02 Thread Richard Weinberger
Am 02.10.2014 15:42, schrieb Tanya Brokhman: On 10/2/2014 4:24 PM, Richard Weinberger wrote: Am 02.10.2014 14:50, schrieb Tanya Brokhman: Consider the case where you have a board with a fastmap enabled bootloader and a Linux OS. The bootloader does a fastmap attach and boots the kernel from

Re: [RFC/PATCH 1/5] mtd: ubi: Read disturb infrastructure

2014-10-02 Thread Tanya Brokhman
On 10/2/2014 4:36 PM, Richard Weinberger wrote: Am 02.10.2014 14:50, schrieb Tanya Brokhman: Hi Richard, Sorry it took me some time to answer, got per-occupied with some urgent staff. On 9/28/2014 1:54 PM, Richard Weinberger wrote: Am 28.09.2014 12:46, schrieb Tanya Brokhman: On 9/28/2014

Re: [Patch v3] spi: qup: Fix incorrect block transfers

2014-10-02 Thread Andy Gross
On Thu, Oct 02, 2014 at 04:44:32PM +0300, Ivan T. Ivanov wrote: Hi Andy, I am trying to understand why we need extra functions for block read and write. I separated them out because the constraints for doing the allowable writes/reads was making the whole thing messy. I opted for a

Re: [PATCH v1] clk: qcom: Add support for regmap clock dividers

2014-10-02 Thread Stephen Boyd
On 09/30/14 10:20, Georgi Djakov wrote: This patch expands the regmap support to allow registration of clock dividers. It just prepares for the introduction of a clkdiv driver, that will be in a separate patch. Such dividers are found in the Qualcomm PMIC chips such as PM8941, PMA8084 and

Re: [PATCH 2/4] ARM: qcom: add description of KPSS WDT for IPQ8064

2014-10-02 Thread Stephen Boyd
On 10/01/14 11:15, Josh Cartwright wrote: Yeah, the description of this thing is a bit awkward. :-/ I tried to make the binding future proof. I'm not sure how I'd feel about just just adding qcom,kpss-wdt to the timer node compatible. I'm wondering if the WDT(s) should be a subnode(s) of

Re: [PATCH v1] clk: qcom: Add support for regmap clock dividers

2014-10-02 Thread Kumar Gala
On Oct 2, 2014, at 1:11 PM, Stephen Boyd sb...@codeaurora.org wrote: On 09/30/14 10:20, Georgi Djakov wrote: This patch expands the regmap support to allow registration of clock dividers. It just prepares for the introduction of a clkdiv driver, that will be in a separate patch. Such

Re: [PATCH v1] clk: qcom: Add support for regmap clock dividers

2014-10-02 Thread Stephen Boyd
On 10/02/14 12:51, Kumar Gala wrote: On Oct 2, 2014, at 1:11 PM, Stephen Boyd sb...@codeaurora.org wrote: On 09/30/14 10:20, Georgi Djakov wrote: This patch expands the regmap support to allow registration of clock dividers. It just prepares for the introduction of a clkdiv driver, that will

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

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

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

2014-10-02 Thread Wolfram Sang
On Mon, Sep 29, 2014 at 05:00:51PM -0500, Andy Gross wrote: The runtime pm calls need to be done before populating the children via the i2c_add_adapter call. If this is not done, a child can run into issues trying to do i2c read/writes due to the pm_runtime_sync failing. Signed-off-by: Andy