[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20130625183050.GA2718@n2100.arm.linux.org.uk>
Date: Tue, 25 Jun 2013 19:30:51 +0100
From: Russell King - ARM Linux <linux@....linux.org.uk>
To: Vinod Koul <vinod.koul@...el.com>
Cc: Tomasz Figa <tomasz.figa@...il.com>,
linux-samsung-soc@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
linux-spi@...r.kernel.org, alsa-devel@...a-project.org,
Kukjin Kim <kgene.kim@...sung.com>, Dan Williams <djbw@...com>,
Linus Walleij <linus.walleij@...aro.org>,
Alessandro Rubini <rubini@...dd.com>,
Giancarlo Asnaghi <giancarlo.asnaghi@...com>,
Mark Brown <broonie@...nel.org>,
Grant Likely <grant.likely@...aro.org>,
Sangbeom Kim <sbkim73@...sung.com>,
Liam Girdwood <lgirdwood@...il.com>,
Jaroslav Kysela <perex@...ex.cz>, Takashi Iwai <tiwai@...e.de>,
Padmavathi Venna <padma.v@...sung.com>,
Thomas Abraham <thomas.abraham@...aro.org>,
Arnd Bergmann <arnd@...db.de>, Olof Johansson <olof@...om.net>,
Heiko Stübner <heiko@...ech.de>,
Sylwester Nawrocki <sylvester.nawrocki@...il.com>,
Alban Bedel <alban.bedel@...onic-design.de>
Subject: Re: [RFC PATCH v2 01/12] dmaengine: PL08x: Refactor
pl08x_getbytes_chan() to lower indentation
On Tue, Jun 25, 2013 at 08:46:12PM +0530, Vinod Koul wrote:
> On Sat, Jun 22, 2013 at 10:42:33PM +0200, Tomasz Figa wrote:
> > - BUG_ON(clli < llis_bus || clli >= llis_bus +
> > + llis_va = txd->llis_va;
> > + llis_bus = txd->llis_bus;
> > +
> > + BUG_ON(clli < llis_bus || clli >= llis_bus +
> > sizeof(struct pl08x_lli) * MAX_NUM_TSFR_LLIS);
> IMO BUG_ON is too much for this. Perhaps returning error and logging error would
> be okay
That should be a separate patch, because that's an unrelated change
to this patch. As this part is just reformatting this part of the
code, it should contain no actual changes.
There's lots that this driver "should" do differently...
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists