• Thinh Nguyen's avatar
    usb: dwc3: gadget: WARN on no-resource status · f7ac582e
    Thinh Nguyen authored
    If the driver issued START_TRANSFER and received a no-resource status,
    then generally there are a few reasons for this:
    
    1) The driver did not allocate resource for the endpoint during
    power-on-reset initialization.
    
    2) The transfer resource was reset. At this moment, we don't do this in
    the driver, but it occurs when the driver issues START_CONFIG cmd to ep0
    with resource index=2.
    
    3) The driver issues the START_TRANSFER command to an already started
    endpoint. Usually, this is because the END_TRANSFER command hasn't
    completed yet.
    
    Print out a warning to help debug this issue in the driver.
    Signed-off-by: default avatarThinh Nguyen <thinhn@synopsys.com>
    Signed-off-by: default avatarFelipe Balbi <balbi@kernel.org>
    f7ac582e
gadget.c 90.3 KB