Lines Matching refs:vbus
60 /* sunxi has the phy id/vbus pins not connected, so we use the force bits */
133 struct regulator *vbus;
394 /* Fallback: report vbus as high */
411 * generate vbus change interrupts when the board is driving
412 * vbus using the N_VBUSEN pin on the pmic, so we must poll
413 * when using the pmic for vbus-det _and_ we're driving vbus.
429 if (!phy->vbus || phy->regulator_on)
435 dev_warn(&_phy->dev, "External vbus detected, not enabling our own vbus\n");
439 ret = regulator_enable(phy->vbus);
457 if (!phy->vbus || !phy->regulator_on)
460 regulator_disable(phy->vbus);
464 * phy0 vbus typically slowly discharges, sometimes this causes the
571 /* id-change, force session end if we've no vbus detection */
626 /* vbus or id changed, let the pins settle and then scan them */
756 phy->vbus = devm_regulator_get_optional(dev, name);
757 if (IS_ERR(phy->vbus)) {
758 if (PTR_ERR(phy->vbus) == -EPROBE_DEFER) {
765 phy->vbus = NULL;
833 "usb0-vbus-det", data);
835 dev_err(dev, "Err requesting vbus-det-irq: %d\n", ret);