mbox series

[net-next,0/5] net: phy: convert advertise and supported to linkmode

Message ID 1541889817-2295-1-git-send-email-andrew@lunn.ch
Headers show
Series net: phy: convert advertise and supported to linkmode | expand

Message

Andrew Lunn Nov. 10, 2018, 10:43 p.m. UTC
This is the last part in converting phylib to make use of a linux
bitmap, not a u32, to represent links modes. This will allow support
for PHYs > 1Gbps, which need to use link modes represented by a bit >
32.

A number of MAC and PHY drivers need changes to support this. However
the previous two patchesets reduced the number somewhat, the helpers
which were introduced have been modified instead of the actual
drivers.

The follow on patches then make use of the extra bits, adding support
for more link modes.

Given how invasive this change is, i expect the build is broken for
some architectures i did not test. I will fixup the breakage as fast
as i can.

Andrew Lunn (5):
  net: ethernet: Convert phydev advertize and supported from u32 to link
    mode
  net: phy: Convert u32 phydev->lp_advertising to linkmode
  net: phy: Fixup kerneldoc markup.
  net: phy: Add more link modes to the settings table
  net: phy: Add support for resolving 5G and 2.5G autoneg

 drivers/net/dsa/mt7530.c                      |   3 +-
 drivers/net/ethernet/aeroflex/greth.c         |   2 +-
 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c   |  41 ++--
 drivers/net/ethernet/apm/xgene-v2/mdio.c      |  22 +-
 drivers/net/ethernet/arc/emac_main.c          |   3 +-
 drivers/net/ethernet/broadcom/b44.c           |  12 +-
 drivers/net/ethernet/broadcom/genet/bcmmii.c  |   5 +-
 drivers/net/ethernet/broadcom/tg3.c           |  44 ++--
 .../net/ethernet/cavium/octeon/octeon_mgmt.c  |   7 +-
 .../net/ethernet/freescale/dpaa/dpaa_eth.c    |   5 +-
 drivers/net/ethernet/freescale/fman/mac.c     |   2 +-
 drivers/net/ethernet/freescale/gianfar.c      |  18 +-
 drivers/net/ethernet/freescale/ucc_geth.c     |   7 +-
 drivers/net/ethernet/hisilicon/hns/hns_enet.c |   6 +-
 .../hisilicon/hns3/hns3pf/hclge_main.c        |   2 +-
 .../hisilicon/hns3/hns3pf/hclge_mdio.c        |  13 +-
 drivers/net/ethernet/ibm/emac/core.c          |   9 +-
 drivers/net/ethernet/marvell/mv643xx_eth.c    |  21 +-
 drivers/net/ethernet/mediatek/mtk_eth_soc.c   |   7 +-
 drivers/net/ethernet/nxp/lpc_eth.c            |   2 -
 drivers/net/ethernet/realtek/r8169.c          |   2 +-
 drivers/net/ethernet/socionext/sni_ave.c      |   2 +-
 .../ethernet/stmicro/stmmac/stmmac_ethtool.c  |  12 +-
 drivers/net/ethernet/toshiba/tc35815.c        |  29 ++-
 drivers/net/phy/aquantia.c                    |   9 +-
 drivers/net/phy/bcm63xx.c                     |   2 +-
 drivers/net/phy/bcm87xx.c                     |   8 +-
 drivers/net/phy/fixed_phy.c                   |  19 +-
 drivers/net/phy/lxt.c                         |   4 +-
 drivers/net/phy/marvell.c                     |  76 ++++---
 drivers/net/phy/marvell10g.c                  |  37 ++-
 drivers/net/phy/micrel.c                      |  17 +-
 drivers/net/phy/phy-c45.c                     |  12 +-
 drivers/net/phy/phy-core.c                    | 213 ++++++++++++++++--
 drivers/net/phy/phy.c                         | 160 ++++++++-----
 drivers/net/phy/phy_device.c                  | 183 +++++++++------
 drivers/net/phy/phylink.c                     |  19 +-
 drivers/net/phy/uPD60620.c                    |   6 +-
 drivers/net/usb/lan78xx.c                     |  27 ++-
 include/linux/mii.h                           |  52 ++++-
 include/linux/phy.h                           |  19 +-
 41 files changed, 769 insertions(+), 370 deletions(-)

Comments

David Miller Nov. 11, 2018, 6:10 p.m. UTC | #1
From: Andrew Lunn <andrew@lunn.ch>
Date: Sat, 10 Nov 2018 23:43:32 +0100

> This is the last part in converting phylib to make use of a linux
> bitmap, not a u32, to represent links modes. This will allow support
> for PHYs > 1Gbps, which need to use link modes represented by a bit >
> 32.
> 
> A number of MAC and PHY drivers need changes to support this. However
> the previous two patchesets reduced the number somewhat, the helpers
> which were introduced have been modified instead of the actual
> drivers.
> 
> The follow on patches then make use of the extra bits, adding support
> for more link modes.

Series applied.

> Given how invasive this change is, i expect the build is broken for
> some architectures i did not test. I will fixup the breakage as fast
> as i can.

I will hold you to this :-)