OSDN Git Service

Merge branch 'add-further-dt-configuration-for-at803x-phys'
authorJakub Kicinski <kuba@kernel.org>
Fri, 15 Jan 2021 23:06:08 +0000 (15:06 -0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 15 Jan 2021 23:06:09 +0000 (15:06 -0800)
commite7fa5c80defe079190537fd6b6aecb8866b446a3
treed20104b60f63ca70e555935a19bf89f51e5acc2c
parent1d9f03c0a15fa01aa14fb295cbc1236403fceb0b
parent390b4cad81484124db2b676ed20a265adc032bae
Merge branch 'add-further-dt-configuration-for-at803x-phys'

Russell King says:

====================
Add further DT configuration for AT803x PHYs

This patch series adds the ability to configure the SmartEEE feature
in AT803x PHYs. SmartEEE defaults to enabled on these PHYs, and has
a history of causing random sporadic link drops at Gigabit speeds.

There appears to be two solutions to this. There is the approach that
Freescale adopted early on, which is to disable the SmartEEE feature.
However, this loses the power saving provided by EEE. Another solution
was found by Jon Nettleton is to increase the Tw parameter for Gigabit
links.

This patch series adds support for both approaches, by adding a boolean:

qca,disable-smarteee

if one wishes to disable SmartEEE, and two properties to configure the
SmartEEE Tw parameters:

qca,smarteee-tw-us-100m
qca,smarteee-tw-us-1g

Sadly, the PHY quirk I merged a while back for AT8035 on iMX6 is broken
- rather than disabling SmartEEE mode, it enables it.

The addition of these properties will be sent to the appropriate
platform maintainers - although for SolidRun platforms, we only make use
of "qca,smarteee-tw-us-1g".
====================

Link: https://lore.kernel.org/r/20210114104455.GP1551@shell.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>