__func__, seqno, dev->cmds[seqno].signalled);
/* Wait for signalled to be flagged or timeout */
- wait_event_timeout(*q, dev->cmds[seqno].signalled, HZ);
- r = time_before(jiffies, stamp + HZ);
+ wait_event_timeout(*q, dev->cmds[seqno].signalled, (HZ * waitsecs));
+ r = time_before(jiffies, stamp + (HZ * waitsecs));
if (r)
ret = SAA_OK;
else
module_param(debug, int, 0644);
MODULE_PARM_DESC(debug, "enable debug messages");
+unsigned int waitsecs = 1;
+module_param(waitsecs, int, 0644);
+MODULE_PARM_DESC(debug, "timeout on firmware messages");
+
static unsigned int card[] = {[0 ... (SAA7164_MAXBOARDS - 1)] = UNSET };
module_param_array(card, int, NULL, 0444);
MODULE_PARM_DESC(card, "card type");
printk(KERN_ERR "%s() Unsupported board detected, "
"registering without firmware\n", __func__);
+ printk(KERN_INFO "%s() waitsecs = %d\n", __func__, waitsecs);
fail_fw:
return 0;