diff --git a/drivers/usb/device/usb_dc_nrfx.c b/drivers/usb/device/usb_dc_nrfx.c index 76c2764750..a8032baf1f 100644 --- a/drivers/usb/device/usb_dc_nrfx.c +++ b/drivers/usb/device/usb_dc_nrfx.c @@ -1397,6 +1397,12 @@ int usb_dc_ep_check_cap(const struct usb_dc_ep_cfg_data *const ep_cfg) return -1; } + if ((ep_cfg->ep_type != USB_DC_EP_ISOCHRONOUS) && + (NRF_USBD_EPISO_CHECK(ep_cfg->ep_addr))) { + LOG_WRN("iso endpoint can only be iso"); + return -1; + } + return 0; }