1 From 988cd7a6bcbb738d6ad334a94fda07c965da862e Mon Sep 17 00:00:00 2001
2 From: Yangbo Lu <yangbo.lu@nxp.com>
3 Date: Wed, 5 Dec 2018 16:31:13 +0800
4 Subject: [PATCH] sdk_dpaa: remove useless 1588 timer enablement
6 1588 timer had been enabled to run at ptp_qoriq driver
7 probing stage. So removed the useless enablement.
9 Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
11 drivers/net/ethernet/freescale/sdk_dpaa/dpaa_eth_common.c | 4 ----
12 1 file changed, 4 deletions(-)
14 --- a/drivers/net/ethernet/freescale/sdk_dpaa/dpaa_eth_common.c
15 +++ b/drivers/net/ethernet/freescale/sdk_dpaa/dpaa_eth_common.c
16 @@ -340,8 +340,6 @@ static void dpa_ts_tx_enable(struct net_
17 struct dpa_priv_s *priv = netdev_priv(dev);
18 struct mac_device *mac_dev = priv->mac_dev;
20 - if (mac_dev->fm_rtc_enable)
21 - mac_dev->fm_rtc_enable(get_fm_handle(dev));
22 if (mac_dev->ptp_enable)
23 mac_dev->ptp_enable(mac_dev->get_mac_handle(mac_dev));
25 @@ -373,8 +371,6 @@ static void dpa_ts_rx_enable(struct net_
26 struct dpa_priv_s *priv = netdev_priv(dev);
27 struct mac_device *mac_dev = priv->mac_dev;
29 - if (mac_dev->fm_rtc_enable)
30 - mac_dev->fm_rtc_enable(get_fm_handle(dev));
31 if (mac_dev->ptp_enable)
32 mac_dev->ptp_enable(mac_dev->get_mac_handle(mac_dev));