[PATCH] Zero packet length detection for RNDIS fix. Migrated from 2.6.24 series kernel

Brian Code Brian.Code at koolu.com
Mon Mar 16 23:28:45 CET 2009

This patch fixes the issues of RNDIS on the Openmoko Freerunner (and
subsequently Windows networking with the Freerunner). It arises from the
case where a stall is being issued by the upper level RNDIS driver to
the s3c2410_udc.c in the 2.6.28 series driver and it not being handled
correctly. This patch changes the RNDIS driver to send zero-length
packets instead of a stall, a condition that allowed the udc driver to
function correctly in 2.6.24 series kernels.

Further investigation into the udc driver is recommended. I am currently
looking into it to be able to use the Android ADB gadget driver, which
currently has stability issues using the underlying udc on both Linux
and Windows (although, it's possible that the Android ADB gadget has

Traces and logs of the USB traffic are available upon request. Thanks to
Aric at SDG Systems for all of his work on this matter.

Brian Code
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rndis.patch
Type: text/x-patch
Size: 0 bytes
Desc: not available
Url : http://lists.openmoko.org/pipermail/openmoko-kernel/attachments/20090316/aad24e10/attachment.bin 

More information about the openmoko-kernel mailing list