Hello, this is the third version of changes for the Topaz/Peridot family of switches. The patches apply on net-next. Changes since v2: - per Vivien's request I merged the three different patches operating on code for hidden registers into one patch (second in this series) - also per Vivien's request I changed the serdes_get_lane method: its return value is now used only if error's occur, as the rest of this drivers functions do. Lane number is put into a place pointed to by the s8 *lane argument. The error semantics also changed: if there is no lane on a port, the function should still return 0 and should put -1 into *lane. Negative error value should be returned only if a real error occurs, for example when a MDIO read operation failed. - also per Vivien's request the mv88e6xxx_serdes_get_lane function was put into serdes.h as static inline, since it is just a wrapper - the patch that simplified SERDES code for Topaz and Peridot families was merged into one patch
Marek Marek Behún (6): net: dsa: mv88e6xxx: support 2500base-x in SGMII IRQ handler net: dsa: mv88e6xxx: update code operating on hidden registers net: dsa: mv88e6xxx: create serdes_get_lane chip operation net: dsa: mv88e6xxx: simplify SERDES code for Topaz and Peridot net: dsa: mv88e6xxx: rename port cmode macro net: dsa: mv88e6xxx: fully support SERDES on Topaz family drivers/net/dsa/mv88e6xxx/Makefile | 1 + drivers/net/dsa/mv88e6xxx/chip.c | 88 +++----- drivers/net/dsa/mv88e6xxx/chip.h | 3 + drivers/net/dsa/mv88e6xxx/port.c | 98 ++++++--- drivers/net/dsa/mv88e6xxx/port.h | 30 ++- drivers/net/dsa/mv88e6xxx/port_hidden.c | 70 ++++++ drivers/net/dsa/mv88e6xxx/serdes.c | 275 +++++++++++------------- drivers/net/dsa/mv88e6xxx/serdes.h | 27 ++- 8 files changed, 333 insertions(+), 259 deletions(-) create mode 100644 drivers/net/dsa/mv88e6xxx/port_hidden.c -- 2.21.0