Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Apr 2022 11:17:40 +0200
From:      Hans Petter Selasky <hps@selasky.org>
To:        kamalpr@gmail.com, freebsd-arm <freebsd-arm@freebsd.org>
Subject:   Re: .clear_stall
Message-ID:  <50f16744-2eeb-6dff-c31a-7a0a6dd0bf7a@selasky.org>
In-Reply-To: <CAK=yUGKrvVxf8FJ=UbQA608UGgPwjNGB47=vGbVoE5hdf1TJYw@mail.gmail.com>
References:  <CAK=yUGKrvVxf8FJ=UbQA608UGgPwjNGB47=vGbVoE5hdf1TJYw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?50f16744-2eeb-6dff-c31a-7a0a6dd0bf7a>