diff options
author | Keith Packard <keithp@keithp.com> | 2012-06-27 14:35:56 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-06-27 14:35:56 -0700 |
commit | e63d624f9670b5e2e002fcd5f24b80cf7f1effdf (patch) | |
tree | 2a8b65d119e340643e463ad9873186502646823d /src/drivers/ao_packet.c | |
parent | 08a4ed8fe794a2b2b52147bd5535fe0954822e95 (diff) |
altos: reorder stm USB state stores to avoid races
Must set ao_usb_in_pending before telling USB about new data or an
interrupt could arrive at the wrong time to clear it.
Same for ao_usb_in_flushed.
Without these changes, I've seen the USB bus lock up on occasion,
waiting for an IN packet to consume data, but with no IN data pending
in the hardware.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/drivers/ao_packet.c')
0 files changed, 0 insertions, 0 deletions