usb_reset_composite_device(9)

usb_reset_composite_device9

Warn interface drivers and perform a usb port reset

Usage

int usb_reset_composite_device(struct usb_device * udev, struct usb_interface * iface);

Arguments

udev

device to reset (not in SUSPENDED or NOTATTACHED state)

iface

interface bound to the driver making the request (optional)

Overview

Warns all drivers bound to registered interfaces (using their pre_reset method), performs the port reset, and then lets the drivers know that the reset is over (using their post_reset method).

Return value is the same as for usb_reset_device.

The caller must own the device lock. For example, it´s safe to use this from a driver probe routine after downloading new firmware. For calls that might not occur during probe, drivers should lock the device using usb_lock_device_for_reset.

Releases

2 releases since Debian 4.0 (Etch); the text changed 1 time.

  1. 4.0
  2. 5.0

From linux-manual-2.6.26 2.6.26-29 in Debian 5.0 (Lenny). Parsed by carta from the page's man source.