usb: musb: mediatek: power cycle phy when switching mode

The switching of the otg mode is unrealiable. Power cycle the phy
to workaround tht issue.

Signed-off-by: Fabien Parent <fparent@baylibre.com>
diff --git a/drivers/usb/musb/mediatek.c b/drivers/usb/musb/mediatek.c
index 839875e..d76180d 100644
--- a/drivers/usb/musb/mediatek.c
+++ b/drivers/usb/musb/mediatek.c
@@ -166,6 +166,9 @@
 	}
 
 	glue->role = new_role;
+	phy_power_off(glue->phy);
+	msleep(1000);
+	phy_power_on(glue->phy);
 	phy_set_mode(glue->phy, glue->phy_mode);
 
 	return 0;