---
name: "usb_bus_start_enum"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/usb_bus_start_enum"
---

# usb\_bus\_start\_enum(9)

start immediate enumeration (for OTG)

## NAME

usb\_bus\_start\_enum - start immediate enumeration (for OTG)

## SYNOPSIS

**int usb\_bus\_start\_enum(struct usb\_bus \*** *bus***, unsigned** *port\_num***);**

## ARGUMENTS

*bus*

the bus (must use hcd framework)

*port\_num*

1-based number of port; usually bus-\>otg\_port

## CONTEXT

**in\_interrupt**

## DESCRIPTION

Starts enumeration, with an immediate reset followed later by hub\_wq identifying and possibly configuring the device. This is needed by OTG controller drivers, where it helps meet HNP protocol timing requirements for starting a port reset.

## RETURN

0 if successful.

## COPYRIGHT
