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.
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