In some situations a PL PCS PMA IP connected to the PS GEM might not to link up when ifconfig down/up is done.
The PS GEM has runtime clock handling which can result in the IP, which shares this clock, requiring reconfiguration.
To work around this issue, you will need to have a GPIO reset in the design and also to do a PHY reset in macb_open.
You can apply the attached Linux kernel patches to do this.
The PHY framework allows you to reset the PHY through an API, with a check for a PHY flag requiring reset.
You will need to enable this flag in the PCS PMA driver and request a PHY reset in the macb driver.
The API returns 1 in case of a successful reset and this is checked to reinitialize the PHY.
|Name||File Size||File Type|