Hi All,

While working on uas (to test usb 3 bulk streams) I added a LOGICAL_UNIT_RESET
at uas probe time for testing purposes, this exercises the uas driver
task mgmt code, and sometimes fails because usb_wait_anchor_empty_timeout
(unexpectedly) returns before the last anchored urbs completion handler
has run.

This is fixed by the 2nd patch in this set, the 1st patch ensures that
all memory of the anchor gets properly zero-ed on init, fixing a problem which
I hit while testing the 2nd patch.

Note that these problems have been around since the original commit adding
usb_anchor-s, commit 51a2f077c4 . Besides the uas driver the zd1211rw driver
also is impacted by the too early return of usb_wait_anchor_empty_timeout, but
only on errors, so the problem likely never gets triggered there.

Regards,

Hans
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to