lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAP_9mL46Z3kwaSdyCAaEd0iugDEyva6FMBXTPjDhyuWfKZc+7g@mail.gmail.com>
Date: Wed, 16 Jul 2025 10:30:36 +0800
From: 练亮斌 <jjm2473@...il.com>
To: netdev@...r.kernel.org
Cc: Frank.Sae@...or-comm.com
Subject: net: phy: Motorcomm YT85xx reset issue

https://github.com/torvalds/linux/blob/155a3c003e555a7300d156a5252c004c392ec6b0/arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2c.dtsi

https://github.com/torvalds/linux/blob/155a3c003e555a7300d156a5252c004c392ec6b0/arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2.dtsi#L140

nanopi-r2c has a stmmac, which uses clock from yt8521s,
`ip link set dev eth0 down; sleep 1; ip link set dev eth0 up` will
trigger a hard reset on yt8521s (`reset-gpios`), but
`motorcomm,clk-out-frequency-hz` is not applied after reset, then
stmmac die:
```
[   46.656359] rk_gmac-dwmac ff540000.ethernet eth0: Register
MEM_TYPE_PAGE_POOL RxQ-0
[   46.730371] rk_gmac-dwmac ff540000.ethernet eth0: PHY [stmmac-0:03]
driver [YT8521 Gigabit Ethernet] (irq=POLL)
[   46.934670] rk_gmac-dwmac ff540000.ethernet: Failed to reset the dma
[   46.935284] rk_gmac-dwmac ff540000.ethernet eth0: stmmac_hw_setup:
DMA engine initialization failed
[   46.936092] rk_gmac-dwmac ff540000.ethernet eth0: __stmmac_open: Hw
setup failed
```

`motorcomm,clk-out-frequency-hz` should be applied in soft_reset or
config_init, not only in probe.

ref https://github.com/openwrt/openwrt/pull/19415

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ