If phy driver is present register hcd handle to it.
Acked-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Mian Yousaf Kaukab <yousaf.kaukab@intel.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
        /* Don't support SG list at this point */
        hcd->self.sg_tablesize = 0;
 
+       if (!IS_ERR_OR_NULL(hsotg->uphy))
+               otg_set_host(hsotg->uphy->otg, &hcd->self);
+
        /*
         * Finish generic HCD initialization and start the HCD. This function
         * allocates the DMA buffer pool, registers the USB bus, requests the
                return;
        }
 
+       if (!IS_ERR_OR_NULL(hsotg->uphy))
+               otg_set_host(hsotg->uphy->otg, NULL);
+
        usb_remove_hcd(hcd);
        hsotg->priv = NULL;
        dwc2_hcd_release(hsotg);