Lines Matching refs:ret
46 int ret; in sti_usb_phy_deassert() local
48 ret = reset_deassert(&phy->global_ctl); in sti_usb_phy_deassert()
49 if (ret < 0) { in sti_usb_phy_deassert()
50 pr_err("PHY global deassert failed: %d", ret); in sti_usb_phy_deassert()
51 return ret; in sti_usb_phy_deassert()
54 ret = reset_deassert(&phy->port_ctl); in sti_usb_phy_deassert()
55 if (ret < 0) in sti_usb_phy_deassert()
56 pr_err("PHY port deassert failed: %d", ret); in sti_usb_phy_deassert()
58 return ret; in sti_usb_phy_deassert()
84 int ret; in sti_usb_phy_exit() local
86 ret = reset_assert(&phy->port_ctl); in sti_usb_phy_exit()
87 if (ret < 0) { in sti_usb_phy_exit()
88 pr_err("PHY port assert failed: %d", ret); in sti_usb_phy_exit()
89 return ret; in sti_usb_phy_exit()
92 ret = reset_assert(&phy->global_ctl); in sti_usb_phy_exit()
93 if (ret < 0) in sti_usb_phy_exit()
94 pr_err("PHY global assert failed: %d", ret); in sti_usb_phy_exit()
96 return ret; in sti_usb_phy_exit()
110 int ret, count; in sti_usb_phy_probe() local
113 ret = dev_read_phandle_with_args(dev, "st,syscfg", NULL, 0, 0, in sti_usb_phy_probe()
116 if (ret < 0) { in sti_usb_phy_probe()
117 pr_err("Can't get syscfg phandle: %d\n", ret); in sti_usb_phy_probe()
118 return ret; in sti_usb_phy_probe()
121 ret = uclass_get_device_by_ofnode(UCLASS_SYSCON, syscfg_phandle.node, in sti_usb_phy_probe()
123 if (ret) { in sti_usb_phy_probe()
124 pr_err("unable to find syscon device (%d)\n", ret); in sti_usb_phy_probe()
125 return ret; in sti_usb_phy_probe()
153 ret = reset_get_by_name(dev, "global", &priv->global_ctl); in sti_usb_phy_probe()
154 if (ret) { in sti_usb_phy_probe()
155 pr_err("can't get global reset for %s (%d)", dev->name, ret); in sti_usb_phy_probe()
156 return ret; in sti_usb_phy_probe()
160 ret = reset_get_by_name(dev, "port", &priv->port_ctl); in sti_usb_phy_probe()
161 if (ret) { in sti_usb_phy_probe()
162 pr_err("can't get port reset for %s (%d)", dev->name, ret); in sti_usb_phy_probe()
163 return ret; in sti_usb_phy_probe()