RE: [PATCH v2 2/2] i2c: qup: support SMBus block read

2016-05-18 Thread Sricharan
qup_i2c_set_read_mode_v2(qup, msg->len); > + qup_i2c_issue_xfer_v2(qup, msg); > + ret = qup_i2c_wait_for_complete(qup, msg); > + if (ret) > + goto err; Is the issue_xfer_v2 needed inside this here ? > + qup_i2c_set_blk_data(qup, msg); > + } > } while (qup->blk.pos < qup->blk.count); Regards, Sricharan

RE: [PATCH v2 1/2] i2c: qup: add ACPI support

2016-05-17 Thread Sricharan
st struct of_device_id qup_i2c_dt_match[] = { }; > MODULE_DEVICE_TABLE(of, qup_i2c_dt_match); > > +#if IS_ENABLED(CONFIG_ACPI) > +static const struct acpi_device_id qup_i2c_acpi_match[] = { > + { "QCOM8010"}, > + { }, > +}; > +MODULE_DEVICE_TABLE(acpi, qup_i2c_acpi_ids); #endif > + > static struct platform_driver qup_i2c_driver = { > .probe = qup_i2c_probe, > .remove = qup_i2c_remove, > @@ -1646,6 +1674,7 @@ static struct platform_driver qup_i2c_driver = { > .name = "i2c_qup", > .pm = &qup_i2c_qup_pm_ops, > .of_match_table = qup_i2c_dt_match, > + .acpi_match_table = ACPI_PTR(qup_i2c_acpi_match), > }, > }; > Reviewed-by: sricha...@codeaurora.org Regards, Sricharan

RE: [PATCH V2 2/2] drivers: i2c: qup: Fix error handling

2016-05-15 Thread Sricharan
unnessecary 'timeouts' which happens > > > when waiting for events that would never happen when there is > > > already an error condition on the bus. > > > > > > Signed-off-by: Sricharan R > > > Reviewed-by: Andy Gross > > > > Please

RE: [PATCH V2 1/2] drivers: i2c: qup: Fix broken dma when CONFIG_DEBUG_SG is enabled

2016-05-15 Thread Sricharan
cription describes what you do. But not why it is the correct solution > to the OOPS. The OOPS neither describes it. Please add some more > explanation. > Ok,will describe it more. The reason it oops is sg_set_bug expects that the buf parameter passed in should be a from the lowmem and a valid pageframe. This is not true for pages from dma_alloc_coherent which can be carveouts, hence the check fails. Allocating buffers using kzalloc fixes the issue. Regards, Sricharan

RE: [PATCH V2 0/2] drivers: i2c: qup: Some misc fixes

2016-05-15 Thread Sricharan
Hi, > > One for fixing the bug with CONFIG_DEBUG_SG enabled and another to > > suspend the transfer for all errors instead of just for nack. > > You haven't stated what was changed in V2. ah, sorry, will resend.. Regards, Sricharan

RE: [PATCH 1/2] i2c: qup: Cleared the error bits in ISR

2016-05-11 Thread Sricharan
Hi, > -Original Message- > From: linux-arm-kernel [mailto:linux-arm-kernel- > boun...@lists.infradead.org] On Behalf Of Abhishek Sahu > Sent: Wednesday, May 11, 2016 11:04 PM > To: Sricharan > Cc: arch...@codeaurora.org; w...@the-dreams.de; linux-arm- > m...@

RE: [PATCH 2/2] i2c: qup: Fixed the DMA segments length

2016-05-11 Thread Sricharan
qup_i2c_set_blk_data(qup, msg); > > + blocks = qup->blk.count; > + rem = msg->len - (blocks - 1) * limit; > + Same if we had blocks = (msg->len + limit - 1) / limit instead of the above ? Otherwise, Reviewed-by: sricha...@codeaurora.org Regards, Sricharan

RE: [PATCH 1/2] i2c: qup: Cleared the error bits in ISR

2016-05-11 Thread Sricharan
if (qup_err || bus_err) { > writel(QUP_RESET_STATE, qup->base + QUP_STATE); > goto done; > } In qup_i2c_xfer and qup_i2c_xfer_v2 state is set to RESET at the end, when there is no error. So would it be fine if we do it there unconditionally ? Regards, Sricharan

RE: [PATCH 2/2] i2c: qup: support SMBus block read

2016-05-10 Thread Sricharan
p->pos = 0; > + qup_i2c_set_read_mode_v2(qup, msg->len); > + qup_i2c_issue_xfer_v2(qup, msg); > + ret = qup_i2c_wait_for_complete(qup, msg); > + if (ret) > + goto err; > + qup_i2c_set_blk_data(qup, msg); > + } > } while (qup->blk.pos < qup->blk.count); When v2 mode is not supported this should return an error, in qup_i2c_xfer for msg->flags & I2C_M_RECV_LEN Regards, Sricharan

RE: [PATCH 1/2] i2c: qup: add ACPI support

2016-05-09 Thread Sricharan
rlcpy(qup->adap.name, "QUP I2C adapter", sizeof(qup- > >adap.name)); > > @@ -1639,6 +1662,13 @@ static const struct of_device_id > qup_i2c_dt_match[] = { }; MODULE_DEVICE_TABLE(of, qup_i2c_dt_match); > > +#if IS_ENABLED(CONFIG_ACPI) > +static const struct acpi_device_id qup_i2c_acpi_match[] = { > + { "QCOM8010"}, > + { }, > +}; > +MODULE_DEVICE_TABLE(acpi, qup_i2c_acpi_ids); #endif > static struct platform_driver qup_i2c_driver = { > .probe = qup_i2c_probe, > .remove = qup_i2c_remove, > @@ -1646,6 +1676,7 @@ static struct platform_driver qup_i2c_driver = { > .name = "i2c_qup", > .pm = &qup_i2c_qup_pm_ops, > .of_match_table = qup_i2c_dt_match, > + .acpi_match_table = ACPI_PTR(qup_i2c_acpi_match), Should this also be in #if IS_ENABLED(CONFIG_ACPI) check ? Regards, Sricharan

RE: [Patch v3 5/8] firmware: qcom: scm: Convert to streaming DMA APIS

2016-05-08 Thread Sricharan
Hi, > This patch converts the Qualcomm SCM driver to use the streaming DMA > APIs for communication buffers. > > Signed-off-by: Andy Gross > --- Reviewed-by: sricha...@codeaurora.org Regards, Sricharan > drivers/firmware/q

[PATCH V2 1/2] drivers: i2c: qup: Fix broken dma when CONFIG_DEBUG_SG is enabled

2016-05-06 Thread Sricharan R
: c000 x1 : 0003 x0 : Process swapper/0 (pid: 1, stack limit = 0xffc036870020) Stack: (0xffc0368735c0 to 0xffc036874000) Change allocation of sg buffers from dma_coherent memory to kzalloc to fix the issue. Signed-off-by: Sricharan R

[PATCH V2 0/2] drivers: i2c: qup: Some misc fixes

2016-05-06 Thread Sricharan R
One for fixing the bug with CONFIG_DEBUG_SG enabled and another to suspend the transfer for all errors instead of just for nack. Sricharan R (2): drivers: i2c: qup: Fix broken dma when CONFIG_DEBUG_SG is enabled. drivers: i2c: qup: Fix error handling drivers/i2c/busses/i2c-qup.c | 87

[PATCH V2 2/2] drivers: i2c: qup: Fix error handling

2016-05-06 Thread Sricharan R
that would never happen when there is already an error condition on the bus. Signed-off-by: Sricharan R Reviewed-by: Andy Gross --- drivers/i2c/busses/i2c-qup.c | 42 +- 1 file changed, 29 insertions(+), 13 deletions(-) diff --git a/drivers/i2c/busses/i

RE: [PATCH 2/2] drivers: i2c: qup: Fix error handling

2016-05-05 Thread Sricharan
Hi Andy, > -Original Message- > From: Andy Gross [mailto:andy.gr...@linaro.org] > Sent: Thursday, May 05, 2016 10:52 PM > To: Sricharan R > Cc: devicet...@vger.kernel.org; arch...@codeaurora.org; linux-arm- > m...@vger.kernel.org; ntel...@codeaurora.org; ga...@codea

[PATCH 0/2] drivers: i2c: qup: Some misc fixes

2016-05-01 Thread Sricharan R
One for fixing the bug with CONFIG_DEBUG_SG enabled and another to suspend the transfer for all errors instead of just for nack. Sricharan R (2): drivers: i2c: qup: Fix broken dma when CONFIG_DEBUG_SG is enabled. drivers: i2c: qup: Fix error handling drivers/i2c/busses/i2c-qup.c | 87

[PATCH 2/2] drivers: i2c: qup: Fix error handling

2016-05-01 Thread Sricharan R
that would never happen when there is already an error condition on the bus. Signed-off-by: Sricharan R --- drivers/i2c/busses/i2c-qup.c | 34 +- 1 file changed, 25 insertions(+), 9 deletions(-) diff --git a/drivers/i2c/busses/i2c-qup.c b/drivers/i2c/busses/i2c-q

[PATCH 1/2] drivers: i2c: qup: Fix broken dma when CONFIG_DEBUG_SG is enabled

2016-05-01 Thread Sricharan R
: 0003 x0 : Process swapper/0 (pid: 1, stack limit = 0xffc036870020) Stack: (0xffc0368735c0 to 0xffc036874000) Change allocation of sg buffers from dma_coherent memory to kzalloc to fix the issue. Signed-off-by: Sricharan R --- drivers/i2c/busses/i2c-qup.c

RE: [PATCH V7 5/6] dts: msm8974: Add blsp2_bam dma node

2016-03-28 Thread Sricharan
> On Fri, Mar 25, 2016 at 04:17:30PM -0700, Bjorn Andersson wrote: > > On Tue, Jan 19, 2016 at 2:02 AM, Sricharan R > wrote: > > > Signed-off-by: Sricharan R > > > Reviewed-by: Andy Gross > > > > > > +

RE: [RESEND PATCH V7 4/6] i2c: qup: Add bam dma capabilities

2016-03-21 Thread Sricharan
Hi wolfram, > On Mon, Feb 22, 2016 at 05:38:15PM +0530, Sricharan R wrote: > > QUP cores can be attached to a BAM module, which acts as a dma engine > > for the QUP core. When DMA with BAM is enabled, the BAM consumer > pipe > > transmitted data is written to the output F

[PATCH] drivers: i2c: Fix qup fifo handling

2016-02-26 Thread Sricharan R
hen should be put in to 'RUN' state separately. Signed-off-by: Sricharan R --- drivers/i2c/busses/i2c-qup.c | 46 +--- 1 file changed, 39 insertions(+), 7 deletions(-) diff --git a/drivers/i2c/busses/i2c-qup.c b/drivers/i2c/busses/i2c-qup.c index

RE: [PATCH V7 4/6] i2c: qup: Add bam dma capabilities

2016-02-22 Thread Sricharan
ously .. Regards, Sricharan

RE: [PATCH V7 4/6] i2c: qup: Add bam dma capabilities

2016-02-22 Thread Sricharan
Hi Wolfram, > -Original Message- > From: Sricharan [mailto:sricha...@codeaurora.org] > Sent: Saturday, February 13, 2016 12:29 PM > To: 'Wolfram Sang' > Cc: 'devicet...@vger.kernel.org'; 'linux-arm-...@vger.kernel.org'; > 'agr...@co

[RESEND PATCH V7 4/6] i2c: qup: Add bam dma capabilities

2016-02-22 Thread Sricharan R
transfer more than 256 bytes, without a 'stop' which is not possible otherwise. Signed-off-by: Sricharan R Reviewed-by: Andy Gross Tested-by: Archit Taneja Tested-by: Telkar Nagender --- Fixed Sparse/Static warnings. drivers/i2c/busses/i2c-q

RE: [PATCH v2 2/4] iommu/arm-smmu: Invoke DT probe from arm_smmu_of_setup()

2016-02-18 Thread Sricharan
Hi, > -Original Message- > From: linux-arm-kernel [mailto:linux-arm-kernel- > boun...@lists.infradead.org] On Behalf Of Anup Patel > Sent: Monday, February 08, 2016 10:48 AM > To: Catalin Marinas; Joerg Roedel; Will Deacon; Robin Murphy; Sricharan R; > Linux IOMMU; Lin

RE: [PATCH v4] iio: adc: Add TI ADS1015 ADC driver support

2016-02-18 Thread Sricharan
Hi, > On Wed, Feb 10, 2016 at 10:36:22AM -0600, Michael Welling wrote: > > On Wed, Feb 10, 2016 at 08:39:04PM +0530, Sricharan wrote: > > > > Hi Sricharan, > > > > > > > > Are you looking at pca9685_pwm_probe in drivers/pwm/pwm- > pca9685.c >

RE: [PATCH V7 4/6] i2c: qup: Add bam dma capabilities

2016-02-12 Thread Sricharan
Hi Wolfram, > -Original Message- > From: Wolfram Sang [mailto:w...@the-dreams.de] > Sent: Saturday, February 13, 2016 12:08 AM > To: Sricharan R > Cc: devicet...@vger.kernel.org; linux-arm-...@vger.kernel.org; > agr...@codeaurora.org; linux-kernel@vger.kern

RE: [PATCH v4] iio: adc: Add TI ADS1015 ADC driver support

2016-02-10 Thread Sricharan
pca@40 { > >> compatible = "nxp,pca9685-pwm"; > >> #pwm-cells = <2>; > >> reg = <0x40>; > >> }; > >> >

RE: [PATCH v4] iio: adc: Add TI ADS1015 ADC driver support

2016-02-10 Thread Sricharan
Hi, > -Original Message- > From: linux-arm-msm-ow...@vger.kernel.org [mailto:linux-arm-msm- > ow...@vger.kernel.org] On Behalf Of Michael Welling > Sent: Tuesday, February 09, 2016 12:47 AM > To: Sricharan > Cc: 'Wolfram Sang'; 'Daniel Baluta'

RE: [PATCH v4] iio: adc: Add TI ADS1015 ADC driver support

2016-02-08 Thread Sricharan
Stadler; Linux Kernel Mailing List; linux-...@vger.kernel.org; > Lucas De Marchi; Andy Gross; Pramod Gurav; Bjorn Andersson; Guenter > Roeck; eib...@gdsys.de; Sricharan R; linux-arm-...@vger.kernel.org > Subject: Re: [PATCH v4] iio: adc: Add TI ADS1015 ADC driver support > > On M

RE: [PATCH V7 3/6] i2c: qup: Transfer each i2c_msg in i2c_msgs without a stop bit

2016-02-05 Thread Sricharan
Hi Wolfram, > -Original Message- > From: linux-arm-kernel [mailto:linux-arm-kernel- > boun...@lists.infradead.org] On Behalf Of Wolfram Sang > Sent: Friday, February 05, 2016 1:39 AM > To: Sricharan > Cc: devicet...@vger.kernel.org; arch...@codeaurora.o

RE: [PATCH V7 0/6] i2c: qup: Add support for v2 tags and bam dma

2016-01-27 Thread Sricharan
Hi Wolfram, > -Original Message- > From: linux-arm-kernel [mailto:linux-arm-kernel- > boun...@lists.infradead.org] On Behalf Of Wolfram Sang > Sent: Sunday, January 24, 2016 5:03 PM > To: Sricharan > Cc: devicet...@vger.kernel.org; arch...@codeaurora.org; linux-arm- >

RE: [PATCH V7 3/6] i2c: qup: Transfer each i2c_msg in i2c_msgs without a stop bit

2016-01-27 Thread Sricharan
Hi Wolfram, > -Original Message- > From: Wolfram Sang [mailto:w...@the-dreams.de] > Sent: Sunday, January 24, 2016 4:59 PM > To: Sricharan R > Cc: devicet...@vger.kernel.org; linux-arm-...@vger.kernel.org; > agr...@codeaurora.org; linux-kernel@vger.kern

[PATCH V5 2/6] i2c: qup: Add V2 tags support

2015-11-17 Thread Sricharan R
For each block a data_write/read tag and data_len tag is added to the output fifo. For the final block of data write_stop/read_stop tag is used. Signed-off-by: Andy Gross Signed-off-by: Sricharan R --- drivers/i2c/busses/i2c-qup.c | 415 --- 1 file ch

[PATCH V5 5/6] dts: msm8974: Add blsp2_bam dma node

2015-11-17 Thread Sricharan R
Signed-off-by: Sricharan R --- arch/arm/boot/dts/qcom-msm8974.dtsi | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/qcom-msm8974.dtsi b/arch/arm/boot/dts/qcom-msm8974.dtsi index 753bdfd..7786408 100644 --- a/arch/arm/boot/dts/qcom-msm8974.dtsi

[PATCH V5 4/6] i2c: qup: Add bam dma capabilities

2015-11-17 Thread Sricharan R
transfer more than 256 bytes, without a 'stop' which is not possible otherwise. Signed-off-by: Sricharan R --- drivers/i2c/busses/i2c-qup.c | 447 ++- 1 file changed, 439 insertions(+), 8 deletions(-) diff --git a/drivers/i2c/busses/i2c-qup.c b/d

[PATCH V5 1/6] i2c: qup: Change qup_wait_writeready function to use for all timeouts

2015-11-17 Thread Sricharan R
qup_wait_writeready waits only on a output fifo empty event. Change the same function to accept the event and data length to wait as parameters. This way the same function can be used for timeouts in other places as well. Signed-off-by: Sricharan R --- drivers/i2c/busses/i2c-qup.c | 67

[PATCH V5 6/6] dts: msm8974: Add dma channels for blsp2_i2c1 node

2015-11-17 Thread Sricharan R
Signed-off-by: Sricharan R --- arch/arm/boot/dts/qcom-msm8974.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/qcom-msm8974.dtsi b/arch/arm/boot/dts/qcom-msm8974.dtsi index 7786408..bd1be53 100644 --- a/arch/arm/boot/dts/qcom-msm8974.dtsi +++ b/arch/arm/boot/dts/qcom

[PATCH V5 3/6] i2c: qup: Transfer each i2c_msg in i2c_msgs without a stop bit

2015-11-17 Thread Sricharan R
for the same. This is required for some clients like touchscreen which keeps incrementing counts across individual transfers and 'STOP' bit inbetween resets the counter, which is not required. This patch adds the support in non-dma mode. Signed-off-by: S

[PATCH V5 0/6] i2c: qup: Add support for v2 tags and bam dma

2015-11-17 Thread Sricharan R
t to coalesce each i2c_msg in i2c_msgs for fifo and block mode in Patch 2. Also addressed further code comments. http://comments.gmane.org/gmane.linux.drivers.i2c/22497 [V2] Addressed comments from Ivan T. Ivanov, Andy Gross [v1] Initial Version Sricharan R (6): i2c: qup: Change qup_wa

RE: [PATCH V4 5/7] i2c: qup: Add bam dma capabilities

2015-07-21 Thread Sricharan
Hi Ivan, > -Original Message- > From: linux-arm-kernel [mailto:linux-arm-kernel- > boun...@lists.infradead.org] On Behalf Of Ivan T. Ivanov > Sent: Monday, July 20, 2015 8:17 PM > To: Sricharan R > Cc: devicet...@vger.kernel.org; linux-arm-...@vger.kernel.org; >

RE: [PATCH V4 4/7] i2c: qup: Transfer each i2c_msg in i2c_msgs without a stop bit

2015-07-21 Thread Sricharan
Hi Ivan, > -Original Message- > From: Ivan T. Ivanov [mailto:iiva...@mm-sol.com] > Sent: Monday, July 20, 2015 4:53 PM > To: Sricharan R > Cc: devicet...@vger.kernel.org; linux-arm-...@vger.kernel.org; > ga...@codeaurora.org; linux-kernel@vger.kernel.org; linux- >

RE: [PATCH V4 3/7] i2c: qup: Add V2 tags support

2015-07-21 Thread Sricharan
Hi Ivan, > -Original Message- > From: Ivan T. Ivanov [mailto:iiva...@mm-sol.com] > Sent: Monday, July 20, 2015 3:14 PM > To: Sricharan R > Cc: devicet...@vger.kernel.org; linux-arm-...@vger.kernel.org; > ga...@codeaurora.org; linux-kernel@vger.kernel.org; linux- >

RE: [PATCH V4 2/7] qup: i2c: factor out common code for reuse

2015-07-20 Thread Sricharan
Hi Ivan, Thnaks for all the reviews. > -Original Message- > From: linux-arm-msm-ow...@vger.kernel.org [mailto:linux-arm-msm- > ow...@vger.kernel.org] On Behalf Of Ivan T. Ivanov > Sent: Monday, July 20, 2015 1:55 PM > To: Sricharan R > Cc: devicet...@vger.ker

[RFC] drivers: dma-coherent: Change order of allocation to PAGE_SIZE

2015-07-08 Thread Sricharan R
-out allocations to go through. Signed-off-by: Sricharan R --- drivers/base/dma-coherent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/base/dma-coherent.c b/drivers/base/dma-coherent.c index 55b8398..72bdc6f 100644 --- a/drivers/base/dma-coherent.c +++ b/drivers

[PATCH V4 3/7] i2c: qup: Add V2 tags support

2015-07-08 Thread Sricharan R
For each block a data_write/read tag and data_len tag is added to the output fifo. For the final block of data write_stop/read_stop tag is used. Signed-off-by: Andy Gross Signed-off-by: Sricharan R --- drivers/i2c/busses/i2c-qup.c | 330 ++- 1 file ch

[PATCH V4 5/7] i2c: qup: Add bam dma capabilities

2015-07-08 Thread Sricharan R
transfer more than 256 bytes, without a 'stop' which is not possible otherwise. Signed-off-by: Sricharan R --- drivers/i2c/busses/i2c-qup.c | 431 +-- 1 file changed, 415 insertions(+), 16 deletions(-) diff --git a/drivers/i2c/busses/i2c-qup.c b/d

[PATCH V4 7/7] dts: msm8974: Add dma channels for blsp2_i2c1 node

2015-07-08 Thread Sricharan R
Signed-off-by: Sricharan R --- arch/arm/boot/dts/qcom-msm8974.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/qcom-msm8974.dtsi b/arch/arm/boot/dts/qcom-msm8974.dtsi index f138202..17dcda3 100644 --- a/arch/arm/boot/dts/qcom-msm8974.dtsi +++ b/arch/arm/boot/dts/qcom

[PATCH V4 4/7] i2c: qup: Transfer each i2c_msg in i2c_msgs without a stop bit

2015-07-08 Thread Sricharan R
for the same. This is required for some clients like touchscreen which keeps incrementing counts across individual transfers and 'STOP' bit inbetween resets the counter, which is not required. This patch adds the support in non-dma mode. Signed-off-by: S

[PATCH V4 1/7] i2c: qup: Change qup_wait_writeready function to use for all timeouts

2015-07-08 Thread Sricharan R
qup_wait_writeready waits only on a output fifo empty event. Change the same function to accept the event and data length to wait as parameters. This way the same function can be used for timeouts in otherplaces as well. Signed-off-by: Sricharan R --- drivers/i2c/busses/i2c-qup.c | 67

[PATCH V4 6/7] dts: msm8974: Add blsp2_bam dma node

2015-07-08 Thread Sricharan R
Signed-off-by: Sricharan R --- arch/arm/boot/dts/qcom-msm8974.dtsi | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/qcom-msm8974.dtsi b/arch/arm/boot/dts/qcom-msm8974.dtsi index 37b47b5..f138202 100644 --- a/arch/arm/boot/dts/qcom-msm8974.dtsi

[PATCH V4 2/7] qup: i2c: factor out common code for reuse

2015-07-08 Thread Sricharan R
The qup_i2c_write/read_one functions can be split to have the common initialization code and function to loop around the data bytes separately. This way the initialization code can be reused while adding v2 tags functionality. Signed-off-by: Sricharan R --- drivers/i2c/busses/i2c-qup.c | 147

[PATCH V4 0/7] i2c: qup: Add support for v2 tags and bam dma

2015-07-08 Thread Sricharan R
de in Patch 2. Also addressed further code comments. http://comments.gmane.org/gmane.linux.drivers.i2c/22497 [V2] Addressed comments from Ivan T. Ivanov, Andy Gross [v1] Initial Version Sricharan R (7): i2c: qup: Change qup_wait_writeready function to use for all timeouts qup: i2c: factor ou

RE: [PATCH] iommu/arm-smmu: Fix bug in ARM_SMMU_FEAT_TRANS_OPS condition check

2015-06-25 Thread Sricharan
Hi, > -Original Message- > From: linux-arm-kernel [mailto:linux-arm-kernel- > boun...@lists.infradead.org] On Behalf Of Baptiste Reynal > Sent: Tuesday, June 23, 2015 5:43 PM > To: Sricharan R > Cc: linux-arm-...@vger.kernel.org; Linux IOMMU; Will Deacon; open list; &g

[PATCH] iommu/arm-smmu: Fix bug in ARM_SMMU_FEAT_TRANS_OPS condition check

2015-06-23 Thread Sricharan R
Patch 'fix ARM_SMMU_FEAT_TRANS_OPS condition' changed the check for ARM_SMMU_FEAT_TRANS_OPS to be based on presence of stage1 check, but used (id & ID0_ATOSNS) instead of !(id & ID0_ATOSNS). Fix it here. Signed-off-by: Sricharan R --- drivers/iommu/arm-smmu.c | 2 +- 1 file ch

Re: [PATCH V3 2/6] i2c: qup: Add V2 tags support

2015-04-16 Thread Sricharan R
Hi Ivan, On 04/16/2015 02:06 PM, Ivan T. Ivanov wrote: Hi Sricharan, On Wed, 2015-04-15 at 20:14 +0530, Sricharan R wrote: +#define QUP_I2C_MX_CONFIG_DURING_RUN BIT(31) Could you explain what is this for? This is a new feature in the V2 version of the controller, to

Re: [PATCH V3 2/6] i2c: qup: Add V2 tags support

2015-04-15 Thread Sricharan R
Hi Ivan, Sorry resending again, because wrapping seemed to be somehow wrong in my previous response. On 04/15/2015 02:19 PM, Ivan T. Ivanov wrote: Hi Sricharan, On Wed, 2015-04-15 at 12:09 +0530, Sricharan R wrote: +/* frequency definitions for high speed and max speed */ +#define

Re: [PATCH V3 2/6] i2c: qup: Add V2 tags support

2015-04-15 Thread Sricharan R
Hi Ivan, On 04/15/2015 02:19 PM, Ivan T. Ivanov wrote: Hi Sricharan, On Wed, 2015-04-15 at 12:09 +0530, Sricharan R wrote: +/* frequency definitions for high speed and max speed */ +#define I2C_QUP_CLK_FAST_FREQ 100 This is fast mode, if I am not mistaken. ya, up to 1MHZ

Re: [PATCH V3 2/6] i2c: qup: Add V2 tags support

2015-04-14 Thread Sricharan R
Hi Ivan, On 04/14/2015 08:46 PM, Ivan T. Ivanov wrote: Hi Sricharan, On Sat, 2015-04-11 at 12:39 +0530, Sricharan R wrote: From: Andy Gross QUP from version 2.1.1 onwards, supports a new format of i2c command tags. Tag codes instructs the controller to perform a operation like read/write

Re: [PATCH V3 5/6] dts: msm8974: Add blsp2_bam dma node

2015-04-12 Thread Sricharan R
Hi, On 04/12/2015 03:42 AM, Sergei Shtylyov wrote: Hello. On 04/11/2015 10:09 AM, Sricharan R wrote: Signed-off-by: Sricharan R --- arch/arm/boot/dts/qcom-msm8974.dtsi | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/qcom-msm8974.dtsi b

[PATCH V3 4/6] i2c: qup: Transfer every i2c_msg in i2c_msgs without stop

2015-04-11 Thread Sricharan R
port for the same. This is required for some clients like touchscreen which keeps incrementing counts across individual transfers and 'STOP' bit inbetween resets the counter, which is not required. Signed-off-by: Sricharan R --- drivers/i2c/busses/i2c-qup.c | 200 +

[PATCH V3 3/6] i2c: qup: Add bam dma capabilities

2015-04-11 Thread Sricharan R
transfer more than 256 bytes, without a 'stop' which is not possible otherwise. Signed-off-by: Sricharan R --- [V3] Addressed comments from Andy Gross to use macros for qup_i2c_wait_ready function. drivers/i2c/busses/i2c-qup.c | 415 +

[PATCH V3 2/6] i2c: qup: Add V2 tags support

2015-04-11 Thread Sricharan R
upport for the same. For each block a data_write/read tag and data_len tag is added to the output fifo. For the final block of data write_stop/read_stop tag is used. Signed-off-by: Andy Gross Signed-off-by: Sricharan R --- [V3] Addressed comments from Andy Gross to coalesce each i2c_msg i

[PATCH V3 6/6] dts: msm8974: Add dma channels for blsp2_i2c1 node

2015-04-11 Thread Sricharan R
Signed-off-by: Sricharan R --- arch/arm/boot/dts/qcom-msm8974.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/qcom-msm8974.dtsi b/arch/arm/boot/dts/qcom-msm8974.dtsi index 2c26151..d741856 100644 --- a/arch/arm/boot/dts/qcom-msm8974.dtsi +++ b/arch/arm/boot/dts/qcom

[PATCH V3 5/6] dts: msm8974: Add blsp2_bam dma node

2015-04-11 Thread Sricharan R
Signed-off-by: Sricharan R --- arch/arm/boot/dts/qcom-msm8974.dtsi | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/qcom-msm8974.dtsi b/arch/arm/boot/dts/qcom-msm8974.dtsi index e265ec1..2c26151 100644 --- a/arch/arm/boot/dts/qcom-msm8974.dtsi

[PATCH V3 0/6] i2c: qup: Add support for v2 tags and bam dma

2015-04-11 Thread Sricharan R
agon board eeprom client on i2c bus1 [V3] Added support to coalesce each i2c_msg in i2c_msgs for fifo and block mode in Patch 2. Also addressed further code comments. [V2] Addressed comments from Ivan T. Ivanov, Andy Gross [v1] Initial Version Andy Gross (1): i2c: qup: Add V2 tags support Sric

[PATCH V3 1/6] i2c: qup: Change qup_wait_writeready function to use for all timeouts

2015-04-11 Thread Sricharan R
qup_wait_writeready waits only on a output fifo empty event. Change the same function to accept the event and data length to wait as parameters. This way the same function can be used for timeouts in otherplaces as well. Signed-off-by: Sricharan R --- [v3] Addressed comments from Andy Gross

RE: [PATCH V2 2/6] i2c: qup: Add V2 tags support

2015-04-07 Thread Sricharan
Hi Andy, > -Original Message- > From: linux-arm-kernel [mailto:linux-arm-kernel- > boun...@lists.infradead.org] On Behalf Of Andy Gross > Sent: Tuesday, April 07, 2015 10:37 AM > To: Sricharan R > Cc: srich...@qti.qualcomm.com; devicet...@vger.kernel.org; linux-arm- >

[PATCH V2 4/6] i2c: qup: Transfer every i2c_msg in i2c_msgs without stop

2015-04-06 Thread Sricharan R
port for the same. This is required for some clients like touchscreen which keeps incrementing counts across individual transfers and 'STOP' bit inbetween resets the counter, which is not required. Signed-off-by: Sricharan R --- drivers/i2c/busses/i2c-qup.c | 199 +

[PATCH V2 2/6] i2c: qup: Add V2 tags support

2015-04-06 Thread Sricharan R
upport for the same. For each block a data_write/read tag and data_len tag is added to the output fifo. For the final block of data write_stop/read_stop tag is used. Signed-off-by: Andy Gross Signed-off-by: Sricharan R --- [v2] Addressed comments from Ivan T. Ivanov drivers/i2c/busses/i2c-q

[PATCH V2 5/6] dts: msm8974: Add blsp2_bam dma node

2015-04-06 Thread Sricharan R
Signed-off-by: Sricharan R --- [v2] Used macros for interrupts property. arch/arm/boot/dts/qcom-msm8974.dtsi | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/qcom-msm8974.dtsi b/arch/arm/boot/dts/qcom-msm8974.dtsi index 2d11641..c2e8711 100644

[PATCH V2 6/6] dts: msm8974: Add dma channels for blsp2_i2c1 node

2015-04-06 Thread Sricharan R
Signed-off-by: Sricharan R --- [v2] Changed dma channel names as per comments. arch/arm/boot/dts/qcom-msm8974.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/qcom-msm8974.dtsi b/arch/arm/boot/dts/qcom-msm8974.dtsi index c2e8711..5cb0772 100644 --- a/arch/arm/boot

[PATCH V2 1/6] i2c: qup: Change qup_wait_writeready function to use for all timeouts

2015-04-06 Thread Sricharan R
qup_wait_writeready waits only on a output fifo empty event. Change the same function to accept the event and data length to wait as parameters. This way the same function can be used for timeouts in otherplaces as well. Signed-off-by: Sricharan R --- drivers/i2c/busses/i2c-qup.c | 30

[PATCH V2 3/6] i2c: qup: Add bam dma capabilities

2015-04-06 Thread Sricharan R
transfer more than 256 bytes, without a 'stop' which is not possible otherwise. Signed-off-by: Sricharan R --- [v2] Addressed comments from Ivan T. Ivanov drivers/i2c/busses/i2c-qup.c | 371 ++- 1 file changed, 366 insertions(+), 5 deletion

[PATCH V2 0/6] i2c: qup: Add support for v2 tags and bam dma

2015-04-06 Thread Sricharan R
agon board eeprom client on i2c bus1 [V2] Addressed comments from Ivan T. Ivanov, Andy Gross [v1] Initial Version Andy Gross (1): i2c: qup: Add V2 tags support Sricharan R (5): i2c: qup: Change qup_wait_writeready function to use for all timeouts i2c: qup: Add bam dma capabilities i2c: qup

Re: [PATCH 2/6] i2c: qup: Add V2 tags support

2015-03-26 Thread Sricharan R
Hi Ivan, On 03/26/2015 01:01 PM, Ivan T. Ivanov wrote: Hi Sricharan, On Thu, 2015-03-26 at 11:14 +0530, Sricharan R wrote: + if (msg->flags & I2C_M_RD) + qup->rx_tag_len = (qup->blocks << 1); here again. hmm, why not shift ? Because it makes

Re: [PATCH 3/6] i2c: qup: Add bam dma capabilities

2015-03-25 Thread Sricharan R
Hi Ivan, On 03/25/2015 06:40 PM, Ivan T. Ivanov wrote: Hi Sricharan, On Fri, 2015-03-13 at 23:19 +0530, Sricharan R wrote: #define QUP_I2C_MASTER_GEN 0x408 +#define QUP_I2C_MASTER_CONFIG 0x408 Unused. Ok, will remove it #define QUP_READ_LIMIT 256 +#define

Re: [PATCH 2/6] i2c: qup: Add V2 tags support

2015-03-25 Thread Sricharan R
Hi Ivan, On 03/25/2015 05:54 PM, Ivan T. Ivanov wrote: Hi Sricharan, On Fri, 2015-03-13 at 23:19 +0530, Sricharan R wrote: From: Andy Gross QUP from version 2.1.1 onwards, supports a new format of i2c command tags. Tag codes instructs the controller to perform a operation like read/write

RE: [Patch v6 2/2] dmaengine: Add ADM driver

2015-03-19 Thread Sricharan
/* configure client interfaces */ > + writel(ADM_CI_RANGE_START(0x40) | ADM_CI_RANGE_END(0xb0) | > + ADM_CI_BURST_8_WORDS, adev->regs + > ADM_CI_CONF(0)); > + writel(ADM_CI_RANGE_START(0x2a) | ADM_CI_RANGE_END(0x2c) | > + ADM_CI_BURST_8_WORDS, adev->r

Re: [PATCH 5/6] dts: msm8974: Add blsp2_bam dma node

2015-03-17 Thread sricharan
Hi, > On 03/13/2015 07:49 PM, Sricharan R wrote: >> Signed-off-by: Sricharan R >> --- >> arch/arm/boot/dts/qcom-msm8974.dtsi | 10 ++ >> 1 file changed, 10 insertions(+) >> >> diff --git a/arch/arm/boot/dts/qcom-msm8974.dtsi >> b/arch/ar

Re: [PATCH 6/6] dts: msm8974: Add dma channels for blsp2_i2c1 node

2015-03-16 Thread sricharan
Hi, > On Fri, Mar 13, 2015 at 11:19:52PM +0530, Sricharan R wrote: >> Signed-off-by: Sricharan R >> --- > > Reviewed-by: Andy Gross > >> arch/arm/boot/dts/qcom-msm8974.dtsi | 2 ++ >> 1 file changed, 2 insertions(+) >> >> diff --git a/arch/arm/b

Re: [Patch v4 2/2] dmaengine: Add ADM driver

2015-03-16 Thread sricharan
ret = 4; >> > + break; >> > + case 256: >> > + ret = 5; >> > + break; >> ffs(burst>>4) ? > > that should work nicely. thanks. > Will not work for 192, 256 ? Regards, Sricharan -- 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/lkml/

[PATCH 5/6] dts: msm8974: Add blsp2_bam dma node

2015-03-13 Thread Sricharan R
Signed-off-by: Sricharan R --- arch/arm/boot/dts/qcom-msm8974.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/qcom-msm8974.dtsi b/arch/arm/boot/dts/qcom-msm8974.dtsi index e265ec1..3f648ae 100644 --- a/arch/arm/boot/dts/qcom-msm8974.dtsi +++ b/arch/arm

[PATCH 3/6] i2c: qup: Add bam dma capabilities

2015-03-13 Thread Sricharan R
transfer more than 256 bytes, without a 'stop' which is not possible otherwise. Signed-off-by: Sricharan R --- drivers/i2c/busses/i2c-qup.c | 365 ++- 1 file changed, 359 insertions(+), 6 deletions(-) diff --git a/drivers/i2c/busses/i2c-qup.c b/d

[PATCH 1/6] i2c: qup: Change qup_wait_writeready function to use for all timeouts

2015-03-13 Thread Sricharan R
qup_wait_writeready waits only on a output fifo empty event. Change the same function to accept the event and data length to wait as parameters. This way the same function can be used for timeouts in otherplaces as well. Signed-off-by: Sricharan R --- drivers/i2c/busses/i2c-qup.c | 30

[PATCH 6/6] dts: msm8974: Add dma channels for blsp2_i2c1 node

2015-03-13 Thread Sricharan R
Signed-off-by: Sricharan R --- arch/arm/boot/dts/qcom-msm8974.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/qcom-msm8974.dtsi b/arch/arm/boot/dts/qcom-msm8974.dtsi index 3f648ae..1ec7ec5 100644 --- a/arch/arm/boot/dts/qcom-msm8974.dtsi +++ b/arch/arm/boot/dts/qcom

[PATCH 4/6] i2c: qup: Transfer every i2c_msg in i2c_msgs without stop

2015-03-13 Thread Sricharan R
port for the same. This is required for some clients like touchscreen which keeps incrementing counts across individual transfers and 'STOP' bit inbetween resets the counter, which is not required. Signed-off-by: Sricharan R --- drivers/i2c/busses/i2c-qup.c | 192 +

[PATCH 2/6] i2c: qup: Add V2 tags support

2015-03-13 Thread Sricharan R
upport for the same. For each block a data_write/read tag and data_len tag is added to the output fifo. For the final block of data write_stop/read_stop tag is used. Signed-off-by: Andy Gross Signed-off-by: Sricharan R --- drivers/i2c/busses/i2c-qup.c | 342

[PATCH 0/6] i2c: qup: Add support for v2 tags and bam dma

2015-03-13 Thread Sricharan R
agon board eeprom client on i2c bus1 Andy Gross (1): i2c: qup: Add V2 tags support Sricharan R (5): i2c: qup: Change qup_wait_writeready function to use for all timeouts i2c: qup: Add bam dma capabilities i2c: qup: Transfer every i2c_msg in i2c_msgs without stop dts: msm8974: Add blsp2_ba

Re: [PATCH V4 00/16] irqchip: crossbar: Driver fixes

2014-07-01 Thread Sricharan R
it's immutable unless you tell me I applied something >> incorrectly. Once it goes into irqchip/core, it's immutable no matter >> what you say. ;-) > > Thanks, looks good to me. Sricharan and Nishant, can you please > check that we can now apply the related .dts changes

Re: [PATCH V4 2/2] arm: dts: dra7: add crossbar device binding

2014-06-26 Thread Sricharan R
Hi Tony, On Thursday 26 June 2014 01:14 PM, Tony Lindgren wrote: > * Sricharan R [140626 00:29]: >> From: R Sricharan >> >> There is a IRQ crossbar device in the soc, which >> maps the irq requests from the peripherals to the >> mpu interrupt controller's

[PATCH V4 1/2] arm: dts: dra7: add routable-irqs property for gic node

2014-06-26 Thread Sricharan R
From: R Sricharan There is a IRQ crossbar device in the soc, which maps the irq requests from the peripherals to the mpu interrupt controller's inputs. The gic provides the support for such IPs in the form of routable-irqs. So adding the property here to gic node. Signed-off-by: Sricha

[PATCH V4 2/2] arm: dts: dra7: add crossbar device binding

2014-06-26 Thread Sricharan R
From: R Sricharan There is a IRQ crossbar device in the soc, which maps the irq requests from the peripherals to the mpu interrupt controller's inputs. The Peripheral irq requests are connected to only one crossbar input and the output of the crossbar is connected to only one controller&#x

[PATCH V4 0/2] arm: dts: dra7: add crossbar dt support

2014-06-26 Thread Sricharan R
property and ti,irqs-safe-map property to crossbar dt node. [V4] Introduced macros MAX_SOURCES and DIRECT_IRQ R Sricharan (2): arm: dts: dra7: add routable-irqs property for gic node arm: dts: dra7: add crossbar device binding arch/arm/boot/dts/dra7.dts

[PATCH V4 03/16] irqchip: crossbar: Introduce ti,irqs-skip to skip irqs that bypass crossbar

2014-06-26 Thread Sricharan R
From: Nishanth Menon When, in the system due to varied reasons, interrupts might be unusable due to hardware behavior, but register maps do exist, then those interrupts should be skipped while mapping irq to crossbars. Signed-off-by: Nishanth Menon Signed-off-by: Sricharan R Acked-by: Santosh

[PATCH V4 02/16] irqchip: crossbar: Check for premapped crossbar before allocating

2014-06-26 Thread Sricharan R
-off-by: Nishanth Menon Signed-off-by: Sricharan R Acked-by: Santosh Shilimkar --- drivers/irqchip/irq-crossbar.c | 16 1 file changed, 16 insertions(+) diff --git a/drivers/irqchip/irq-crossbar.c b/drivers/irqchip/irq-crossbar.c index 20105bc..51d4b87 100644 --- a/drivers

[PATCH V4 00/16] irqchip: crossbar: Driver fixes

2014-06-26 Thread Sricharan R
quirky hardware with direct hardwiring of GIC Sricharan R (2): irqchip: crossbar: Set cb pointer to null in case of error irqchip: crossbar: Add kerneldoc for crossbar_domain_unmap callback .../devicetree/bindings/arm/omap/crossbar.txt | 36 + drivers/irqchip

[PATCH V4 09/16] irqchip: crossbar: Return proper error value

2014-06-26 Thread Sricharan R
From: Nishanth Menon crossbar_of_init always returns -ENOMEM in case of errors. There can be other causes of failure like invalid data from DT. So return a appropriate error value for that case. Signed-off-by: Nishanth Menon Signed-off-by: Sricharan R Acked-by: Santosh Shilimkar --- drivers

[PATCH V4 10/16] irqchip: crossbar: Change the goto naming

2014-06-26 Thread Sricharan R
From: Nishanth Menon Using err1,2,3,4 etc makes it hard to ensure a new exit path in the middle will not result in spurious changes, so rename the error paths as per the function it does. Signed-off-by: Nishanth Menon Signed-off-by: Sricharan R Acked-by: Santosh Shilimkar --- drivers

[PATCH V4 07/16] irqchip: crossbar: Fix sparse and checkpatch warnings

2014-06-26 Thread Sricharan R
, GFP_KERNEL); WARNING: Prefer kcalloc over kzalloc with multiply + cb->register_offsets = kzalloc(max * sizeof(int), GFP_KERNEL); Signed-off-by: Nishanth Menon Signed-off-by: Sricharan R Acked-by: Santosh Shilimkar --- drivers/irqchip/irq-crossbar.c |7 --- 1 file changed, 4

<    3   4   5   6   7   8   9   10   >