From 1fca7b9a91f6621b848d474b8edb94335b693500 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Wed, 28 Oct 2020 18:59:36 +0100 Subject: [PATCH] software/liblitesata/sata_read: handle errors. --- litex/soc/software/liblitesata/sata.c | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/litex/soc/software/liblitesata/sata.c b/litex/soc/software/liblitesata/sata.c index cbc2cd3a8..cef80e8b9 100644 --- a/litex/soc/software/liblitesata/sata.c +++ b/litex/soc/software/liblitesata/sata.c @@ -26,11 +26,19 @@ int sata_init(void) { void sata_read(uint32_t block, uint32_t count, uint8_t* buf) { uint32_t i; + + /* Read blocks */ for (i=0; i