summaryrefslogtreecommitdiffstats
path: root/drivers/ata
diff options
context:
space:
mode:
authorDenis Orlov <denorl2009@gmail.com>2022-05-04 12:25:45 +0300
committerSascha Hauer <s.hauer@pengutronix.de>2022-05-05 09:47:04 +0200
commit5740f79edebbe6d29189b9aba9ce8cfa2e374532 (patch)
tree5305d7e0d3e9fd8b9e6ded0efb674f4198ca992a /drivers/ata
parent81f4812dd1fd696418d03207dcf9d9ded88a142c (diff)
downloadbarebox-5740f79edebbe6d29189b9aba9ce8cfa2e374532.tar.gz
barebox-5740f79edebbe6d29189b9aba9ce8cfa2e374532.tar.xz
ata: ahci: properly fill scatter/gather table
We are supposed to populate a table, but instead we were just overwriting the same entry over and over in a loop. Signed-off-by: Denis Orlov <denorl2009@gmail.com> Link: https://lore.barebox.org/20220504092553.27961-8-denorl2009@gmail.com Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/ata')
-rw-r--r--drivers/ata/ahci.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c
index f7eb35c09d..2d7b527755 100644
--- a/drivers/ata/ahci.c
+++ b/drivers/ata/ahci.c
@@ -139,6 +139,7 @@ static int ahci_fill_sg(struct ahci_port *ahci_port, const void *buf, int buf_le
buf_len -= now;
buf += now;
+ ahci_sg++;
}
return sg_count;