---
name: "usb_ep_clear_halt"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/usb_ep_clear_halt"
---

# usb\_ep\_clear\_halt(9)

clears endpoint halt, and resets toggle

## NAME

usb\_ep\_clear\_halt - clears endpoint halt, and resets toggle

## SYNOPSIS

**int usb\_ep\_clear\_halt(struct usb\_ep \*** *ep***);**

## ARGUMENTS

*ep*

the bulk or interrupt endpoint being reset

## DESCRIPTION

Use this when responding to the standard usb “set interface” request, for endpoints that aren't reconfigured, after clearing any other state in the endpoint's i/o queue.

Returns zero, or a negative error code. On success, this call clears the underlying hardware state reflecting endpoint halt and data toggle. Note that some hardware can't support this request (like pxa2xx\_udc), and accordingly can't correctly implement interface altsettings.

## AUTHOR

**David Brownell** \<dbrownell@users.sourceforge.net\>

Author.

## COPYRIGHT
