[PATCH 6.15 577/780] net: stmmac: make sure that ptp_rate is not 0 before configuring timestamping