On 2020/05/23 23:23, Stuart Henderson wrote:
> On 2020/05/23 13:52, Armands Stiegra wrote:
> > On Saturday, May 23, 2020 12:36 PM, Lucas Raab <[email protected]>
> > wrote:
> > > $ pip install git+https://github.com/Yubico/python-fido2.git
>
> Interesting, worr had a diff committed there adding OpenBSD support.
> Even with hangs that seems somewhat useful so I've updated the port in
> -current to pull that in. The hangs seem pretty consistent: I am able
> to get it to do one operation, then it hangs and I need to unplug/replug.
...and that is fixed with this diff from patrick@:
Index: uhidev.c
===================================================================
RCS file: /cvs/src/sys/dev/usb/uhidev.c,v
retrieving revision 1.79
diff -u -p -r1.79 uhidev.c
--- uhidev.c 22 Feb 2020 14:01:34 -0000 1.79
+++ uhidev.c 24 May 2020 15:16:00 -0000
@@ -521,6 +521,7 @@ uhidev_open(struct uhidev *scd)
error = EIO;
goto out1;
}
+ usbd_clear_endpoint_stall(sc->sc_ipipe);
DPRINTF(("uhidev_open: sc->sc_ipipe=%p\n", sc->sc_ipipe));
@@ -547,6 +548,8 @@ uhidev_open(struct uhidev *scd)
error = EIO;
goto out2;
}
+ usbd_clear_endpoint_stall(sc->sc_opipe);
+
DPRINTF(("uhidev_open: sc->sc_opipe=%p\n", sc->sc_opipe));
sc->sc_oxfer = usbd_alloc_xfer(sc->sc_udev);