All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net] net: stmmac: allow a tc-taprio base-time of zero
@ 2021-11-08 20:28 ` Vladimir Oltean
  0 siblings, 0 replies; 22+ messages in thread
From: Vladimir Oltean @ 2021-11-08 20:28 UTC (permalink / raw)
  To: netdev
  Cc: Giuseppe Cavallaro, Alexandre Torgue, Jose Abreu,
	David S. Miller, Jakub Kicinski, Maxime Coquelin, linux-stm32,
	linux-arm-kernel, linux-kernel, Xiaoliang Yang, Yannick Vignon

Commit fe28c53ed71d ("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: b60189e0392f ("net: stmmac: Integrate EST with TAPRIO scheduler API")
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
---
 drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c
index 8160087ee92f..1c4ea0b1b845 100644
--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c
@@ -786,8 +786,6 @@ static int tc_setup_taprio(struct stmmac_priv *priv,
 		goto disable;
 	if (qopt->num_entries >= dep)
 		return -EINVAL;
-	if (!qopt->base_time)
-		return -ERANGE;
 	if (!qopt->cycle_time)
 		return -ERANGE;
 
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2021-11-16 12:21 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-08 20:28 [PATCH net] net: stmmac: allow a tc-taprio base-time of zero Vladimir Oltean
2021-11-08 20:28 ` Vladimir Oltean
2021-11-09  8:20 ` Kurt Kanzenbach
2021-11-09  8:20   ` Kurt Kanzenbach
2021-11-09 10:35   ` Vladimir Oltean
2021-11-09 10:35     ` Vladimir Oltean
2021-11-09 14:19     ` [Linux-stm32] " Ahmad Fatoum
2021-11-09 14:19       ` Ahmad Fatoum
2021-11-09 14:22       ` Vladimir Oltean
2021-11-09 14:22         ` Vladimir Oltean
2021-11-10 12:38         ` Vladimir Oltean
2021-11-10 12:38           ` Vladimir Oltean
2021-11-11 10:48           ` Holger Assmann
2021-11-11 10:48             ` Holger Assmann
2021-11-09 14:47     ` Kurt Kanzenbach
2021-11-09 14:47       ` Kurt Kanzenbach
2021-11-09 15:08       ` Yannick Vignon
2021-11-09 15:08         ` Yannick Vignon
2021-11-16 12:18         ` Kurt Kanzenbach
2021-11-16 12:18           ` Kurt Kanzenbach
2021-11-10 14:40 ` patchwork-bot+netdevbpf
2021-11-10 14:40   ` patchwork-bot+netdevbpf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.