Re: [PATCH] usb: dwc3: gadget: remove duplicated code from __dwc3_gadget_ep_set_halt

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 6/25/2012 7:41 PM, Felipe Balbi wrote:
whenever we want to stall ep0, we always call
dwc3_ep0_stall_and_restart() which makes sure

Probably this is not correct. A control ep can also be stalled by calling set_halt.

So we can have
dwc3_gadget_ep0_ops.set_halt as dwc3_ep0_stall_and_restart or some similar function.

to send ep0state properly rendering the code
in __dwc3_gadget_ep_set_halt() duplicated.

Reported-by: Pratyush Anand<pratyush.anand@xxxxxx>
Signed-off-by: Felipe Balbi<balbi@xxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux