drivers: musb_gadget: Save endpoint desc to usb_ep->desc
authorqianfan Zhao <qianfanguijin@163.com>
Tue, 16 Nov 2021 00:30:12 +0000 (08:30 +0800)
committerTom Rini <trini@konsulko.com>
Mon, 17 Jan 2022 19:45:24 +0000 (14:45 -0500)
commitea9733ac4c268cc862ec1e414f066f192348ef5a
tree24da768e89fd2c59c10a8421282159bd9fb92599
parent429866e84559f7019f176c6c084392ec8dfd128c
drivers: musb_gadget: Save endpoint desc to usb_ep->desc

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>
drivers/usb/musb-new/musb_gadget.c