Skip to content
Jun 16, 2017


grainuum-phy: be more liberal in sending NAK packets
If we don't understand something, send a NAK.

This covers the scenario where we get half a packet, e.g. due to
being busy when the start of the packet came across.

As a result of this patch, I no longer see errors during enumeration.

Signed-off-by: Sean Cross <>
Jun 13, 2017


grainuum: add an 'elements' union for debugging
The 'elements' union can be used to more easily separate packets
when debugging.

Signed-off-by: Sean Cross <>
Jun 2, 2017


grainuum-state: add newline to end of file
Signed-off-by: Sean Cross <>
May 31, 2017


grainuum-phy-ll: correct cycle counts
In the course of debugging, it has become apparent that there were
many errors in various cycle counts.

Correct all known errors, including various permutations of
stuff/SE0/J/K states.

As a result of this change, we have been able to transfer about
100 MB of data without a USB Beagle indicating any errors.

Signed-off-by: Sean Cross <>
May 31, 2017


grainuum-phy-ll: correct unstuffing for data rx
On receipt, data was not being correctly unstuffed after the first
instance.  That is, after the second instance, an extra bit was
getting inserted.

Remove this extra bit to get unstuffing working properly.

Signed-off-by: Sean Cross <>
May 29, 2017


grainuum: swap D+/D- definitions
Swap the definitions of these two values.

Functionally it's the same, but it ends up being backwards from
what the implementation does.

Signed-off-by: Sean Cross <>
You can’t perform that action at this time.