Let the EQoS in imx8mp handle fixed-phy too.
Without that patch it lost track to the node to scan speed and duplex. Patch was created by Marek Vasut, just tested by me. Signed-off-by: Elmar Psilog <epsi@gmx.de> Reviewed-by: Marek Vasut <marex@denx.de>
This commit is contained in:
@@ -794,9 +794,21 @@ static int eqos_start(struct udevice *dev)
|
|||||||
*/
|
*/
|
||||||
if (!eqos->phy) {
|
if (!eqos->phy) {
|
||||||
int addr = -1;
|
int addr = -1;
|
||||||
|
ofnode fixed_node;
|
||||||
|
|
||||||
|
if (IS_ENABLED(CONFIG_PHY_FIXED)) {
|
||||||
|
fixed_node = ofnode_find_subnode(dev_ofnode(dev),
|
||||||
|
"fixed-link");
|
||||||
|
if (ofnode_valid(fixed_node))
|
||||||
|
eqos->phy = fixed_phy_create(dev_ofnode(dev));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!eqos->phy) {
|
||||||
addr = eqos_get_phy_addr(eqos, dev);
|
addr = eqos_get_phy_addr(eqos, dev);
|
||||||
eqos->phy = phy_connect(eqos->mii, addr, dev,
|
eqos->phy = phy_connect(eqos->mii, addr, dev,
|
||||||
eqos->config->interface(dev));
|
eqos->config->interface(dev));
|
||||||
|
}
|
||||||
|
|
||||||
if (!eqos->phy) {
|
if (!eqos->phy) {
|
||||||
pr_err("phy_connect() failed");
|
pr_err("phy_connect() failed");
|
||||||
goto err_stop_resets;
|
goto err_stop_resets;
|
||||||
|
Reference in New Issue
Block a user