modem: delay probe of cdc-acm devices by 2s as well

Some cards are just going to need delayed probing if they take
a bit respond to AT commands after being plugged in.  We can
optimize further by doing an initial check, waiting a small time
for the response, then checking again at 1s, waiting a small time,
then checking at 2 seconds and waiting for the full timeout for
those devices where --delay is given.
This commit is contained in:
Dan Williams 2009-02-20 13:04:57 -05:00
parent a2b55d4370
commit 67f8c95180

View file

@ -4,8 +4,8 @@ ACTION!="add|change", GOTO="nm_modem_probe_end"
SUBSYSTEM!="tty", GOTO="nm_modem_probe_end"
KERNEL!="tty*", GOTO="nm_modem_probe_end"
DRIVERS=="option|sierra|cdc_acm|hso", IMPORT{program}="nm-modem-probe --export $tempnode"
DRIVERS=="serial_cs", IMPORT{program}="nm-modem-probe --delay 2000 --export $tempnode"
DRIVERS=="option|sierra|hso", IMPORT{program}="nm-modem-probe --export $tempnode"
DRIVERS=="serial_cs|cdc_acm", IMPORT{program}="nm-modem-probe --delay 2000 --export $tempnode"
LABEL="nm_modem_probe_end"