Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[udev] Ignore stale events received while blocked in mode transition
Mode transition blocks udev event processing. If user disconnects and reconnects the cable multiple times during the blockade, usb-moded will act on stale events that might not reflect the actual state of the usb connection. Handle disconnects immediately, but delay acting on connects so that sequences of multiple disconnects and connects get compressed into single transition to undefined mode possibly followed by single transition to appropriated connected mode. Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
- Loading branch information
Showing
1 changed file
with
37 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters