1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/dsa/microchip
Oleksij Rempel 49011e0c15 net: phy: micrel: ksz886x/ksz8081: add cabletest support
This patch support for cable test for the ksz886x switches and the
ksz8081 PHY.

The patch was tested on a KSZ8873RLL switch with following results:

- port 1:
  - provides invalid values, thus return -ENOTSUPP
    (Errata: DS80000830A: "LinkMD does not work on Port 1",
     http://ww1.microchip.com/downloads/en/DeviceDoc/KSZ8873-Errata-DS80000830A.pdf)

- port 2:
  - can detect distance
  - can detect open on each wire of pair A (wire 1 and 2)
  - can detect open only on one wire of pair B (only wire 3)
  - can detect short between wires of a pair (wires 1 + 2 or 3 + 6)
  - short between pairs is detected as open.
    For example short between wires 2 + 3 is detected as open.

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-06-14 12:54:43 -07:00
..
Kconfig net: dsa: microchip: Add Microchip KSZ8863 SMI based driver support 2021-04-27 14:13:24 -07:00
ksz8.h net: dsa: microchip: ksz8795: move register offsets and shifts to separate struct 2021-04-27 14:13:23 -07:00
ksz8795.c net: phy: micrel: ksz886x/ksz8081: add cabletest support 2021-06-14 12:54:43 -07:00
ksz8795_reg.h net: dsa: microchip: ksz8795: add LINK_MD register support 2021-06-14 12:54:43 -07:00
ksz8795_spi.c net: dsa: ksz: ksz8795_spi_probe: fix possible NULL pointer dereference 2021-04-29 15:54:35 -07:00
ksz8863_smi.c net: dsa: ksz: ksz8863_smi_probe: set proper return value for ksz_switch_alloc() 2021-04-29 15:54:35 -07:00
ksz9477.c net: dsa: microchip: enable phy errata workaround on 9567 2021-05-24 14:27:18 -07:00
ksz9477_i2c.c net: dsa: microchip: add ksz9563 to ksz9477 I2C driver 2020-10-09 13:05:56 -07:00
ksz9477_reg.h net: dsa: microchip: Use the correct style for SPDX License Identifier 2019-10-15 14:59:58 -07:00
ksz9477_spi.c net: dsa: microchip: ksz9477: setup SPI mode 2020-11-25 17:53:45 -08:00
ksz_common.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2021-01-28 17:09:31 -08:00
ksz_common.h net: dsa: ksz: Make reg_mib_cnt a u8 as it never exceeds 255 2021-04-28 13:56:27 -07:00
Makefile net: dsa: microchip: Add Microchip KSZ8863 SMI based driver support 2021-04-27 14:13:24 -07:00