linux/drivers/of
Stas Sergeev 4cba5c2103 of_mdio: add new DT property 'managed' to specify the PHY management type
Currently the PHY management type is selected by the MAC driver arbitrary.
The decision is based on the presence of the "fixed-link" node and on a
will of the driver's authors.
This caused a regression recently, when mvneta driver suddenly started
to use the in-band status for auto-negotiation on fixed links.
It appears the auto-negotiation may not work when expected by the MAC driver.
Sebastien Rannou explains:
<< Yes, I confirm that my HW does not generate an in-band status. AFAIK, it's
a PHY that aggregates 4xSGMIIs to 1xQSGMII ; the MAC side of the PHY (with
inband status) is connected to the switch through QSGMII, and in this context
we are on the media side of the PHY. >>
https://lkml.org/lkml/2015/7/10/206

This patch introduces the new string property 'managed' that allows
the user to set the management type explicitly.
The supported values are:
"auto" - default. Uses either MDIO or nothing, depending on the presence
of the fixed-link node
"in-band-status" - use in-band status

Signed-off-by: Stas Sergeev <stsp@users.sourceforge.net>

CC: Rob Herring <robh+dt@kernel.org>
CC: Pawel Moll <pawel.moll@arm.com>
CC: Mark Rutland <mark.rutland@arm.com>
CC: Ian Campbell <ijc+devicetree@hellion.org.uk>
CC: Kumar Gala <galak@codeaurora.org>
CC: Florian Fainelli <f.fainelli@gmail.com>
CC: Grant Likely <grant.likely@linaro.org>
CC: devicetree@vger.kernel.org
CC: linux-kernel@vger.kernel.org
CC: netdev@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-07-21 16:12:55 -07:00
..
unittest-data
address.c Devicetree changes for v4.2 2015-07-01 19:40:18 -07:00
base.c Devicetree changes for v4.2 2015-07-01 19:40:18 -07:00
device.c of: add helper function to retrive match data 2015-05-28 12:59:40 -05:00
dynamic.c of/dynamic: Fix test for PPC_PSERIES 2015-06-05 10:39:28 +09:00
fdt_address.c
fdt.c Devicetree changes for v4.2 2015-07-01 19:40:18 -07:00
irq.c of/irq: Rename "intc_desc" to "of_intc_desc" to fix OF on sh 2015-06-30 17:03:57 +01:00
Kconfig of: make unittest select OF_EARLY_FLATTREE instead of depend on it 2015-06-04 20:16:46 -05:00
Makefile of: clean-up unnecessary libfdt include paths 2015-06-04 20:16:47 -05:00
of_mdio.c of_mdio: add new DT property 'managed' to specify the PHY management type 2015-07-21 16:12:55 -07:00
of_mtd.c
of_net.c
of_pci_irq.c
of_pci.c
of_private.h
of_reserved_mem.c
overlay.c of/overlay: Grammar s/an negative/a negative/ 2015-05-28 13:00:25 -05:00
pdt.c
platform.c MFD/OF: document MFD devices and handle simple-mfd 2015-05-11 08:55:03 +02:00
resolver.c
unittest.c Devicetree updates for 4.1: 2015-04-24 08:46:18 -07:00