/* This is called in the context of udc_ep_dequeue() and must remove all requests from an endpoint queue Successful removal should be reported to the higher level with ECONNABORTED as the request result. It is up to the request owner to clean up or reuse the buffer.  */
static int udc_skeleton_ep_dequeue(const struct device *dev, struct udc_ep_config *const cfg)
/* This is called in the context of udc_ep_dequeue() and must remove all requests from an endpoint queue Successful removal should be reported to the higher level with ECONNABORTED as the request result. It is up to the request owner to clean up or reuse the buffer.  */
static int udc_skeleton_ep_dequeue(const struct device *dev, struct udc_ep_config *const cfg)
{
	unsigned int lock_key;
	struct net_buf *buf;
	lock_key = irq_lock();
	buf = udc_buf_get_all(dev, cfg->addr);
	if (buf) {
		udc_submit_ep_event(dev, buf, -ECONNABORTED);
	}
	irq_unlock(lock_key);
	return 0;
}