[PATCH 6.2 021/173] net: stmmac: check if MAC needs to attach to a PHY