boundarydevices / imx_usb_loader

USB & UART loader for i.MX5/6/7/8 series
GNU Lesser General Public License v2.1
262 stars 158 forks source link

Imx usb main refactor #42

Closed agners closed 7 years ago

agners commented 7 years ago

Hi,

This refactors the main function, making it more readable and offloading the main job handling into a separate function. It should come with almost no behavior change except some removed debug prints.

My ultimate goal is to extend imx_usb so that it can handle device re-enumeration with diffrent PID/VID in order to use the SDP emulation in SPL/U-Boot (with different PID/VID) in one imx_usb call. This is not yet part of that patchset.

Best regards, Stefan

agners commented 7 years ago

Any thoughts on this? I'd rather prefer to have this sorted as long as things are still warm :smile: