[roll] Roll fuchsia [usb-peripheral] Cancel only allocated endpoints In CompleteFunctionsTeardown(), UsbDciCancelAll() previously swept across all 32 possible endpoint addresses (0x00-0x0F OUT and 0x80-0x8F IN) to ensure active hardware DMA requests were canceled. On controller drivers such as dwc3, calling CancelAll on an unallocated endpoint returns ZX_ERR_INVALID_ARGS because no user endpoint struct exists. Rather than suppressing ZX_ERR_INVALID_ARGS in UsbDciCancelAll(), query endpoint_map_ before clearing it and only cancel endpoints that were actually allocated to functions (EP0 is reset during StopController()). This eliminates the spurious teardown errors while keeping strict error logging intact in UsbDciCancelAll(). Additionally, in CommonControl(), validate that non-control endpoints are allocated in endpoint_map_ before executing SET_FEATURE, CLEAR_FEATURE, or GET_STATUS, preventing spurious errors if a host issues control requests for unallocated endpoints. In usb-peripheral-unittest: - Record cancelled endpoints in FakeDevice and provide test inspection. - Add ClearFunctionsCancelsOnlyAllocatedEndpoints verifying that ClearFunctions() cancels only allocated function endpoints. - Verify SET_FEATURE(ENDPOINT_HALT) rejects unallocated endpoints. Original-Original-Bug: 549790507 Test: fx test usb-peripheral-unittest TAG: agy CONV: 0fcfb34d-206d-411e-bb82-be62a6189f06 Original-Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1812630 Original-Original-Revision: d9c4518e03e27d3180df0c2d903bd85a26681f9a GitOrigin-RevId: 15b19de0d953b371dae8f0c0e00f8a2c76d36742 Change-Id: I5ee3dcd80f65812b1984b128124d5023e9b93fcf
This repository contains Fuchsia's Global Integration manifest files.
All changes should be made to the internal version of this repository. Our infrastructure automatically updates this version when the internal one changes.
Currently all changes must be made by a Google employee. Non-Google employees wishing to make a change can ask for assistance in one of the communication channels documented at get involved.
First install Jiri.
Next run:
$ jiri init $ jiri import minimal https://fuchsia.googlesource.com/integration $ jiri update
Third party projects should have their own subdirectory in ./third_party.