]> git.sur5r.net Git - u-boot/blobdiff - api/api_storage.c
Add ARM errata workaround 852421 and 852423 for Cortex-A17
[u-boot] / api / api_storage.c
index e80818df1c426ed6942c8b1da266c81c691b0b9e..a5357bc9cf83c50eded8509406a06809548b5b74 100644 (file)
@@ -331,10 +331,14 @@ lbasize_t dev_read_stor(void *cookie, void *buf, lbasize_t len, lbastart_t start
        if (!dev_stor_is_valid(type, dd))
                return 0;
 
+#ifdef CONFIG_BLK
+       return blk_dread(dd, start, len, buf);
+#else
        if ((dd->block_read) == NULL) {
                debugf("no block_read() for device 0x%08x\n", cookie);
                return 0;
        }
 
        return dd->block_read(dd, start, len, buf);
+#endif /* defined(CONFIG_BLK) */
 }