From 5f5b38e4cce05ffd80fce20e350603f617911da8 Mon Sep 17 00:00:00 2001 From: Sven Schnelle Date: Mon, 23 Nov 2015 15:48:56 +0100 Subject: [PATCH] bcwc_pcie: set channel lock based on channel type --- bcwc_isp.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bcwc_isp.c b/bcwc_isp.c index 099ef3d..a24f39b 100644 --- a/bcwc_isp.c +++ b/bcwc_isp.c @@ -236,6 +236,11 @@ static int isp_fill_channel_info(struct bcwc_private *priv, int offset, int num_ chan->source = info->source; chan->size = info->size; chan->offset = info->offset; + if (chan->type == FW_CHAN_TYPE_OUT) + chan->rx_lock = 1; + if (chan->type == FW_CHAN_TYPE_IN) + chan->tx_lock = 1; + spin_lock_init(&chan->lock); } priv->channel_terminal = isp_get_chan_index(priv, "TERMINAL");