diff options
author | Andrey Konovalov <andreyknvl@google.com> | 2020-05-07 19:06:57 +0200 |
---|---|---|
committer | Felipe Balbi <balbi@kernel.org> | 2020-05-14 11:30:18 +0200 |
commit | c61769bd4777a922952aed0d042a2572e5bd9b74 (patch) | |
tree | fe490ffcffdad1d0a4a0c264372cb4c1fd2e6f6c /Documentation/usb/raw-gadget.rst | |
parent | usb: raw-gadget: fix gadget endpoint selection (diff) | |
download | linux-c61769bd4777a922952aed0d042a2572e5bd9b74.tar.xz linux-c61769bd4777a922952aed0d042a2572e5bd9b74.zip |
usb: raw-gadget: support stalling/halting/wedging endpoints
Raw Gadget is currently unable to stall/halt/wedge gadget endpoints,
which is required for proper emulation of certain USB classes.
This patch adds a few more ioctls:
- USB_RAW_IOCTL_EP0_STALL allows to stall control endpoint #0 when
there's a pending setup request for it.
- USB_RAW_IOCTL_SET/CLEAR_HALT/WEDGE allow to set/clear halt/wedge status
on non-control non-isochronous endpoints.
Fixes: f2c2e717642c ("usb: gadget: add raw-gadget interface")
Signed-off-by: Andrey Konovalov <andreyknvl@google.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
Diffstat (limited to 'Documentation/usb/raw-gadget.rst')
-rw-r--r-- | Documentation/usb/raw-gadget.rst | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Documentation/usb/raw-gadget.rst b/Documentation/usb/raw-gadget.rst index 4af8b1f15574..3b3d78e850b2 100644 --- a/Documentation/usb/raw-gadget.rst +++ b/Documentation/usb/raw-gadget.rst @@ -52,8 +52,6 @@ The typical usage of Raw Gadget looks like: Potential future improvements ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- Implement ioctl's for setting/clearing halt status on endpoints. - - Reporting more events (suspend, resume, etc.) through USB_RAW_IOCTL_EVENT_FETCH. |