net: stmmac: configure PTP clock source prior to PTP initialization
authorMohammad Athari Bin Ismail <mohammad.athari.ismail@intel.com>
Wed, 26 Jan 2022 09:47:22 +0000 (17:47 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Jan 2022 13:45:56 +0000 (13:45 +0000)
commit94c82de43e01ef5747a95e4a590880de863fe423
treebbb83be7c1abe90a897bab5c8814a45ad3c12248
parent36268983e90316b37000a005642af42234dabb36
net: stmmac: configure PTP clock source prior to PTP initialization

For Intel platform, it is required to configure PTP clock source prior PTP
initialization in MAC. So, need to move ptp_clk_freq_config execution from
stmmac_ptp_register() to stmmac_init_ptp().

Fixes: 76da35dc99af ("stmmac: intel: Add PSE and PCH PTP clock source selection")
Cc: <stable@vger.kernel.org> # 5.15.x
Signed-off-by: Mohammad Athari Bin Ismail <mohammad.athari.ismail@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
drivers/net/ethernet/stmicro/stmmac/stmmac_ptp.c