• Felipe Balbi's avatar
    usb: dwc3: implement runtime PM · fc8bb91b
    Felipe Balbi authored
    this patch implements the most basic pm_runtime
    support for dwc3. Whenever USB cable is dettached,
    then we will allow core to runtime_suspend.
    
    Runtime suspending will involve completely tearing
    down event buffers and require a full soft-reset of
    the IP.
    
    Note that a further optimization could be
    implemented once we decide to support hibernation,
    which is to allow runtime_suspend with cable
    connected when bus is in U3. That's subject to a
    separate patch, however.
    Tested-by: default avatarBaolin Wang <baolin.wang@linaro.org>
    Signed-off-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
    fc8bb91b
gadget.c 74 KB