]> 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)
commitefd1412b631f2f4cc7641984b2cdad126e926e85
tree0d5fdac45a01d4bea4a82123c31a56ea0beb36ae
parent6579ba26945eff3ec4b5c8f0640b759f98437940
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 fb23b39923230c5f ("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 cd66b48bc5555e4a ("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