Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 219361
b: refs/heads/master
c: 4a52be0
h: refs/heads/master
i:
  219359: a2a660a
v: v3
  • Loading branch information
Steven Toth authored and Mauro Carvalho Chehab committed Oct 21, 2010
1 parent ac9ed4a commit 53f4e17
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 91d80189fab8c473a392d81b6834b8032191c990
refs/heads/master: 4a52be0faa014380b7bf15c5ca7e3dea7cb4ea52
19 changes: 17 additions & 2 deletions trunk/drivers/media/video/saa7164/saa7164-cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,10 @@ u32 saa7164_cmd_timeout_get(struct saa7164_dev *dev, u8 seqno)
* -bus/c running buffer. */
int saa7164_irq_dequeue(struct saa7164_dev *dev)
{
int ret = SAA_OK;
int ret = SAA_OK, i = 0;
u32 timeout;
wait_queue_head_t *q = 0;
u8 tmp[512];
dprintk(DBGLVL_CMD, "%s()\n", __func__);

/* While any outstand message on the bus exists... */
Expand All @@ -109,8 +110,22 @@ int saa7164_irq_dequeue(struct saa7164_dev *dev)
printk(KERN_ERR
"%s() found timed out command on the bus\n",
__func__);

/* Clean the bus */
ret = saa7164_bus_get(dev, &tRsp, &tmp, 0);
printk(KERN_ERR "%s() ret = %x\n", __func__, ret);
if (ret == SAA_ERR_EMPTY)
/* Someone else already fetched the response */
return SAA_OK;

if (ret != SAA_OK)
return ret;
}
} while (0);

/* It's unlikely to have more than 4 or 5 pending messages, ensure we exit
* at some point regardles.
*/
} while (i++ < 32);

return ret;
}
Expand Down

0 comments on commit 53f4e17

Please sign in to comment.