*/
#include <linux/firmware.h>
+#include <linux/slab.h>
#include "saa7164.h"
{
u32 timeout = SAA_DEVICE_TIMEOUT;
while ((saa7164_readl(reg) & 0x01) == 0) {
- timeout -= 5;
+ timeout -= 10;
if (timeout == 0) {
printk(KERN_ERR "%s() timeout (no d/l ack)\n",
__func__);
return -EBUSY;
}
- /* TODO: Review this for efficiency, f/w load is slow */
- msleep(1);
+ msleep(100);
}
return 0;
{
u32 timeout = SAA_DEVICE_TIMEOUT;
while (saa7164_readl(reg) & 0x01) {
- timeout -= 5;
+ timeout -= 10;
if (timeout == 0) {
printk(KERN_ERR "%s() timeout (no d/l clr)\n",
__func__);
return -EBUSY;
}
- /* TODO: Review this for efficiency, f/w load is slow */
- msleep(1);
+ msleep(100);
}
return 0;