Commit a1121d14 authored by Daniel Scally's avatar Daniel Scally Committed by Akash Kumar
Browse files

BACKPORT: usb: gadget: uvc: Rename uvc_control_ep



The f_uvc code defines an endpoint named "uvc_control_ep" but it
is configured with a non-zero endpoint address and has its
bmAttributes flagged as USB_ENDPOINT_XFER_INT - this cannot be the
VideoControl interface's control endpoint, as the default endpoint
0 is used for that purpose. This is instead the optional interrupt
endpoint that can be contained by a VideoControl interface. There
is also a Class-specific VC Interrupt Endpoint Descriptor and a
SuperSpeed companion descriptor that are also for the VC interface's
interrupt endpoint but are named as though they are for the control
endpoint.

Rename the variables to make that clear.

Signed-off-by: default avatarDaniel Scally <dan.scally@ideasonboard.com>
Link: https://lore.kernel.org/r/20230130105045.120886-2-dan.scally@ideasonboard.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>

Bug: 342069269
(cherry picked from commit 3078212c
https: //git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
master)
[Akash: Resolved minor conflict in drivers/usb/gadget/function/f_uvc.c ]

Signed-off-by: default avatarAkash Kumar <quic_akakum@quicinc.com>
Change-Id: I539bf706a7a77f0b0e30a8fe959e3abfa1bfd36e
parent 4b0be62c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment