This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

PLY led management

Hello

i want to have the special behaviour for PHY 1118 leds (LED[1] Blink Activity; Off No-Activity,and LED[0]  On Link; Off No link). I found that m88e1121_config_aneg is call in the kernel (ti-sdk-am335x-evm-05.06.00.00\board-support\linux-3.2.0-psp05.06.00.00\drivers\net\phy\marvell.c).

so i progammed at the end of this function :

    err = phy_write(phydev, MII_MARVELL_PHY_PAGE, 0x0003);
    if (err < 0)
        return err;

    pr_info("UCR : Adjust PHY 1118 leds\r\n");
    //reg 16=0x10 page 3 : LED[1]  16_3.7:4  = 0100 ( Blink Activity; Off No-Activity)  LED[0] 16_3.3 :0 = 0000 ( On Link; Off No link)
    err = phy_write(phydev, 0x10, 0x0040);
    if (err < 0)
        return err;

    //reg 17=0x11 page 3 : 17_3.3 :2 = 10 (sortie haute impédance quand il n’y a pas de contrôle) 17_3.1 :0 = 10 (sortie haute impédance quand il n’y a pas de contrôle)
    err = phy_write(phydev, 0x11, 0x000A);
    if (err < 0)
        return err;

But the behaviour is not the one expected. What may happen , another function is called that kill my programmation ?

best regards