1. 22 5月, 2021 1 次提交
  2. 20 5月, 2021 1 次提交
  3. 20 4月, 2021 1 次提交
  4. 16 3月, 2021 1 次提交
    • I
      net: phy: add Marvell 88X2222 transceiver support · 6e3bac3e
      Ivan Bornyakov 提交于
      Add basic support for the Marvell 88X2222 multi-speed ethernet
      transceiver.
      
      This PHY provides data transmission over fiber-optic as well as Twinax
      copper links. The 88X2222 supports 2 ports of 10GBase-R and 1000Base-X
      on the line-side interface. The host-side interface supports 4 ports of
      10GBase-R, RXAUI, 1000Base-X and 2 ports of XAUI.
      
      This driver, however, supports only XAUI on the host-side and
      1000Base-X/10GBase-R on the line-side, for now. The SGMII is also
      supported over 1000Base-X. Interrupts are not supported.
      
      Internal registers access compliant with the Clause 45 specification.
      Signed-off-by: NIvan Bornyakov <i.bornyakov@metrotek.ru>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      6e3bac3e
  5. 27 8月, 2020 3 次提交
  6. 08 7月, 2020 1 次提交
    • B
      net: phy: add a Kconfig option for mdio_devres · 1814cff2
      Bartosz Golaszewski 提交于
      If phylib is built as a module and CONFIG_MDIO_DEVICE is 'y', the
      mdio_device and mdio_bus code will be in the phylib module, not in the
      kernel image. Meanwhile we build mdio_devres depending on the
      CONFIG_MDIO_DEVICE symbol, so if it's 'y', it will go into the kernel
      and we'll hit the following linker error:
      
         ld: drivers/net/phy/mdio_devres.o: in function `devm_mdiobus_alloc_size':
      >> drivers/net/phy/mdio_devres.c:38: undefined reference to `mdiobus_alloc_size'
         ld: drivers/net/phy/mdio_devres.o: in function `devm_mdiobus_free':
      >> drivers/net/phy/mdio_devres.c:16: undefined reference to `mdiobus_free'
         ld: drivers/net/phy/mdio_devres.o: in function `__devm_mdiobus_register':
      >> drivers/net/phy/mdio_devres.c:87: undefined reference to `__mdiobus_register'
         ld: drivers/net/phy/mdio_devres.o: in function `devm_mdiobus_unregister':
      >> drivers/net/phy/mdio_devres.c:53: undefined reference to `mdiobus_unregister'
         ld: drivers/net/phy/mdio_devres.o: in function `devm_of_mdiobus_register':
      >> drivers/net/phy/mdio_devres.c:120: undefined reference to `of_mdiobus_register'
      
      Add a hidden Kconfig option for MDIO_DEVRES which will be currently
      selected by CONFIG_PHYLIB as there are no non-phylib users of these
      helpers.
      Reported-by: Nkernel test robot <lkp@intel.com>
      Fixes: ac3a68d5 ("net: phy: don't abuse devres in devm_mdiobus_register()")
      Signed-off-by: NBartosz Golaszewski <bgolaszewski@baylibre.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      1814cff2
  7. 01 7月, 2020 2 次提交
  8. 01 5月, 2020 1 次提交
  9. 23 4月, 2020 1 次提交
    • M
      net: phy: add Broadcom BCM54140 support · 6937602e
      Michael Walle 提交于
      The Broadcom BCM54140 is a Quad SGMII/QSGMII Copper/Fiber Gigabit
      Ethernet transceiver.
      
      This also adds support for tunables to set and get downshift and
      energy detect auto power-down.
      
      The PHY has four ports and each port has its own PHY address.
      There are per-port registers as well as global registers.
      Unfortunately, the global registers can only be accessed by reading
      and writing from/to the PHY address of the first port. Further,
      there is no way to find out what port you actually are by just
      reading the per-port registers. We therefore, have to scan the
      bus on the PHY probe to determine the port and thus what address
      we need to access the global registers.
      Signed-off-by: NMichael Walle <michael@walle.cc>
      Reviewed-by: NAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      6937602e
  10. 27 3月, 2020 1 次提交
  11. 15 3月, 2020 1 次提交
  12. 10 3月, 2020 1 次提交
  13. 07 3月, 2020 1 次提交
  14. 17 2月, 2020 1 次提交
  15. 26 12月, 2019 1 次提交
  16. 12 12月, 2019 1 次提交
  17. 15 11月, 2019 1 次提交
  18. 17 8月, 2019 1 次提交
  19. 03 8月, 2019 1 次提交
    • A
      net: phy: Add mdio-aspeed · f160e994
      Andrew Jeffery 提交于
      The AST2600 design separates the MDIO controllers from the MAC, which is
      where they were placed in the AST2400 and AST2500. Further, the register
      interface is reworked again, so now we have three possible different
      interface implementations, however this driver only supports the
      interface provided by the AST2600. The AST2400 and AST2500 will continue
      to be supported by the MDIO support embedded in the FTGMAC100 driver.
      
      The hardware supports both C22 and C45 mode, but for the moment only C22
      support is implemented.
      Signed-off-by: NAndrew Jeffery <andrew@aj.id.au>
      Reviewed-by: NAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      f160e994
  20. 10 6月, 2019 1 次提交
  21. 27 5月, 2019 1 次提交
  22. 07 4月, 2019 1 次提交
  23. 28 2月, 2019 1 次提交
  24. 26 2月, 2019 2 次提交
  25. 16 5月, 2018 1 次提交
  26. 12 5月, 2018 1 次提交
  27. 11 5月, 2018 1 次提交
  28. 20 4月, 2018 1 次提交
  29. 02 11月, 2017 1 次提交
    • G
      License cleanup: add SPDX GPL-2.0 license identifier to files with no license · b2441318
      Greg Kroah-Hartman 提交于
      Many source files in the tree are missing licensing information, which
      makes it harder for compliance tools to determine the correct license.
      
      By default all files without license information are under the default
      license of the kernel, which is GPL version 2.
      
      Update the files which contain no license information with the 'GPL-2.0'
      SPDX license identifier.  The SPDX identifier is a legally binding
      shorthand, which can be used instead of the full boiler plate text.
      
      This patch is based on work done by Thomas Gleixner and Kate Stewart and
      Philippe Ombredanne.
      
      How this work was done:
      
      Patches were generated and checked against linux-4.14-rc6 for a subset of
      the use cases:
       - file had no licensing information it it.
       - file was a */uapi/* one with no licensing information in it,
       - file was a */uapi/* one with existing licensing information,
      
      Further patches will be generated in subsequent months to fix up cases
      where non-standard license headers were used, and references to license
      had to be inferred by heuristics based on keywords.
      
      The analysis to determine which SPDX License Identifier to be applied to
      a file was done in a spreadsheet of side by side results from of the
      output of two independent scanners (ScanCode & Windriver) producing SPDX
      tag:value files created by Philippe Ombredanne.  Philippe prepared the
      base worksheet, and did an initial spot review of a few 1000 files.
      
      The 4.13 kernel was the starting point of the analysis with 60,537 files
      assessed.  Kate Stewart did a file by file comparison of the scanner
      results in the spreadsheet to determine which SPDX license identifier(s)
      to be applied to the file. She confirmed any determination that was not
      immediately clear with lawyers working with the Linux Foundation.
      
      Criteria used to select files for SPDX license identifier tagging was:
       - Files considered eligible had to be source code files.
       - Make and config files were included as candidates if they contained >5
         lines of source
       - File already had some variant of a license header in it (even if <5
         lines).
      
      All documentation files were explicitly excluded.
      
      The following heuristics were used to determine which SPDX license
      identifiers to apply.
      
       - when both scanners couldn't find any license traces, file was
         considered to have no license information in it, and the top level
         COPYING file license applied.
      
         For non */uapi/* files that summary was:
      
         SPDX license identifier                            # files
         ---------------------------------------------------|-------
         GPL-2.0                                              11139
      
         and resulted in the first patch in this series.
      
         If that file was a */uapi/* path one, it was "GPL-2.0 WITH
         Linux-syscall-note" otherwise it was "GPL-2.0".  Results of that was:
      
         SPDX license identifier                            # files
         ---------------------------------------------------|-------
         GPL-2.0 WITH Linux-syscall-note                        930
      
         and resulted in the second patch in this series.
      
       - if a file had some form of licensing information in it, and was one
         of the */uapi/* ones, it was denoted with the Linux-syscall-note if
         any GPL family license was found in the file or had no licensing in
         it (per prior point).  Results summary:
      
         SPDX license identifier                            # files
         ---------------------------------------------------|------
         GPL-2.0 WITH Linux-syscall-note                       270
         GPL-2.0+ WITH Linux-syscall-note                      169
         ((GPL-2.0 WITH Linux-syscall-note) OR BSD-2-Clause)    21
         ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)    17
         LGPL-2.1+ WITH Linux-syscall-note                      15
         GPL-1.0+ WITH Linux-syscall-note                       14
         ((GPL-2.0+ WITH Linux-syscall-note) OR BSD-3-Clause)    5
         LGPL-2.0+ WITH Linux-syscall-note                       4
         LGPL-2.1 WITH Linux-syscall-note                        3
         ((GPL-2.0 WITH Linux-syscall-note) OR MIT)              3
         ((GPL-2.0 WITH Linux-syscall-note) AND MIT)             1
      
         and that resulted in the third patch in this series.
      
       - when the two scanners agreed on the detected license(s), that became
         the concluded license(s).
      
       - when there was disagreement between the two scanners (one detected a
         license but the other didn't, or they both detected different
         licenses) a manual inspection of the file occurred.
      
       - In most cases a manual inspection of the information in the file
         resulted in a clear resolution of the license that should apply (and
         which scanner probably needed to revisit its heuristics).
      
       - When it was not immediately clear, the license identifier was
         confirmed with lawyers working with the Linux Foundation.
      
       - If there was any question as to the appropriate license identifier,
         the file was flagged for further research and to be revisited later
         in time.
      
      In total, over 70 hours of logged manual review was done on the
      spreadsheet to determine the SPDX license identifiers to apply to the
      source files by Kate, Philippe, Thomas and, in some cases, confirmation
      by lawyers working with the Linux Foundation.
      
      Kate also obtained a third independent scan of the 4.13 code base from
      FOSSology, and compared selected files where the other two scanners
      disagreed against that SPDX file, to see if there was new insights.  The
      Windriver scanner is based on an older version of FOSSology in part, so
      they are related.
      
      Thomas did random spot checks in about 500 files from the spreadsheets
      for the uapi headers and agreed with SPDX license identifier in the
      files he inspected. For the non-uapi files Thomas did random spot checks
      in about 15000 files.
      
      In initial set of patches against 4.14-rc6, 3 files were found to have
      copy/paste license identifier errors, and have been fixed to reflect the
      correct identifier.
      
      Additionally Philippe spent 10 hours this week doing a detailed manual
      inspection and review of the 12,461 patched files from the initial patch
      version early this week with:
       - a full scancode scan run, collecting the matched texts, detected
         license ids and scores
       - reviewing anything where there was a license detected (about 500+
         files) to ensure that the applied SPDX license was correct
       - reviewing anything where there was no detection but the patch license
         was not GPL-2.0 WITH Linux-syscall-note to ensure that the applied
         SPDX license was correct
      
      This produced a worksheet with 20 files needing minor correction.  This
      worksheet was then exported into 3 different .csv files for the
      different types of files to be modified.
      
      These .csv files were then reviewed by Greg.  Thomas wrote a script to
      parse the csv files and add the proper SPDX tag to the file, in the
      format that the file expected.  This script was further refined by Greg
      based on the output to detect more types of files automatically and to
      distinguish between header and source .c files (which need different
      comment types.)  Finally Greg ran the script using the .csv files to
      generate the patches.
      Reviewed-by: NKate Stewart <kstewart@linuxfoundation.org>
      Reviewed-by: NPhilippe Ombredanne <pombredanne@nexb.com>
      Reviewed-by: NThomas Gleixner <tglx@linutronix.de>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      b2441318
  30. 12 10月, 2017 1 次提交
  31. 10 10月, 2017 1 次提交
  32. 12 8月, 2017 1 次提交
  33. 07 8月, 2017 4 次提交
    • R
      sfp: add SFP module support · 73970055
      Russell King 提交于
      Add support for SFP hotpluggable modules via sfp-bus and phylink.
      This supports both copper and optical SFP modules, which require
      different Serdes modes in order to properly negotiate the link.
      
      Optical SFP modules typically require the Serdes link to be talking
      1000BaseX mode - this is the gigabit ethernet mode defined by the
      802.3 standard.
      
      Copper SFP modules typically integrate a PHY in the module to convert
      from Serdes to copper, and the PHY will be configured by the vendor
      to either present a 1000BaseX Serdes link (for fixed 1000BaseT) or a
      SGMII Serdes link.  However, this is vendor defined, so we instead
      detect the PHY, switch the link to SGMII mode, and use traditional
      PHY based negotiation.
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      73970055
    • R
    • R
      phylink: add phylink infrastructure · 9525ae83
      Russell King 提交于
      The link between the ethernet MAC and its PHY has become more complex
      as the interface evolves.  This is especially true with serdes links,
      where the part of the PHY is effectively integrated into the MAC.
      
      Serdes links can be connected to a variety of devices, including SFF
      modules soldered down onto the board with the MAC, a SFP cage with
      a hotpluggable SFP module which may contain a PHY or directly modulate
      the serdes signals onto optical media with or without a PHY, or even
      a classical PHY connection.
      
      Moreover, the negotiation information on serdes links comes in two
      varieties - SGMII mode, where the PHY provides its speed/duplex/flow
      control information to the MAC, and 1000base-X mode where both ends
      exchange their abilities and each resolve the link capabilities.
      
      This means we need a more flexible means to support these arrangements,
      particularly with the hotpluggable nature of SFP, where the PHY can
      be attached or detached after the network device has been brought up.
      
      Ethtool information can come from multiple sources:
      - we may have a PHY operating in either SGMII or 1000base-X mode, in
        which case we take ethtool/mii data directly from the PHY.
      - we may have a optical SFP module without a PHY, with the MAC
        operating in 1000base-X mode - the ethtool/mii data needs to come
        from the MAC.
      - we may have a copper SFP module with a PHY whic can't be accessed,
        which means we need to take ethtool/mii data from the MAC.
      
      Phylink aims to solve this by providing an intermediary between the
      MAC and PHY, providing a safe way for PHYs to be hotplugged, and
      allowing a SFP driver to reconfigure the serdes connection.
      
      Phylink also takes over support of fixed link connections, where the
      speed/duplex/flow control are fixed, but link status may be controlled
      by a GPIO signal.  By avoiding the fixed-phy implementation, phylink
      can provide a faster response to link events: fixed-phy has to wait for
      phylib to operate its state machine, which can take several seconds.
      In comparison, phylink takes milliseconds.
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      
      - remove sync status
      - rework supported and advertisment handling
      - add 1000base-x speed for fixed links
      - use functionality exported from phy-core, reworking
        __phylink_ethtool_ksettings_set for it
      Reviewed-by: NAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      9525ae83
    • R
      net: phy: add I2C mdio bus · 453d00de
      Russell King 提交于
      Add an I2C MDIO bus bridge library, to allow phylib to access PHYs which
      are connected to an I2C bus instead of the more conventional MDIO bus.
      Such PHYs can be found in SFP adapters and SFF modules.
      
      Since PHYs appear at I2C bus address 0x40..0x5f, and 0x50/0x51 are
      reserved for SFP EEPROMs/diagnostics, we must not allow the MDIO bus
      to access these I2C addresses.
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      Reviewed-by: NAndrew Lunn <andrew@lunn.ch>
      Reviewed-by: NFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      453d00de