Re: .clear_stall

Hans Petter Selasky <[email protected]>
Newsgroups gmane.os.freebsd.devel.arm
Message-ID <[email protected]>
On 4/13/22 08:58, Kamal R. Prasad wrote:
> hello,
> 
>   my xhci driver keeps getting calls from the kernel to the
> .clear_stall interface defined in
> http://fxr.watson.org/fxr/source/dev/usb/controller/xhci.c?im=10#L4365
> 
>   4365         .clear_stall = xhci_ep_clear_stall,
> 
> Can someone tell me why this interface gets called?
> 

Hi Kamal,

This interface gets called typically to reset USB endpoints:

a) before the first endpoint transfer.
b) after an endpoint failure.

This ensures the data toggle value gets synced and no data is lost.

Can you explain what problem you are seeing?

--HPS
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.