Skip to content

Commit f64ab8e

Browse files
vladimirolteandavem330
authored andcommitted
net: stmmac: allow a tc-taprio base-time of zero
Commit fe28c53 ("net: stmmac: fix taprio configuration when base_time is in the past") allowed some base time values in the past, but apparently not all, the base-time value of 0 (Jan 1st 1970) is still explicitly denied by the driver. Remove the bogus check. Fixes: b60189e ("net: stmmac: Integrate EST with TAPRIO scheduler API") Signed-off-by: Vladimir Oltean <[email protected]> Reviewed-by: Kurt Kanzenbach <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent e7e4785 commit f64ab8e

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -786,8 +786,6 @@ static int tc_setup_taprio(struct stmmac_priv *priv,
786786
goto disable;
787787
if (qopt->num_entries >= dep)
788788
return -EINVAL;
789-
if (!qopt->base_time)
790-
return -ERANGE;
791789
if (!qopt->cycle_time)
792790
return -ERANGE;
793791

0 commit comments

Comments
 (0)