All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] net: dsa: allow XAUI phy interface mode
@ 2017-12-08 16:04 Russell King
  2017-12-08 16:26 ` Andrew Lunn
  2017-12-11 18:54 ` David Miller
  0 siblings, 2 replies; 7+ messages in thread
From: Russell King @ 2017-12-08 16:04 UTC (permalink / raw)
  To: Andrew Lunn, Vivien Didelot; +Cc: Florian Fainelli, netdev

XGMII is a 32-bit bus plus two clock signals per direction.  XAUI is
four serial lanes per direction.  The 88e6190 supports XAUI but not
XGMII as it doesn't have enough pins.  The same is true of 88e6176.

Match on PHY_INTERFACE_MODE_XAUI for the XAUI port type, but keep
accepting XGMII for backwards compatibility.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
---
 drivers/net/dsa/mv88e6xxx/port.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/dsa/mv88e6xxx/port.c b/drivers/net/dsa/mv88e6xxx/port.c
index a7801f6668a5..6315774d72b3 100644
--- a/drivers/net/dsa/mv88e6xxx/port.c
+++ b/drivers/net/dsa/mv88e6xxx/port.c
@@ -338,6 +338,7 @@ int mv88e6390x_port_set_cmode(struct mv88e6xxx_chip *chip, int port,
 		cmode = MV88E6XXX_PORT_STS_CMODE_2500BASEX;
 		break;
 	case PHY_INTERFACE_MODE_XGMII:
+	case PHY_INTERFACE_MODE_XAUI:
 		cmode = MV88E6XXX_PORT_STS_CMODE_XAUI;
 		break;
 	case PHY_INTERFACE_MODE_RXAUI:
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-12-12  8:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-08 16:04 [PATCH] net: dsa: allow XAUI phy interface mode Russell King
2017-12-08 16:26 ` Andrew Lunn
2017-12-08 16:42   ` Russell King - ARM Linux
2017-12-09 19:08     ` Andrew Lunn
2017-12-11 18:54 ` David Miller
2017-12-11 19:02   ` Russell King - ARM Linux
2017-12-12  8:35     ` Andrew Lunn

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.