Re: [PATCH] cdc-wdm: fix "out-of-sync" due to missing notifications

Bjørn Mork
2016-05-13T16:59:31Z

Bjørn Mork <bjorn@mork.no> writes:

> The driver enforces a strict one-to-one relationship between the
> received RESPONSE_AVAILABLE notifications and messages read from
> the device. At the same time, it will cancel the interrupt URB
> when there is no client holding the character device open.

Never mind. Forget it.

This patch breaks other devices again. The immediate and unconditional
reading make them barf. I guess it can be worked around by delaying the
flushing until at least one notification is received, but I obviously
have to test this theory thoroughly on all devices I have.

Bjørn