mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 14:19:09 -04:00
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 <joabreu@synopsys.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
6338488356
commit
c104891c4b
1 changed files with 2 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue