NetBSD/src eRyn9jnsys/dev/usb usbdi.c usb_quirks.c

   Workaround NBP PN533 USB toggle bit bugs

   The PN533 is known to mishandle the USB toggle bit, causing replies to
   be filtered out by the host controller. As a result, the kernel sees
   a timed out operation.

   Vendor errata suggests that userland applications should detect the
   situation on read timeout, and write a dumy frame to resync the toggle bit.
   NFC Tools's libnfc does just that, but in order to succeed, the dummy
   frame write must not be reported as timed out.

   We therefore introduce a new USB quirk for devices known to miss output
   acks. When that occur, we pretend that the operation succeeded, leaving
   userland the duty to check that everything went okay.

   This workaround lets libnfc recover from interrupted communications
   without the need te reboot the system.
VersionDeltaFile
1.179+24-5sys/dev/usb/usbdi.c
1.90+17-6sys/dev/usb/usb_quirks.c
1.29+2-1sys/dev/usb/usb_quirks.h
+43-123 files

UnifiedSplitRaw