Lines Matching refs:otg_sx
195 struct otg_switch_mtk *otg_sx = &ssusb->otg_switch; in get_ssusb_rscs() local
262 otg_sx->vbus = devm_regulator_get(dev, "vbus"); in get_ssusb_rscs()
263 if (IS_ERR(otg_sx->vbus)) { in get_ssusb_rscs()
265 return PTR_ERR(otg_sx->vbus); in get_ssusb_rscs()
272 otg_sx->is_u3_drd = of_property_read_bool(node, "mediatek,usb3-drd"); in get_ssusb_rscs()
273 otg_sx->manual_drd_enabled = in get_ssusb_rscs()
275 otg_sx->role_sw_used = of_property_read_bool(node, "usb-role-switch"); in get_ssusb_rscs()
280 if (otg_sx->role_sw_used || otg_sx->manual_drd_enabled) in get_ssusb_rscs()
284 otg_sx->edev = extcon_get_edev_by_phandle(ssusb->dev, 0); in get_ssusb_rscs()
285 if (IS_ERR(otg_sx->edev)) { in get_ssusb_rscs()
286 return dev_err_probe(dev, PTR_ERR(otg_sx->edev), in get_ssusb_rscs()
293 ssusb->dr_mode, otg_sx->is_u3_drd, in get_ssusb_rscs()
294 otg_sx->manual_drd_enabled ? "manual" : "auto"); in get_ssusb_rscs()