diff options
author | Baruch Siach <baruch.siach@siklu.com> | 2022-02-28 13:10:03 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-03-03 07:33:37 +0100 |
commit | 002028857384242ebf1195c0b406e1570fd06457 (patch) | |
tree | c22b7c192c7e57bc910e3cca5c9e6c6e650b4773 /drivers/net/dsa | |
parent | net: dsa: mv88e6xxx: don't error out cmode set on missing lane (diff) | |
download | linux-002028857384242ebf1195c0b406e1570fd06457.tar.xz linux-002028857384242ebf1195c0b406e1570fd06457.zip |
net: dsa: mv88e6xxx: support RMII cmode
Add support for direct RMII MAC mode. This allows hardware with CPU port
connected in direct 100M fixed link to work properly.
Signed-off-by: Baruch Siach <baruch.siach@siklu.com>
Link: https://lore.kernel.org/r/a962d1ccbeec42daa10dd8aff0e66e31f0faf1eb.1646050203.git.baruch@tkos.co.il
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/dsa')
-rw-r--r-- | drivers/net/dsa/mv88e6xxx/port.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/dsa/mv88e6xxx/port.c b/drivers/net/dsa/mv88e6xxx/port.c index a58997f1fd69..795b3128768f 100644 --- a/drivers/net/dsa/mv88e6xxx/port.c +++ b/drivers/net/dsa/mv88e6xxx/port.c @@ -550,6 +550,9 @@ static int mv88e6xxx_port_set_cmode(struct mv88e6xxx_chip *chip, int port, mode = PHY_INTERFACE_MODE_1000BASEX; switch (mode) { + case PHY_INTERFACE_MODE_RMII: + cmode = MV88E6XXX_PORT_STS_CMODE_RMII; + break; case PHY_INTERFACE_MODE_1000BASEX: cmode = MV88E6XXX_PORT_STS_CMODE_1000BASEX; break; |