]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
ahci: Fix a wrong parameter pass
authorTang Yuantian <Yuantian.Tang@freescale.com>
Tue, 31 Mar 2015 07:02:43 +0000 (15:02 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 1 Sep 2015 12:38:16 +0000 (14:38 +0200)
commit650f3d5dd72ed1d67b6cd0845c878835fa03c574
treea442f9b089a322126d5e69843d998a98ac22452c
parentc44285d18e1a5e748b4fa719fd9b81c8f0969936
ahci: Fix a wrong parameter pass

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@freescale.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/block/ahci.c