arch: stm32: fix otghs logic to support interface requests
This commit is contained in:
parent
72b182d3d3
commit
3eb3b0da4d
@ -2327,7 +2327,8 @@ static inline void stm32_ep0out_stdrequest(struct stm32_usbdev_s *priv,
|
|||||||
|
|
||||||
{
|
{
|
||||||
usbtrace(TRACE_INTDECODE(STM32_TRACEINTID_GETSETDESC), 0);
|
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);
|
stm32_req_dispatch(priv, &priv->ctrlreq);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user