Lines Matching refs:vbus
58 /* sunxi has the phy id/vbus pins not connected, so we use the force bits */
122 struct regulator *vbus;
434 /* Fallback: report vbus as high */
451 * generate vbus change interrupts when the board is driving
452 * vbus using the N_VBUSEN pin on the pmic, so we must poll
453 * when using the pmic for vbus-det _and_ we're driving vbus.
468 if (!phy->vbus || phy->regulator_on)
474 dev_warn(&_phy->dev, "External vbus detected, not enabling our own vbus\n");
478 ret = regulator_enable(phy->vbus);
496 if (!phy->vbus || !phy->regulator_on)
499 regulator_disable(phy->vbus);
503 * phy0 vbus typically slowly discharges, sometimes this causes the
610 /* id-change, force session end if we've no vbus detection */
665 /* vbus or id changed, let the pins settle and then scan them */
791 phy->vbus = devm_regulator_get_optional(dev, name);
792 if (IS_ERR(phy->vbus)) {
793 if (PTR_ERR(phy->vbus) == -EPROBE_DEFER) {
800 phy->vbus = NULL;
873 "usb0-vbus-det", data);
875 dev_err(dev, "Err requesting vbus-det-irq: %d\n", ret);