]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitccbb868b6b4188a5cb5f244cd94c25cec5c5de36
treebbb83be7c1abe90a897bab5c8814a45ad3c12248
parent59954661303ea5ed6e6515e1d4e0506ea6754351
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: 29541325d5f3 ("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