From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sricharan" Subject: RE: [PATCH V7 4/6] i2c: qup: Add bam dma capabilities Date: Sat, 13 Feb 2016 12:28:50 +0530 Message-ID: <002e01d1662c$0579d640$106d82c0$@codeaurora.org> References: <1453197766-18976-1-git-send-email-sricharan@codeaurora.org> <1453197766-18976-5-git-send-email-sricharan@codeaurora.org> <20160212183737.GA1520@katana> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20160212183737.GA1520@katana> Content-Language: en-us Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: 'Wolfram Sang' Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-arm-msm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, agross-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, iivanov-NEYub+7Iv8PQT0dZR+AlfA@public.gmane.org, galak-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org, dmaengine-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, andy.gross-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org, ntelkar-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org, architt-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org List-Id: devicetree@vger.kernel.org Hi Wolfram, > -----Original Message----- > From: Wolfram Sang [mailto:wsa-z923LK4zBo2bacvFa/9K2g@public.gmane.org] > Sent: Saturday, February 13, 2016 12:08 AM > To: Sricharan R > Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org; linux-arm-msm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org; > agross-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org; linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org; linux- > i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org; iivanov-NEYub+7Iv8PQT0dZR+AlfA@public.gmane.org; galak-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org; > dmaengine-u79uwXL29TY76Z2rM5mHXA@public.gmane.org; linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org; > andy.gross-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org; ntelkar-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org; architt-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org > Subject: Re: [PATCH V7 4/6] i2c: qup: Add bam dma capabilities > > On Tue, Jan 19, 2016 at 03:32:44PM +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 FIFO and the BAM producer > > pipe received data is read from the input FIFO. > > > > With BAM capabilities, qup-i2c core can 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 > > My code checkers found some issues: > > SPARSE > drivers/i2c/busses/i2c-qup.c:555:6: warning: symbol 'qup_sg_set_buf' was > not declared. Should it be static? > drivers/i2c/busses/i2c-qup.c:1243:50: warning: dubious: !x & !y > SMATCH > drivers/i2c/busses/i2c-qup.c:165 qup_sg_set_buf warn: unused return: s = > sg_next() > drivers/i2c/busses/i2c-qup.c:165 qup_sg_set_buf warn: unused return: s = > sg_next() > drivers/i2c/busses/i2c-qup.c:1243 qup_i2c_xfer_v2() warn: add some > parenthesis here? > CPPCHECK > drivers/i2c/busses/i2c-qup.c:1243: style: Boolean result is used in bitwise > operation. Clarify expression with parentheses. > SPATCH > drivers/i2c/busses/i2c-qup.c:1380:2-13: WARNING: Assignment of bool to 0/1 > drivers/i2c/busses/i2c-qup.c:1481:1-13: WARNING: Assignment of bool to 0/1 > CC drivers/i2c/busses/i2c-qup.o > drivers/i2c/busses/i2c-qup.c:555:6: warning: no previous prototype for > 'qup_sg_set_buf' [-Wmissing-prototypes] void qup_sg_set_buf(struct > scatterlist *sg, void *buf, struct qup_i2c_tag *tg, > > Can you fix them and resend?? Sorry on this , will resend this patch. Regards, Sricharan -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html