]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Nov 2021 10:04:44 +0000 (11:04 +0100)
commitd2d62615396fa96fc8d520c8fe0ddd29f18b753b
treef1b0af69793f678390d9ed4b4d47b8770d989c83
parentf116f0dad316523d497d2d8217c2a00e6b2b6188
net: stmmac: allow a tc-taprio base-time of zero

[ Upstream commit f64ab8e4f368f48afb08ae91928e103d17b235e9 ]

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>
Reviewed-by: Kurt Kanzenbach <kurt@linutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c