[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20090929085751.3cc1fa3c@hskinnemoen-d830>
Date: Tue, 29 Sep 2009 08:57:51 +0200
From: Haavard Skinnemoen <haavard.skinnemoen@...el.com>
To: Ben Nizette <bn@...sdigital.com>
Cc: hskinnemoen@...el.com, spi-devel-general@...ts.sourceforge.net,
Linux Kernel list <linux-kernel@...r.kernel.org>,
kernel <kernel@...32linux.org>, dbrownell@...rs.sourceforge.net
Subject: Re: [PATCH] atmel_spi: fix dma addr calculation for len >
BUFFER_SIZE
Ben Nizette <bn@...sdigital.com> wrote:
> From: Ben Nizette <bn@...sdigital.com>
> Subject: [PATCH] atmel_spi: make "len" variable name less ambiguous in dma addr calculation
>
> "[PATCH] atmel_spi: fix dma addr calculation for len > BUFFER_SIZE"
> fixed a bug where the "len" variable in atmel_spi_next_xfer_data() was
> taken to be the total number of bytes remaining in the transfer but it
> actually represents the number of bytes which will be sent this dma
> chunk. While the 2 will be the same if there is less than 1 chunk to go
> (or if we aren't using a scratch buffer and therefore aren't breaking
> the transfers in to chunks), they won't be the same in general.
>
> s/len/next_len to reflect the true nature and usage of this variable.
>
> Signed-off-by: Ben Nizette <bn@...sdigital.com>
Excellent, thanks.
Acked-by: Haavard Skinnemoen <haavard.skinnemoen@...el.com>
--
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