linux-stable/arch/arm
Michal Vokáč 681ba22555 ARM: dts: imx6dl-yapp4: Move the internal switch PHYs under the switch node
[ Upstream commit 79978bff2e ]

We identified that the PHYs actually do not work since commit 7da7b84fee
("ARM: dts: imx6dl-yapp4: Move phy reset into switch node") as
a coincidence of several circumstances.

The reset signal is kept asserted by a pull-down resistor on the board
unless it is deasserted by GPIO from the SoC. This is to keep the switch
dead until it is configured properly by the kernel and user space.

Prior to the referenced commit the switch was reset by the FEC driver
and the reset GPIO was actively deasserted. The mdio-bus was scanned
and the attached switch and its PHYs were found and configured.

With the referenced commit the switch is reset by the qca8k driver.
Because of another bug in the qca8k driver, functionality of the reset
pin depends on its pre-kernel configuration. See commit c44fc98f0a
("net: dsa: qca8k: fix illegal usage of GPIO")

The problem did not appear until we removed support for the switch
and configuration of its reset pin from the bootloader.

To fix that, properly describe the internal mdio-bus configuration of
the qca8334 switch. The PHYs are internal to the switch and sit on its
internal mdio-bus.

Fixes: 7da7b84fee ("ARM: dts: imx6dl-yapp4: Move phy reset into switch node")
Signed-off-by: Michal Vokáč <michal.vokac@ysoft.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-03-26 18:20:38 -04:00
..
boot ARM: dts: imx6dl-yapp4: Move the internal switch PHYs under the switch node 2024-03-26 18:20:38 -04:00
common
configs ARM: bcm2835_defconfig: Enable the framebuffer 2023-03-10 09:32:38 +01:00
crypto
include work around gcc bugs with 'asm goto' with outputs 2024-02-23 09:12:28 +01:00
kernel ARM: 9317/1: kexec: Make smp stop calls asynchronous 2023-09-23 11:11:05 +02:00
lib ARM: 9321/1: memset: cast the constant byte to unsigned char 2023-11-20 11:52:06 +01:00
mach-actions
mach-airoha
mach-alpine
mach-artpec
mach-asm9260
mach-aspeed
mach-at91 ARM: at91: pm: fix imbalanced reference counter for ethernet devices 2023-06-14 11:15:29 +02:00
mach-axxia
mach-bcm
mach-berlin
mach-clps711x
mach-cns3xxx
mach-davinci ARM: 9330/1: davinci: also select PINCTRL 2024-01-25 15:27:44 -08:00
mach-digicolor
mach-dove
mach-ep93xx ARM: ep93xx: Add terminator to gpiod_lookup_table 2024-03-01 13:26:33 +01:00
mach-exynos
mach-footbridge
mach-gemini
mach-highbank
mach-hisi
mach-hpe
mach-imx ARM: imx: Check return value of devm_kasprintf in imx_mmdc_perf_init 2023-12-13 18:39:16 +01:00
mach-iop32x
mach-ixp4xx
mach-keystone
mach-lpc18xx
mach-lpc32xx
mach-mediatek
mach-meson
mach-milbeaut
mach-mmp ARM: mmp: fix timer_read delay 2022-12-31 13:31:54 +01:00
mach-moxart
mach-mstar
mach-mv78xx0
mach-mvebu
mach-mxs ARM: mxs: fix memory leak in mxs_machine_init() 2022-11-19 09:40:36 +08:00
mach-nomadik
mach-npcm
mach-nspire
mach-omap1 ARM: OMAP: timer32K: fix all kernel-doc warnings 2023-11-02 09:35:25 +01:00
mach-omap2 ARM: OMAP2+: Fix null pointer dereference and memory leak in omap_soc_device_init 2024-01-01 12:38:53 +00:00
mach-orion5x ARM: orion5x: fix d2net gpio initialization 2023-07-19 16:22:14 +02:00
mach-oxnas
mach-pxa ARM: pxa: remove use of symbol_get() 2023-09-06 21:26:59 +01:00
mach-qcom
mach-rda
mach-realtek
mach-rockchip
mach-rpc
mach-s3c ARM: s3c: fix s3c64xx_set_timer_source prototype 2023-03-10 09:32:38 +01:00
mach-s5pv210
mach-sa1100 ARM: 9296/1: HP Jornada 7XX: fix kernel-doc warnings 2023-05-24 17:32:31 +01:00
mach-shmobile
mach-socfpga
mach-spear
mach-sti
mach-stm32
mach-sunplus
mach-sunxi ARM: sun9i: smp: fix return code check of of_property_match_string 2024-01-20 11:50:09 +01:00
mach-tegra
mach-uniphier
mach-ux500
mach-versatile
mach-vt8500
mach-zynq ARM: zynq: Fix refcount leak in zynq_early_slcr_init 2023-03-10 09:32:33 +01:00
mm arm/mm: Convert to using lock_mm_and_find_vma() 2023-07-01 13:16:25 +02:00
net
nwfpe ARM: 9256/1: NWFPE: avoid compiler-generated __aeabi_uldivmod 2023-01-07 11:11:49 +01:00
plat-orion
probes ARM: 9303/1: kprobes: avoid missing-declaration warnings 2023-07-19 16:21:01 +02:00
tools
vdso
vfp
xen xen: simplify evtchn_do_upcall() call maze 2023-12-08 08:51:20 +01:00
Kbuild
Kconfig ARM: cpu: Switch to arch_cpu_finalize_init() 2023-08-08 20:03:46 +02:00
Kconfig-nommu
Kconfig.assembler
Kconfig.debug
Makefile