This code is code from the pfe_get_gemac_if_proprties function.
This function contains the following variable declaration:
struct device_node *gem = NULL, *phy = NULL;
int size;
int ii = 0, phy_id = 0;
const u32 *addr;
const void *mac_addr;
The phy_id is set to 0 in default.
It is not a bug.
Have a great day,
Pavel Chubakov
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------