All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v8 0/2] net: phy: mscc: Improvements to VSC8514 PHY driver.
@ 2019-04-22 11:49 Kavyasree.Kotagiri
  2019-04-23 17:48 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Kavyasree.Kotagiri @ 2019-04-22 11:49 UTC (permalink / raw)
  To: andrew, f.fainelli, hkallweit1, davem
  Cc: netdev, UNGLinuxDriver, Kavyasree.Kotagiri

    The VSC8514 PHY is a 4-ports PHY that is 10/100/1000BASE-T, 100BASE-FX,
    1000BASE-X, can communicate with the MAC via QSGMII.
    The MAC interface protocol for each port within QSGMII can
    be either 1000BASE-X or SGMII, if the QSGMII MAC that the VSC8514 is
    connecting to supports this functionality.
    VSC8514 also supports SGMII MAC-side autonegotiation on each individual
    port, downshifting, can set the blinking pattern of each of its 4 LEDs,
    SyncE, 1000BASE-T Ring Resiliency as well as HP Auto-MDIX detection.

    This patch series adds support for 10BASE-T, 100BASE-TX, and
    1000BASE-T, QSGMII link with the MAC, downshifting, HP Auto-MDIX
    detection and blinking pattern for its 4 LEDs.

    The GPIO register bank is a set of registers that are common to all
    PHYs in the package. So any modification in any register of this bank
    affects all PHYs of the package.

    If the PHYs haven't been reset before booting the Linux kernel and were
    configured to use interrupts for e.g. link status updates, it is
    required to clear the interrupts mask register of all PHYs before being
    able to use interrupts with any PHY. The first PHY of the package that
    will be init will take care of clearing all PHYs interrupts mask
    registers. Thus, we need to keep track of the init sequence in the
    package, if it's already been done or if it's to be done.

    Most of the init sequence of a PHY of the package is common to all PHYs
    in the package, thus we use the SMI broadcast feature which enables us
    to propagate a write in one register of one PHY to all PHYs in the same
    package.

    This patch series adds support for VSC8514 in Microsemi driver(mscc.c)
    and removes support from Vitesse driver(vitesse.c).

v8
- mscc: Added appropriate code using phy_modify() in vsc8514_config_init().

v7
- mscc: Handled return values in vsc8514_config_init().

v6
- mscc: Added proper return value in vsc85xx_csr_ctrl_phy_read().
- mscc: Replaced __mdiobus_write and__mdiobus_read with __phy_write and __phy_read resp.
- mscc: Replaced register addresses in 8514_config_init() with proper constants.

v5
- mscc: Added return error statements for few function calls.
- mscc: Added comments in vsc85xx_csr_ctrl_phy_read() and vsc85xx_csr_ctrl_phy_write()
v4
- mscc: Removed features settings
- mscc: Removed aneg_done settings.

v3
- mscc: Used BIT(x) for PHY_MCB_S6G_WRITE and PHY_MCB_S6G_READ
        instead of hex.
- mscc: Replaced magic numbers with proper constants.
- mscc: Handled delays and timeouts at appropriate points.
- mscc: Added comments/explanation where requested.

v2
- mscc: Sorted variable declarations in reverse christmas tree order.

v1
- Added 0/2 file.

Kavya Sree Kotagiri (2):
  net: phy: mscc: add support for VSC8514 PHY.
  net: phy: vitesse: Remove support for VSC8514.

 drivers/net/phy/Kconfig   |   2 +-
 drivers/net/phy/mscc.c    | 467 ++++++++++++++++++++++++++++++++++++++
 drivers/net/phy/vitesse.c |  12 -
 3 files changed, 468 insertions(+), 13 deletions(-)

-- 
2.17.1


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

* Re: [PATCH v8 0/2] net: phy: mscc: Improvements to VSC8514 PHY driver.
  2019-04-22 11:49 [PATCH v8 0/2] net: phy: mscc: Improvements to VSC8514 PHY driver Kavyasree.Kotagiri
@ 2019-04-23 17:48 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2019-04-23 17:48 UTC (permalink / raw)
  To: Kavyasree.Kotagiri; +Cc: andrew, f.fainelli, hkallweit1, netdev, UNGLinuxDriver

From: <Kavyasree.Kotagiri@microchip.com>
Date: Mon, 22 Apr 2019 11:49:58 +0000

>     The VSC8514 PHY is a 4-ports PHY that is 10/100/1000BASE-T, 100BASE-FX,
>     1000BASE-X, can communicate with the MAC via QSGMII.
>     The MAC interface protocol for each port within QSGMII can
>     be either 1000BASE-X or SGMII, if the QSGMII MAC that the VSC8514 is
>     connecting to supports this functionality.
>     VSC8514 also supports SGMII MAC-side autonegotiation on each individual
>     port, downshifting, can set the blinking pattern of each of its 4 LEDs,
>     SyncE, 1000BASE-T Ring Resiliency as well as HP Auto-MDIX detection.
> 
>     This patch series adds support for 10BASE-T, 100BASE-TX, and
>     1000BASE-T, QSGMII link with the MAC, downshifting, HP Auto-MDIX
>     detection and blinking pattern for its 4 LEDs.
 ...

Series applied to net-next, thank you.

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

end of thread, other threads:[~2019-04-23 17:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-22 11:49 [PATCH v8 0/2] net: phy: mscc: Improvements to VSC8514 PHY driver Kavyasree.Kotagiri
2019-04-23 17:48 ` David Miller

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.