arch: stm32: fix otghs logic to support interface requests

This commit is contained in:
Simon Piriou 2020-10-24 23:15:33 +02:00 committed by Alan Carvalho de Assis
parent 72b182d3d3
commit 3eb3b0da4d

View File

@ -2327,7 +2327,8 @@ static inline void stm32_ep0out_stdrequest(struct stm32_usbdev_s *priv,
{
usbtrace(TRACE_INTDECODE(STM32_TRACEINTID_GETSETDESC), 0);
if ((ctrlreq->type & USB_REQ_RECIPIENT_MASK) == USB_REQ_RECIPIENT_DEVICE)
if ((ctrlreq->type & USB_REQ_RECIPIENT_MASK) == USB_REQ_RECIPIENT_DEVICE ||
(ctrlreq->type & USB_REQ_RECIPIENT_MASK) == USB_REQ_RECIPIENT_INTERFACE)
{
stm32_req_dispatch(priv, &priv->ctrlreq);
}