bcwc_pcie: set channel lock based on channel type

This commit is contained in:
Sven Schnelle
2015-11-23 15:48:56 +01:00
parent 60d31c8571
commit 5f5b38e4cc

View File

@@ -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");