Skip to content
  • Patrick Delaunay's avatar
    usb: host: dwc2: force reset assert · 66004381
    Patrick Delaunay authored and Marek Vasut's avatar Marek Vasut committed
    
    
    Assert reset before deassert in dwc2_reset;
    this patch solve issues when the DWC2 registers are already
    initialized with value incompatible with host mode.
    
    Force a hardware reset of the IP reset all the DWC2 registers at
    default value, the host driver start with a clean state
    (Core Soft reset doen in dwc_otg_core_reset is not enought
     to reset all register).
    
    The error can occurs in U-Boot when DWC2 device gadget driver
    force device mode (called by ums or dfu command, before to execute
    the usb start command).
    
    Signed-off-by: default avatarPatrick Delaunay <patrick.delaunay@st.com>
    66004381