OSDN Git Service

input: Automatically attempt a reconnect when required.
authorAlex Deymo <deymo@chromium.org>
Tue, 16 Apr 2013 21:58:41 +0000 (14:58 -0700)
committerJohan Hedberg <johan.hedberg@intel.com>
Tue, 23 Apr 2013 07:39:29 +0000 (10:39 +0300)
commit5cbdfbd83d663eb98bf81302f9b98d1f7ef4e8f0
treecac431c77faa1ff80948df572392eac56d5d0a3f
parentae4186cea7a8292e9b4fdd9e67d5f86a11f965c7
input: Automatically attempt a reconnect when required.

The HID 1.1 spec requires a host to attempt a reconnection when a
HID device goes out of range and comes back. There is test (see
TP/HCE/BV-04-I [Host Initiated Re-connection]) to ensure that the
host initiates the connection when that happens.

This patch adds a reconnection timer for HID devices trying to
reconnect every 30s for a maximum of 3 minutes after the connection
to a HID device with a ReconnectMode of "host" or "any" is closed.
profiles/input/device.c