nozomi: fix detection (lp:425312)

Nozomi devices aren't quite ready when the ports show up, so
we have to keep trying to open the port for a few seconds and
eventually it'll succeed.  Should really be fixed in the driver
(ie, don't create the ttys until they can actually be used) but
whatever.
This commit is contained in:
Dan Williams
2009-11-26 13:54:47 -08:00
parent 15595b33dc
commit aea0be5b9a
4 changed files with 68 additions and 12 deletions

View File

@@ -39,6 +39,7 @@ mm_serial_error_get_type (void)
ENUM_ENTRY (MM_SERIAL_OPEN_FAILED, "SerialOpenFailed"),
ENUM_ENTRY (MM_SERIAL_SEND_FAILED, "SerialSendfailed"),
ENUM_ENTRY (MM_SERIAL_RESPONSE_TIMEOUT, "SerialResponseTimeout"),
ENUM_ENTRY (MM_SERIAL_OPEN_FAILED_NO_DEVICE, "SerialOpenFailedNoDevice"),
{ 0, 0, 0 }
};