[U-Boot] ahci: Fix a wrong parameter pass

Tom Rini trini at konsulko.com
Tue Apr 7 19:58:50 CEST 2015


On Tue, Mar 31, 2015 at 03:02:43PM +0800, tang yuantian wrote:

> From: Tang Yuantian <Yuantian.Tang at freescale.com>
> 
> In stead of user_buffer_size, transfer_size should be used to pass to
> ahci_device_data_io(). transfer_size is the length that we want the
> low level function to transfer each time.
> If we use user_buffer_size which is the totally data length as parameter,
> low level function will actually create many SGs to transfer as many data
> as possible each time. That will produce many redundant data transfer.
> 
> Signed-off-by: Tang Yuantian <Yuantian.Tang at freescale.com>
> Reviewed-by: Simon Glass <sjg at chromium.org>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150407/001bf279/attachment.sig>


More information about the U-Boot mailing list