]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/dfu/dfu_nand.c
usb: dfu: make nand upload working
[karo-tx-uboot.git] / drivers / dfu / dfu_nand.c
index edbf5a97b9001a84cd93570884f6aee5372cdc96..2d07097e850af70544d95f5481d6d5af9ef26f5c 100644 (file)
@@ -121,6 +121,7 @@ static int dfu_read_medium_nand(struct dfu_entity *dfu, u64 offset, void *buf,
 
        switch (dfu->layout) {
        case DFU_RAW_ADDR:
+               *len = dfu->data.nand.size;
                ret = nand_block_read(dfu, offset, buf, len);
                break;
        default: