Date: Tue, 19 Apr 2022 13:32:58 +0200 From: Hans Petter Selasky <hps@selasky.org> To: Kamal Prasad <krprasad@juniper.net>, Mahesh Vardhamanaiah <maheshmv@juniper.net>, "freebsd-usb@freebsd.org" <freebsd-usb@freebsd.org> Cc: Steve Kiernan <stevek@juniper.net>, Justin Hibbits <jhibbits@juniper.net>, Kumara N Babu <bkumara@juniper.net>, Kristof Provost <kp@FreeBSD.org>, "Bjoern A. Zeeb" <bz@FreeBSD.org> Subject: Re: xhci data toggle out of sync Message-ID: <20e0397e-927e-c258-c26f-228cab9ece22@selasky.org> In-Reply-To: <33D78B28-EEFC-4A24-8E27-329CCA3782EF@juniper.net> References: <PH0PR05MB778212B54B636F87C246F62AD5F39@PH0PR05MB7782.namprd05.prod.outlook.com> <61bc4594-f2d3-17c4-42b5-0297ffd78fa3@selasky.org> <PH0PR05MB7782707B34F020611B7FA6C3D5F39@PH0PR05MB7782.namprd05.prod.outlook.com> <8f51424d-7d1a-9f0a-a0ba-27b02cab0942@selasky.org> <PH0PR05MB7782C512E3F29F34A546300BD5F29@PH0PR05MB7782.namprd05.prod.outlook.com> <459317b1-a87d-5f1d-3a52-83ceee48056d@selasky.org> <PH0PR05MB77828A618B7BAD70DB98C534D5F29@PH0PR05MB7782.namprd05.prod.outlook.com> <b6d72337-720c-2907-a3df-70fcb0c192d8@selasky.org> <PH0PR05MB7782636A101DD636745EC02ED5F29@PH0PR05MB7782.namprd05.prod.outlook.com> <6ace38e0-160f-e4ab-12d4-3af5c0113d1e@selasky.org> <33D78B28-EEFC-4A24-8E27-329CCA3782EF@juniper.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On 4/19/22 12:59, Kamal Prasad wrote: > Hi Peter, > >>> Which is not a valid return code from xhci_do_command(). Can you check > where this value comes from? > > This is coming from this location in xhci_configure_endpoint() which in turn is called by xhci_configure_endpoint_by_xfer():- > --- > epno = XHCI_EPNO2EPID(epno); > > if (epno == 0) > return (USB_ERR_NO_PIPE); /* invalid */ > --- Hi Kamal, I'm asking about the value after "err" in these prints: > > xhci0: MMV Could not stop endpoint 3 err 12 > > xhci0: MMV Could not reset endpoint 3 err 12 3875 3876 err = xhci_cmd_stop_ep(sc, 0, epno, index); 3877 3878 if (err != 0) 3879 DPRINTF("Could not stop endpoint %u\n", epno); 3880 3881 err = xhci_cmd_reset_ep(sc, 0, epno, index); 3882 3883 if (err != 0) 3884 DPRINTF("Could not reset endpoint %u\n", epno); 3885 --HPS
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20e0397e-927e-c258-c26f-228cab9ece22>