[U-Boot] Disabling Autonegotiation

Hi , I am trying to disable auto negotiation in U-boot. I modified drivers/net/phy/phy.c
setting dev->autoneg = AUTONEG_DISABLE;.
Autonegotion is disabled but u-boot however waits for autonegotiation to complete in the function "genphy_update_link( )"
Modifying the values of BMCR_ANENABLE BMSR_ANEGCAPABLE in include/linux/mii.h resolves the issue. Since am new to u-boot programming wanted to know if modifying these macros is advisable or if there is a better approach to this issue.
TIA

Dear priyanka sharma,
In message CAKynAoevduG20RKAk=4rqa7awBoVzKEXwa+c2iyPG4gXbE-5Ww@mail.gmail.com you wrote:
I am trying to disable auto negotiation in U-boot.
May I ask why exactly you want to do this? It is almost always a very bad idea to disable autonegotiation. Usually there are other ways to solve the problem, but we cannot help you because you did not mention what the problem is which you are trying to work around.
Best regards,
Wolfgang Denk
participants (2)
-
priyanka sharma
-
Wolfgang Denk