Libusb Port : Post Mid Term
The work on Libusb is, to a large extend, complete. I would like to invite the community to try it out, test it, and report bugs, if any.
It is most stable with the EHCI bus driver, followed by UHCI (which still has a bug I am unable to fix).
Steps to test :-
- Patch Haiku sources with the patch mentioned at .
- Update the HaikuPorts recipe to the latest commit of the libusb fork. 
- Use HaikuPorter to build and install the recipe.
The build works fine with both gcc2 and gcc4. Pulkomandy also confirmed build of AVRDude. Also added is a recipe for dfu-programmer which we can use to flash Arduino. (Use at your own risk :P)
The patch to the EHCI code is to enable handling of Short Packet Transfers which otherwise hung out indefinitely. I'm still unable to find what causes the same problem in UHCI. 
I have myself tested the port with a Flash Drive, a PS3 Controller and to dump the firmware of an Arduino Uno.
My recent work was to get XHCI working on Haiku.
(Patches  and , Ticket )
The issues addressed in these patches are :
- Add support for Hubs in XHCI::AllocateDevice()
- Prevent page fault in FinishTransfers(), for transfers submitted in UserLand
- Correction in BIOS - OS handoff code
- Fix SMI Code
- Fix Memory/Device Slot leaks
- Fix area allocation for TRBs
- Fix for Intel Lynx Point and Panther Point chipsets.
- Fix Max Packet Size Identification for Full Speed Devices
- Fix IRQ rate
- Fix Device speed Identification
- Update slot input context for LS/FS devices connected to a HS non-root hub
- Correction/Updating of bit offsets according to the latest specification
Still a lot of work remains in the driver before it can be fully functional. Keyboard and Trackpad do not work correctly (thanks Jessica for testing this out). Short Packet Transfers need to be fixed, and so does the part handling submission of transfers if the queue is full.
I would like to thank you all for giving me a chance to work on this, and everyone on the IRC channel and the mailing list for helping me out :)
- No, I'm not Haiku's lead developer
- Haiku monthly activity report - 12/2019
- Haiku almost-monthly activity report - October and November 2019
- Haiku monthly activity report - September 2019
- Node.js now available in Haiku
- Haiku monthly activity report - 08/2019
- GSOC 2019 Final Report
- Haiku Activity Report: Performance Edition
- new PVS studio scan
- Coding week 4,5,6