提交 c104891c 编写于 作者: J Jose Abreu 提交者: David S. Miller

net: stmmac: Do not return error code in TC Initialization

As we can still use the remaining TC callbacks, e.g. CBS. We should not
fail in the initialization only because RX Parser is not available.
Signed-off-by: NJose Abreu <joabreu@synopsys.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 63384883
......@@ -243,8 +243,9 @@ static int tc_init(struct stmmac_priv *priv)
struct dma_features *dma_cap = &priv->dma_cap;
unsigned int count;
/* Fail silently as we can still use remaining features, e.g. CBS */
if (!dma_cap->frpsel)
return -EINVAL;
return 0;
switch (dma_cap->frpbs) {
case 0x0:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册