net: dsa: mv88e6xxx: simplify SERDES code for Topaz and Peridot
By adding an additional serdes_get_lane implementation (for Topaz), we can merge the implementations of other SERDES functions (powering and IRQs). We can skip checking port numbers, since the serdes_get_lane() methods inform if there is no lane on a port or if the lane cannot be used for given cmode. Signed-off-by:Marek Behún <marek.behun@nic.cz> Reviewed-by:
Andrew Lunn <andrew@lunn.ch> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- drivers/net/dsa/mv88e6xxx/chip.c 10 additions, 8 deletionsdrivers/net/dsa/mv88e6xxx/chip.c
- drivers/net/dsa/mv88e6xxx/port.c 2 additions, 2 deletionsdrivers/net/dsa/mv88e6xxx/port.c
- drivers/net/dsa/mv88e6xxx/serdes.c 28 additions, 77 deletionsdrivers/net/dsa/mv88e6xxx/serdes.c
- drivers/net/dsa/mv88e6xxx/serdes.h 2 additions, 5 deletionsdrivers/net/dsa/mv88e6xxx/serdes.h
Loading
Please register or sign in to comment