From 67f8c951805b4b7c8da7b63bf5d736ea2920f3d2 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Fri, 20 Feb 2009 13:04:57 -0500 Subject: [PATCH] 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. --- callouts/77-nm-probe-modem-capabilities.rules | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/callouts/77-nm-probe-modem-capabilities.rules b/callouts/77-nm-probe-modem-capabilities.rules index 1e6493f4ea..5d6f4cd492 100644 --- a/callouts/77-nm-probe-modem-capabilities.rules +++ b/callouts/77-nm-probe-modem-capabilities.rules @@ -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"