[PATCH net-next] net: phy: aquantia: add PHY ID of AQR106 and AQR107

2016-10-20 Thread shh.xie
From: Shaohui Xie The AQR106 and AQR107 can use the existing driver. Signed-off-by: Shaohui Xie --- drivers/net/phy/aquantia.c | 28 1 file changed, 28 insertions(+) diff --git a/drivers/net/phy/aquantia.c b/drivers/net/phy/aquantia.c index 09b0b0a..e8ae50e 100644

[PATCH] net: phylib: fix interrupts re-enablement in phy_start

2016-05-10 Thread shh.xie
From: Shaohui Xie If phy was suspended and is starting, current driver always enable phy's interrupts, if phy works in polling, phy can raise unexpected interrupt which will not be handled, the interrupt will block system enter suspend again. So interrupts should only be re-enabled if phy works i

[PATCH] net: phy: adds backplane driver for Freescale's PCS PHY

2015-12-18 Thread shh.xie
From: Shaohui Xie Freescale's PCS PHY can support backplane, this patch provides 10GBASE-KR and 1000BASE-KX support. Signed-off-by: Shaohui Xie --- drivers/net/phy/Kconfig |7 + drivers/net/phy/Makefile|1 + drivers/net/phy/fsl_backplane.c | 1201 +++

[PATCH] [V2] net: fsl: expands dependencies of NET_VENDOR_FREESCALE

2015-11-19 Thread shh.xie
From: Shaohui Xie Freescale hosts some ARMv8 based SoCs, and a generic convention ARCH_LAYERSCAPE is used to cover such SoCs. Adding ARCH_LAYERSCAPE to dependencies of NET_VENDOR_FREESCALE to support networking on those SoCs. The ARCH_LAYERSCAPE is introduced by: commit: 53a5fde05 arm64: Use gen

[PATCH][v3] net: phy: fix a bug in get_phy_c45_ids

2015-11-02 Thread shh.xie
From: Shaohui Xie When probing devices-in-package for a c45 phy, device zero is the last device to probe, however, if driver reads 0 from device zero, c45_ids->devices_in_package is set to '0', the loop condition of probing will be matched again, see codes below: for (i = 1;i < num_ids && c45_id

[PATCH][v2] net: phy: fix a bug in get_phy_c45_ids

2015-11-02 Thread shh.xie
From: Shaohui Xie When probing devices-in-package for a c45 phy, device zero is the last device to probe, however, if driver reads 0 from device zero, c45_ids->devices_in_package is set to '0', the loop condition of probing will be matched again, see codes below: for (i = 1;i < num_ids && c45_id

[PATCH] net: phy: fix a bug in get_phy_c45_ids

2015-10-29 Thread shh.xie
From: Shaohui Xie When probing devices-in-package for a c45 phy, device zero is the last device to probe, in a rare situation which driver can read a '0' from the device zero, thus c45_ids->devices_in_package is set to '0', so the loop condition of probing is matched, see codes below: for (i = 1

[PATCH] net: fsl: expands dependencies of NET_VENDOR_FREESCALE

2015-10-26 Thread shh.xie
From: Shaohui Xie Freescale hosts some ARMv8 based SoCs, and a generic convention ARCH_LAYERSCAPE is used to cover such SoCs. Adding ARCH_LAYERSCAPE to dependencies of NET_VENDOR_FREESCALE to support networking on those SoCs. The patch to add ARCH_LAYERSCAPE can be viewed at: http://www.spinics.

[PATCH] net: phy: add interrupt support for aquantia phy

2015-08-21 Thread shh.xie
From: Shaohui Xie By implementing config_intr & ack_interrupt, now the phy can support link connect/disconnect interrupt. Signed-off-by: Shaohui Xie --- drivers/net/phy/aquantia.c | 49 ++ 1 file changed, 49 insertions(+) diff --git a/drivers/net/ph

[PATCH] net: phy: fix PHY_RUNNING in phy_state_machine

2015-08-13 Thread shh.xie
From: Shaohui Xie Currently, if phy state is PHY_RUNNING, we always register a CHANGE when phy works in polling or interrupt ignored, this will make the adjust_link being called even the phy link did Not changed. checking the phy link to make sure the link did changed before we register a CHANGE

[PATCH] net: phy: select copper mode when Marvel 88e1111 in SGMII

2015-08-07 Thread shh.xie
From: Madalin Bucur For the Marvel 88e PHY only two SGMII modes are available, both allowing only SGMII to copper mode (with or without clock). SGMII to fiber mode is not supported. Make sure the fiber/copper registers selector bits are cleared for selecting copper mode. Signed-off-by: Madal

[PATCH] net: phy: add RealTek RTL8211DN phy id

2015-08-06 Thread shh.xie
From: Shaohui Xie RTL8211DN is compatible with RTL8211E. Signed-off-by: Shaohui Xie --- drivers/net/phy/realtek.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/net/phy/realtek.c b/drivers/net/phy/realtek.c index 4535361..43ab691 100644 --- a/drivers/net/phy/realte

[PATCH][v3] net: phy: add driver for aquantia phy

2015-07-31 Thread shh.xie
From: Shaohui Xie This patch added driver to support Aquantia PHYs AQ1202, AQ2104, AQR105, AQR405, which accessed through clause 45. Signed-off-by: Shaohui Xie --- changes in v3: removed nop routines. changes in v2: addressed Florian's comments. drivers/net/phy/Kconfig| 5 ++ drivers/n

[PATCH][v2] net: phy: add driver for aquantia phy

2015-07-29 Thread shh.xie
From: Shaohui Xie This patch added driver to support Aquantia PHYs AQ1202, AQ2104, AQR105, AQR405, which accessed through clause 45. Signed-off-by: Shaohui Xie --- changes in v2: addressed Florian's comments. drivers/net/phy/Kconfig| 5 ++ drivers/net/phy/Makefile | 1 + drivers/net

[PATCH] net: phy: fix auto negotiation checking for teranetics

2015-07-24 Thread shh.xie
From: Shaohui Xie When using fiber port, the phy cannot report it's auto negotiation state, driver should always report auto negotiation is done when using fiber port. Signed-off-by: Shaohui Xie --- drivers/net/phy/teranetics.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-)

[PATCH] phylib: add driver for aquantia phy

2015-07-23 Thread shh.xie
From: Shaohui Xie This patch added driver to support Aquantia PHYs AQ1202, AQ2104, AQR105, AQR405, which accessed through clause 45. Signed-off-by: Shaohui Xie --- drivers/net/phy/Kconfig| 5 ++ drivers/net/phy/Makefile | 1 + drivers/net/phy/aquantia.c | 157

[PATCH] net/mdio: fix mdio_bus_match for c45 PHY

2015-07-17 Thread shh.xie
From: Shaohui Xie We store c45 PHY's id information in c45_ids, so it should be used to check the matching between PHY driver and PHY device for c45 PHY. Signed-off-by: Shaohui Xie --- drivers/net/phy/mdio_bus.c | 19 +-- 1 file changed, 17 insertions(+), 2 deletions(-) diff -

[PATCH] phylib: add driver for Teranetics TN2020

2015-07-16 Thread shh.xie
From: Shaohui Xie Teranetics TN2020 is compliant with IEEE 802.3an 10 Gigabit. Signed-off-by: Shaohui Xie --- drivers/net/phy/Kconfig | 5 ++ drivers/net/phy/Makefile | 1 + drivers/net/phy/teranetics.c | 128 +++ 3 files changed, 134 insert

[PATCH] net/phy: Add Vitesse 8641 phy ID

2015-06-25 Thread shh.xie
From: Shaohui Xie Vitesse VSC8641 is compatible with Vitesse 82xx Signed-off-by: Shaohui Xie --- drivers/net/phy/vitesse.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/net/phy/vitesse.c b/drivers/net/phy/vitesse.c index 76cad71..17cad18 100644 --- a/drivers/net/p