Re: Re: [PATCH v2 0/2] net: stmmac: eic7700: fix EIC7700 eth1 RX sampling timing

From: Marcel Ziswiler

Date: Fri Feb 27 2026 - 04:59:45 EST


Hi Zhi Li

On Thu, 2026-02-26 at 11:20 +0800, 李志 wrote:
> Hi Marcel,
>
> Thanks for sharing the details.
>
> 1. I checked your log and noticed that the kernel cmdline already includes
>    "clk_ignore_unused". Therefore, your issue does not appear to be the
>    same as the one previously reported by Bo Gan.

Yes, that actually came from ESWIN's hifive-premier-p550_defconfig which I disabled now.

> 2. I also verified that v6.19.2 already contains the two eMMC fix patches:
>    https://lore.kernel.org/all/CAPDyKFqcMyM-=x+2FWNLhHY=gu5ApHNPQhp0xBKDJGr7BhEx4Q@xxxxxxxxxxxxxx/
>    https://lore.kernel.org/all/CAPDyKFrkEZDuMbGpfxismcx=vJkSSK_XbtB762+sUFocupT63w@xxxxxxxxxxxxxx/

Yes.

>    A likely cause is that the eMMC DTS node is missing the AXI clock definition.
>    Please refer to the DTS updates in the following pull request for reference:
>    https://github.com/eswincomputing/linux-next/pull/20

Ah, that one helped (;-p).

BTW: For CPU frequency scaling to actually work one may additionally need CONFIG_RISCV_SBI_CPUIDLE=y.

> 3. In addition, please check whether CONFIG_GPIO_DWAPB=y is enabled in your
>    kernel configuration. Since GMAC is built-in by default, it depends on
>    GPIO being available during early initialization.

Yes, I also changed that from =m to =y (;-p).

> Hope this helps narrow things down. Please let me know what you find.

Yes, it all works now perfectly incl. CPU frequency scaling. See [1].

Next one would be working PCIe and USB. Unfortunately, for PCIe on EBC77 one would likely need some sort of an
adapter cable/PCB. Maybe I can solder something together. Let's see...

Thank you very much!

[1] https://github.com/riscv/meta-riscv/pull/602

> Best regards,
> Zhi Li

Cheers

Marcel

> > -----原始邮件-----
> > 发件人: "Marcel Ziswiler" <marcel@xxxxxxxxxxxx>
> > 发送时间:2026-02-21 02:37:57 (星期六)
> > 收件人: lizhi2@xxxxxxxxxxxxxxxxxx, devicetree@xxxxxxxxxxxxxxx, andrew+netdev@xxxxxxx, davem@xxxxxxxxxxxxx,
> > edumazet@xxxxxxxxxx, kuba@xxxxxxxxxx, robh@xxxxxxxxxx, krzk+dt@xxxxxxxxxx, conor+dt@xxxxxxxxxx,
> > netdev@xxxxxxxxxxxxxxx, pabeni@xxxxxxxxxx, mcoquelin.stm32@xxxxxxxxx, alexandre.torgue@xxxxxxxxxxx,
> > rmk+kernel@xxxxxxxxxxxxxxx, linux-stm32@xxxxxxxxxxxxxxxxxxxxxxxxxxxx, linux-arm-kernel@xxxxxxxxxxxxxxxxxxx,
> > linux-kernel@xxxxxxxxxxxxxxx
> > 抄送: ningyu@xxxxxxxxxxxxxxxxxx, linmin@xxxxxxxxxxxxxxxxxx, pinkesh.vaghela@xxxxxxxxxxxxxx,
> > weishangjuan@xxxxxxxxxxxxxxxxxx, dongxuyang@xxxxxxxxxxxxxxxxxx
> > 主题: Re: [PATCH v2 0/2] net: stmmac: eic7700: fix EIC7700 eth1 RX sampling timing
> >
> > Hi Zhi Li
> >
> > Sorry, to steal this thread, but I do have a quick question concerning Ethernet on the EIC7700. Every time
> > I
> > enable gmac0 in the device tree my EBC7700 stops booting (e.g. SD card is no longer detected) while
> > Ethernet
> > does seem to at least get detected. This has been seen using next-20260219, stable v6.19.2 [1] as well as
> > 6.18.0-rc6 [2]. Any idea what could be going wrong?
> >
> > I admit so far I only do have one single EBC7700 at hand while waiting for further hardware to arrive.
> >
> > Thanks!
> >
> > [1] https://github.com/riscv/meta-riscv/pull/601
> > [2] https://github.com/eswincomputing/linux-next/tree/dev/test-upstream-v6.18-rc6
> >
> > Cheers
> >
> > Marcel
> >
> > [snip]