Skip to main content
Visitor II
August 26, 2025
Question

SXGMAC Ethernet Driver Query

  • August 26, 2025
  • 6 replies
  • 633 views

Hi

I am using Marvell Ethernet Phy(mv88q2220) in our project,i have integrated my Marvell driver into SDK and it is probing as well, we are using sxgmac driver for mac, while i am trying to initialize the eth0 interface i am facing issues related to validation of phy and phy is not able to attach.I have checked the phy-mode also it is configured correctly. I am attaching the error  logs also, Can anyone suggest what could the potential cause of this issue ?

Error Logs:

root@sadk:~# ifconfig eth0 192.168.10.1 up
SIOCSIFFLAGS: Invalid argument
SIOCSIFFLAGS: Invalid argument

Dmesg Logs:

[   55.096204] sxgmac 16cc8000.ethernet eth0: validation of  with support 00000000,00000000,00006000 and advertisement 00000000,00000000,00000000 failed: -EINVAL
[   55.096449] sxgmac 16cc8000.ethernet eth0: __stmmac_open: Cannot attach to PHY (error: -22)
[   55.364867] sxgmac 16cc8000.ethernet: is_dsp_running changed to true
[   55.365900] sxgmac 16cc8000.ethernet: MAC address filter register failure
[   55.684876] sxgmac 16cc8000.ethernet: is_dsp_running changed to false

 

Thanks & Regards

Uthaya

    This topic has been closed for replies.

    6 replies

    ST Employee
    August 28, 2025

    Hello,

    I suspect it's related to the PHY state. Can you check that the PHY is powered correctly at that point. Have you given enough time for the PHY to initialize (should be specified in spec)? Try to add a delay at the end of its configuration.

     

    Best regards,

    Gatien

    ST Employee
    August 28, 2025

    Also, why are you using sxgmac?

    UthayaAuthor
    Visitor II
    August 28, 2025

    Hi GatienC

    We are using sxgmac for mac driver(ethernet sub-controller, Synopsys IP Core),i have added a TXCLK internal delay for 1.3 ns and tried but i am facing the same issue.

    ST Employee
    August 29, 2025

    Hi,

     

    What exactly is you platform please? MPU?

    Also, the delay I was mentioning is the "ramp-up" delay after powering the PHY up. PHYs take some time before being fully functional (usually some us).

    Regards,
    Gatien

    UthayaAuthor
    Visitor II
    August 29, 2025

    Hi,

    I am using samsung exynos v920 SOC  and i will try with ramp-up delay also.

     

    UthayaAuthor
    Visitor II
    September 1, 2025

    Hi,

    I have tried with ramp-up delay but still facing same issue. i have added a delay in driver before probing but it didn't works.

    Thanks

    Uthaya M

    UthayaAuthor
    Visitor II
    September 15, 2025

    Hi 

    Any suggestion from anyone, it would be helpful

    Thanks & Regards

    Uthaya M

    UthayaAuthor
    Visitor II
    September 15, 2025

    Hi 

    Any suggestion from anyone, it would be helpful

    Thanks & Regards

    Uthaya M

    Technical Moderator
    September 15, 2025

    Hello @Uthaya ,
    This forum is dedicated for STM32 product, and we cannot support other SoC outside from the ones provided by STMicroelectronics.

    I advise you to contact the dedicated support for your product.

    Kind regards,
    Erwan.