zephyr/subsys/usb
Emil Obalski 3ed9dc3a24 usb: Fix for set/reset endpoints
setting/resetting endpoints is required when switching to alternate
interfaces. This is a common operation for usb audio class.

When audio device is enumerated host invokes set_interface request
to alternate with 0 endpoints associated. That operation lead to
disable never enabled endpoints. With previous solution error message
will appear.

This commit limits error messages to be present only if endpoint
was configured/enabled before and there was a problem when trying
to configure/enable it for the first time.

* Kinetis driver was updated with return error value when ep was
already configured/enabled.

* nxp driver updated with return error value when ep was already
enabled

* sam0 driver updated with return codes instead of magic numbers.

This is fix patch to  #21741

Signed-off-by: Emil Obalski <emil.obalski@nordicsemi.no>
2020-02-12 14:40:40 +02:00
..
class kconfig: Replace some single-symbol 'if's with 'depends on' 2020-02-08 08:32:42 -05:00
bos.c usb: Remove extra logs 2019-10-01 09:16:42 -04:00
CMakeLists.txt usb: move USB transfer functions to appropriate file 2020-02-05 11:28:12 +01:00
Kconfig usb: convert VBUS control to new GPIO API 2020-02-05 12:00:36 +01:00
os_desc.c usb: Cleanup for multiplied defines 2019-12-09 12:48:13 -05:00
os_desc.h usb: osdesc: Use definition for string descriptor index 2018-07-12 23:10:22 -04:00
usb_descriptor.c usb: Fix usb tests reporting error 2020-01-07 21:05:44 +01:00
usb_descriptor.h usb: Fix automatic assignment endpoints 2019-05-06 11:14:24 +02:00
usb_device.c usb: Fix for set/reset endpoints 2020-02-12 14:40:40 +02:00
usb_transfer.c usb: rework USB transfer logging 2020-02-05 11:28:12 +01:00
usb_transfer.h usb: move USB transfer functions to appropriate file 2020-02-05 11:28:12 +01:00