7454be528662768705ae3d80cab389b5d8983057
[openwrt/openwrt.git] /
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
5
6 1588 timer had been enabled to run at ptp_qoriq driver
7 probing stage. So removed the useless enablement.
8
9 Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
10 ---
11 drivers/net/ethernet/freescale/sdk_dpaa/dpaa_eth_common.c | 4 ----
12 1 file changed, 4 deletions(-)
13
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;
19
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));
24
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;
28
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));
33