]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: allow a tc-taprio base-time of zero
authorVladimir Oltean <vladimir.oltean@nxp.com>
Mon, 8 Nov 2021 20:28:54 +0000 (22:28 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 10 Nov 2021 14:32:15 +0000 (14:32 +0000)
commite221c3ada691766de5dfb1a6f460c9a9b8db3d56
tree9bbf1fb26d9d64d14eabb76fcf5fce21a92b8efe
parente059a7b95ccda6a69d3724eaf5a4f429244bc491
net: stmmac: allow a tc-taprio base-time of zero

Commit 0b248d98e24f ("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: d5eb3c1d87e5 ("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>
drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c