[U-Boot] [PATCH] ahci: Fix a wrong parameter pass
Simon Glass
sjg at chromium.org
Sat Apr 4 01:26:29 CEST 2015
On 31 March 2015 at 01:02, <Yuantian.Tang at freescale.com> 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>
> ---
> drivers/block/ahci.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
I'm not an expert here but this looks right.
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list