minor update on xilinx dma driver related stuffs

This commit is contained in:
Xianjun Jiao 2021-05-05 16:46:28 +02:00
parent 56fcab2044
commit c687b19dde
2 changed files with 7 additions and 7 deletions

View File

@ -1076,19 +1076,19 @@ static int openwifi_start(struct ieee80211_hw *dev)
}
priv->rx_chan = dma_request_slave_channel(&(priv->pdev->dev), "rx_dma_s2mm");
if (IS_ERR(priv->rx_chan)) {
if (IS_ERR(priv->rx_chan) || priv->rx_chan==NULL) {
ret = PTR_ERR(priv->rx_chan);
pr_err("%s openwifi_start: No Rx channel %d\n",sdr_compatible_str,ret);
pr_err("%s openwifi_start: No Rx channel ret %d priv->rx_chan 0x%p\n",sdr_compatible_str, ret, priv->rx_chan);
goto err_dma;
}
priv->tx_chan = dma_request_slave_channel(&(priv->pdev->dev), "tx_dma_mm2s");
if (IS_ERR(priv->tx_chan)) {
if (IS_ERR(priv->tx_chan) || priv->tx_chan==NULL) {
ret = PTR_ERR(priv->tx_chan);
pr_err("%s openwifi_start: No Tx channel %d\n",sdr_compatible_str,ret);
pr_err("%s openwifi_start: No Tx channel ret %d priv->tx_chan 0x%p\n",sdr_compatible_str, ret, priv->tx_chan);
goto err_dma;
}
printk("%s openwifi_start: DMA channel setup successfully.\n",sdr_compatible_str);
printk("%s openwifi_start: DMA channel setup successfully. priv->rx_chan 0x%p priv->tx_chan 0x%p\n",sdr_compatible_str, priv->rx_chan, priv->tx_chan);
ret = openwifi_init_rx_ring(priv);
if (ret) {

View File

@ -1,9 +1,9 @@
<!--
Author: Xianjun Jiao
SPDX-FileCopyrightText: 2019 UGent
SPDX-FileCopyrightText: 2021 UGent
SPDX-License-Identifier: AGPL-3.0-or-later
-->
We don't need modified xilinx_dma.c anymore!
We don't maintain our own (modified) xilinx dma driver anymore! The original xilinx dma driver in the Linux kernel tree can be used.
===============Following are obsolete content=================