Fix fastboot flash bug.
If the downloading file size is equal to the partition size, "fastboot
flash" can't work, at least in sunxi platform, because used an
uninitalized point: ep->desc.
This patch also fixed 'data abort' bug in am335x platform.
Reproduce: fastboot flash loader1 spl/sunxi-spl.bin.
Signed-off-by: qianfan Zhao <qianfanguijin@163.com>
Reviewed-by: Sean Anderson <seanga2@gmail.com>
} else
musb_ep->dma = NULL;
+ musb_ep->end_point.desc = desc;
musb_ep->desc = desc;
musb_ep->busy = 0;
musb_ep->wedged = 0;
}
musb_ep->desc = NULL;
-#ifndef __UBOOT__
musb_ep->end_point.desc = NULL;
-#endif
/* abort all pending DMA and requests */
nuke(musb_ep, -ESHUTDOWN);