]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: mv88e6xxx: support RGMII cmode
authorMarcus Carlberg <marcus.carlberg@axis.com>
Mon, 22 Aug 2022 14:41:36 +0000 (16:41 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 26 Aug 2022 23:30:55 +0000 (16:30 -0700)
commitf2b494ef14e3a82f5057840ab477f5dfb7008b7a
treed67a3c927462fbe0f4e77c141e46b69e7a041ace
parente05c14e68c037ac12259eaa274159ddc83888e71
net: dsa: mv88e6xxx: support RGMII cmode

Since the probe defaults all interfaces to the highest speed possible
(10GBASE-X in mv88e6393x) before the phy mode configuration from the
devicetree is considered it is currently impossible to use port 0 in
RGMII mode.

This change will allow RGMII modes to be configurable for port 0
enabling port 0 to be configured as RGMII as well as serial depending
on configuration.

Signed-off-by: Marcus Carlberg <marcus.carlberg@axis.com>
Link: https://lore.kernel.org/r/20220822144136.16627-1-marcus.carlberg@axis.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/mv88e6xxx/chip.c
drivers/net/dsa/mv88e6xxx/port.c