]> git.baikalelectronics.ru Git - kernel.git/commit
ravb: Remove checks for unsupported internal delay modes
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 11 Aug 2021 15:49:00 +0000 (17:49 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 13 Aug 2021 23:08:02 +0000 (16:08 -0700)
commit448b3008eb9be8a63a09b26b6069b1ee44fee265
tree0d5fdac45a01d4bea4a82123c31a56ea0beb36ae
parent8ec3156c48296944b8e3681bb817d8c7116a7ad9
ravb: Remove checks for unsupported internal delay modes

The EtherAVB instances on the R-Car E3/D3 and RZ/G2E SoCs do not support
TX clock internal delay modes, and the EtherAVB driver prints a warning
if an unsupported "rgmii-*id" PHY mode is specified, to catch buggy
DTBs.

Commit 9eb0cf83aa77376e ("ravb: Add support for explicit internal
clock delay configuration") deprecated deriving the internal delay mode
from the PHY mode, in favor of explicit configuration using the now
mandatory "rx-internal-delay-ps" and "tx-internal-delay-ps" properties,
thus delegating the warning to the legacy fallback code.

Since explicit configuration of a (valid) internal clock delay
configuration is enforced by validating device tree source files against
DT binding files, and all upstream DTS files have been converted as of
commit f3e6297c422d0d60 ("arm64: dts: renesas: rzg2: Convert EtherAVB to
explicit delay handling"), the checks in the legacy fallback code can be
removed.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Link: https://lore.kernel.org/r/2037542ac56e99413b9807e24049711553cc88a9.1628696778.git.geert+renesas@glider.be
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/renesas/ravb_main.c