Fix hang on boot
Detail: c/cmodule - Add a re-entrancy check to USB driver initialisation; due to recent kernel changes we're now getting the "USBDriver has started" service call during the middle of our call to USBDriver_Register (called from our own initialisation callback). Without the re-entrancy check the system was getting confused and sending a duff transfer request to DWCDriver, resulting in a hang somewhere in the driver logic. Admin: Tested on Raspberry Pi Machine no longer stops after "mod init done" is displayed Version 0.10. Tagged as 'DWCDriver-0_10'
Showing with 14 additions and 11 deletions