Skip to content

Commit ad3d219

Browse files
vladimirolteangregkh
authored andcommitted
net: stmmac: allow a tc-taprio base-time of zero
[ Upstream commit f64ab8e ] 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 <vladimir.oltean@nxp.com> Reviewed-by: Kurt Kanzenbach <kurt@linutronix.de> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent b30459c commit ad3d219

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -679,8 +679,6 @@ static int tc_setup_taprio(struct stmmac_priv *priv,
679679
goto disable;
680680
if (qopt->num_entries >= dep)
681681
return -EINVAL;
682-
if (!qopt->base_time)
683-
return -ERANGE;
684682
if (!qopt->cycle_time)
685683
return -ERANGE;
686684

0 commit comments

Comments
 (0)