drivers: usb_dc_nrfx: Always allow endpoint disable
There is no point in allowing endpoint disable only when device is attached and ready. Remove the pointless check as it is actually harmful and prevents endpoints disable on USB stack disable. Signed-off-by: Tomasz Moń <tomasz.mon@nordicsemi.no>
This commit is contained in:
parent
e458f5aae6
commit
460ca86527
1 changed files with 0 additions and 4 deletions
|
@ -1578,10 +1578,6 @@ int usb_dc_ep_disable(const uint8_t ep)
|
|||
{
|
||||
struct nrf_usbd_ep_ctx *ep_ctx;
|
||||
|
||||
if (!dev_attached() || !dev_ready()) {
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
ep_ctx = endpoint_ctx(ep);
|
||||
if (!ep_ctx) {
|
||||
return -EINVAL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue