Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752382AbbHTHH4 (ORCPT ); Thu, 20 Aug 2015 03:07:56 -0400 Received: from mga11.intel.com ([192.55.52.93]:33580 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752163AbbHTHHx (ORCPT ); Thu, 20 Aug 2015 03:07:53 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,714,1432623600"; d="scan'208";a="787326738" Date: Thu, 20 Aug 2015 12:39:57 +0530 From: Vinod Koul To: Rameshwar Sahu Cc: dan.j.williams@intel.com, Herbert Xu , davem@davemloft.net, linux-crypto@vger.kernel.org, dmaengine@vger.kernel.org, Arnd Bergmann , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, jcm@redhat.com, patches@apm.com Subject: Re: [PATCH v1 2/4] dmaengine: xgene-dma: Add support for CRC32C calculation via DMA engine Message-ID: <20150820070957.GG13546@localhost> References: <1438258268-3099-1-git-send-email-rsahu@apm.com> <1438258268-3099-3-git-send-email-rsahu@apm.com> <20150820054034.GX13546@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1331 Lines: 34 On Thu, Aug 20, 2015 at 12:23:50PM +0530, Rameshwar Sahu wrote: > Hi Vinod, > > On Thu, Aug 20, 2015 at 11:10 AM, Vinod Koul wrote: > > On Thu, Jul 30, 2015 at 05:41:06PM +0530, Rameshwar Prasad Sahu wrote: > >> + /* Invalidate unused source address field */ > >> + for (; i < 4; i++) > >> + xgene_dma_invalidate_buffer(xgene_dma_lookup_ext8(desc2, i)); > >> + > >> + /* Check whether requested buffer processed */ > >> + if (nbytes) { > >> + chan_err(chan, "Src count crossed maximum limit\n"); > >> + return -EINVAL; > > no cleanup ? > Here not required, cleanup I am doing in parent function from where > this function is getting called in case of failure. > > > >> +struct dma_async_tx_descriptor *xgene_dma_prep_flyby( > >> + struct xgene_dma_chan *chan, struct scatterlist *src_sg, > >> + size_t len, u32 seed, u8 *result, unsigned long flags, u8 opcode) > > please fix style here > > Could you explain me What kind of coding style you would like here ?? See CodingStyle Chapter 2 -- ~Vinod -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/