zephyr/drivers/usb
Purdea Andrei 158ee9139c drivers: usb_dc_rpi_pico: cleanup incorrect comment and condition
I believe this comment and condition may have found its way into the
rp2040 driver from other drivers where it makes more sense. For
example for the stm32 driver performing a read on the EP0_IN endpoint
turns it silently into a read on the EP0_OUT endpoint. As far as I can
tell, this really was only used to consume 0-length Status-Stages of
to_host control transfer in the other drivers.

Note that usb_dc_ep_start_read() is never called in an IN endpoint
in the rp2040 driver, and furthermore, even if it would have been
called like that, the current implementation would not do the silent
change into actually performing a read on the EP0_OUT endpoint instead,
so the condition and comment is just wrong.

Note that 0-length Status-Stage of to_host control transfers is
currently consumed in this driver by usb_dc_ep_read_continue().

Signed-off-by: Purdea Andrei <andrei@purdea.ro>
2023-02-11 08:23:03 +09:00
..
device drivers: usb_dc_rpi_pico: cleanup incorrect comment and condition 2023-02-11 08:23:03 +09:00
udc drivers: udc: add capability for MPS of control endpoint 2023-01-27 16:11:20 +01:00
uhc drivers: uhc: add driver for virtual USB host controller 2022-12-16 13:21:12 +01:00
uvb drivers: usb: add support for virtual USB bus 2022-12-16 13:21:12 +01:00
CMakeLists.txt drivers: usb: add support for virtual USB bus 2022-12-16 13:21:12 +01:00
Kconfig drivers: usb: add support for virtual USB bus 2022-12-16 13:21:12 +01:00