linux_dsm_epyc7002/arch/arm/mach-imx
André Draszik acf993a0f2 ARM: imx: stop adjusting ar8031 phy tx delay
Recent changes to the Atheros at803x driver cause
the approach taken here to stop working because
commit 6d4cd041f0
("net: phy: at803x: disable delay only for RGMII mode")
and commit cd28d1d6e5
("net: phy: at803x: Disable phy delay for RGMII mode")
fix the AR8031 driver to configure the phy's (RX/TX)
delays as per the 'phy-mode' in the device tree.

In particular, the phy tx (and rx) delays are updated
again as per the 'phy-mode' *after* the code in here
runs.

Things worked before above commits, because the AR8031
comes out of reset with RX delay enabled, and the
at803x driver didn't touch the delay configuration at
all when "rgmii" mode was selected.

It appears the code in here tries to make device
trees work that incorrectly specify "rgmii", but
that can't work any more and it is imperative since
above commits to have the phy-mode configured
correctly in the device tree.

I suspect there are a few imx7d based boards using
the ar8031 phy and phy-mode = "rgmii", but given I
don't know which ones exactly, I am not in a
position to update the respective device trees.

Hence this patch is simply removing the superfluous
code from the imx7d initialisation. An alternative
could be to add a warning instead, but that would
penalize all boards that have been updated already.

Signed-off-by: André Draszik <git@andred.net>
CC: Russell King <linux@armlinux.org.uk>
CC: Shawn Guo <shawnguo@kernel.org>
CC: Sascha Hauer <s.hauer@pengutronix.de>
CC: Pengutronix Kernel Team <kernel@pengutronix.de>
CC: Fabio Estevam <festevam@gmail.com>
CC: NXP Linux Team <linux-imx@nxp.com>
CC: Kate Stewart <kstewart@linuxfoundation.org>
CC: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
CC: Thomas Gleixner <tglx@linutronix.de>
CC: Leonard Crestez <leonard.crestez@nxp.com>
CC: linux-arm-kernel@lists.infradead.org
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
2019-08-24 20:30:22 +02:00
..
devices
3ds_debugboard.c
3ds_debugboard.h
anatop.c
avic.c
board-mx31lilly.h
board-mx31lite.h
board-mx31moboard.h
common.h
cpu-imx5.c
cpu-imx25.c
cpu-imx27.c
cpu-imx31.c
cpu-imx35.c
cpu.c
cpuidle-imx5.c
cpuidle-imx6q.c
cpuidle-imx6sl.c
cpuidle-imx6sx.c
cpuidle-imx7ulp.c
cpuidle.h
crmregs-imx3.h
devices-imx21.h
devices-imx27.h
devices-imx31.h
devices-imx35.h
ehci-imx27.c
ehci-imx31.c
ehci-imx35.c
ehci.h
gpc.c
hardware.h
headsmp.S
hotplug.c
iim.h
imx27-dt.c
imx31-dt.c
imx35-dt.c
iomux-imx31.c
iomux-mx2x.h
iomux-mx3.h
iomux-mx21.h
iomux-mx27.h
iomux-mx35.h
iomux-v1.c
iomux-v1.h
iomux-v3.c
iomux-v3.h
irq-common.c
irq-common.h
Kconfig
mach-armadillo5x0.c
mach-bug.c
mach-imx1.c
mach-imx6q.c
mach-imx6sl.c
mach-imx6sx.c
mach-imx6ul.c
mach-imx7d-cm4.c
mach-imx7d.c
mach-imx7ulp.c
mach-imx25.c
mach-imx27_visstrim_m10.c
mach-imx50.c
mach-imx51.c
mach-imx53.c
mach-kzm_arm11_01.c
mach-ls1021a.c
mach-mx21ads.c
mach-mx27_3ds.c
mach-mx27ads.c
mach-mx31_3ds.c
mach-mx31ads.c
mach-mx31lilly.c
mach-mx31lite.c
mach-mx31moboard.c
mach-mx35_3ds.c
mach-pca100.c
mach-pcm037_eet.c
mach-pcm037.c
mach-pcm043.c
mach-qong.c
mach-vf610.c
mach-vpr200.c
Makefile
Makefile.boot
mm-imx3.c
mm-imx21.c
mm-imx27.c
mmdc.c
mx2x.h
mx3x.h
mx21.h
mx27.h
mx31.h
mx31lilly-db.c
mx31lite-db.c
mx31moboard-devboard.c
mx31moboard-marxbot.c
mx31moboard-smartbot.c
mx35.h
mxc.h
pcm037.h
platsmp.c
pm-imx5.c
pm-imx6.c
pm-imx7ulp.c
pm-imx25.c
pm-imx27.c
src.c
ssi-fiq-ksym.c
ssi-fiq.S
suspend-imx6.S
suspend-imx53.S
system.c
tzic.c
ulpi.h