Lines Matching full:vbus
44 * "USB" = VBUS and "USB-HOST" = !ID, so we have:
47 * even if VBUS is on.
49 * State | ID | VBUS
57 * - VBUS only - we want to distinguish between [1] and [2], so ID is always 1.
58 * - ID only - we want to distinguish between [1] and [4], so VBUS = ID.
62 int id, vbus; in usb_extcon_detect_cable() local
67 /* check ID and VBUS and update cable state */ in usb_extcon_detect_cable()
70 vbus = info->vbus_gpiod ? in usb_extcon_detect_cable()
76 if (!vbus) in usb_extcon_detect_cable()
82 if (vbus) in usb_extcon_detect_cable()
113 info->vbus_gpiod = devm_gpiod_get_optional(&pdev->dev, "vbus", in usb_extcon_probe()
172 dev_err(dev, "failed to get VBUS IRQ\n"); in usb_extcon_probe()
182 dev_err(dev, "failed to request handler for VBUS IRQ\n"); in usb_extcon_probe()