facetimehd: add channel waitqueue

add a per channel waitqueue to be able to have more than one ringbuffer
entry in flight.

Signed-off-by: Sven Schnelle <svens@stackframe.org>
This commit is contained in:
Sven Schnelle
2015-11-28 22:59:44 +01:00
parent 3574901c31
commit ca8c5584e0
6 changed files with 35 additions and 63 deletions

View File

@@ -56,11 +56,10 @@ struct fw_channel {
u32 size;
u32 source;
u32 type;
int tx_lock;
int rx_lock;
struct fthd_ringbuf ringbuf;
spinlock_t lock;
/* waitqueue for signaling completion */
wait_queue_head_t wq;
char *name;
};
@@ -75,9 +74,6 @@ struct fthd_private {
/* lock for synchronizing with irq/workqueue */
spinlock_t io_lock;
/* waitqueue for signaling command completion */
wait_queue_head_t cmd_wq;
/* Mapped PCI resources */
void __iomem *s2_io;
u32 s2_io_len;