From: Jose Abreu Date: Wed, 4 Sep 2019 13:16:55 +0000 (+0200) Subject: net: stmmac: Do not return error code in TC Initialization X-Git-Tag: v5.4-rc1~131^2~77^2~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c104891c4b1f559d4e6a469a5d5f4c509a862676;p=platform%2Fkernel%2Flinux-rpi.git 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: Jose Abreu Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c index 6c305b6..8dbbbf1 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c @@ -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: