drivers: net: ipq9574: Fix print msg in edma

This patch adds the phy type and phy address also as part
of the print message during error cases which will help in
quickly identifying the port configuration.

Change-Id: I6762998e8bae8be8473d32e41b81ecc7e0b94885
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
This commit is contained in:
Selvam Sathappan Periakaruppan 2021-09-04 13:22:40 +05:30 committed by Gerrit - the friendly Code Review server
parent 24709ce492
commit 47cf0fd956

View file

@ -2033,8 +2033,8 @@ int ipq9574_edma_init(void *edma_board_cfg)
#endif
default:
if (phy_info[phy_id]->phy_type != SFP_PHY_TYPE)
printf("\nphy chip id: 0x%x id not matching for phy id: 0x%x",
phy_chip_id, phy_id);
printf("\nphy chip id: 0x%x id not matching for phy id: 0x%x with phy_type: 0x%x and phy address: 0x%x",
phy_chip_id, phy_id, phy_info[phy_id]->phy_type, phy_info[phy_id]->phy_address);
break;
}
}