net: stmmac: allow a tc-taprio base-time of zero
[ Upstream commitf64ab8e4f3] Commitfe28c53ed7("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:b60189e039("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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
b30459c0ca
commit
ad3d219e84
@@ -679,8 +679,6 @@ static int tc_setup_taprio(struct stmmac_priv *priv,
|
|||||||
goto disable;
|
goto disable;
|
||||||
if (qopt->num_entries >= dep)
|
if (qopt->num_entries >= dep)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
if (!qopt->base_time)
|
|
||||||
return -ERANGE;
|
|
||||||
if (!qopt->cycle_time)
|
if (!qopt->cycle_time)
|
||||||
return -ERANGE;
|
return -ERANGE;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user