• Luo Ji's avatar
    MA-12160 Check the request status in dequeue for cdns3 driver · 2dd1badb
    Luo Ji authored
    "fastboot reboot bootloader" fails to transmit "OKAY" back to host on
    imx8qm because fastboot_tx_write_str() will dequeue the IN request
    first before queue it, cdns3 usb driver will always invoke the complete
    callback in dequeue, so if we are going to do_reset() in the complete
    callback, the device will reboot before we can transmit "OKAY" back to
    host in queue.
    Check the request status in dequeue first before invoke the complete
    callback, this is basically ported from kernel.
    
    Test: No error messages when run "fastboot reboot bootloader" on
          imx8qm_mek.
    
    Change-Id: I085df3bd0f37480b8636585cc1068d5fcae331c1
    Signed-off-by: default avatarLuo Ji <ji.luo@nxp.com>
    2dd1badb
Name
Last commit
Last update
..
Kconfig Loading commit data...
Makefile Loading commit data...
cdns3-nxp-reg-def.h Loading commit data...
core.c Loading commit data...
core.h Loading commit data...
dev-regs-macro.h Loading commit data...
dev-regs-map.h Loading commit data...
gadget-export.h Loading commit data...
gadget.c Loading commit data...
gadget.h Loading commit data...
io.h Loading commit data...
linux-compat.h Loading commit data...