net: fec: ptp: avoid register access when ipg clock is disabled
[firefly-linux-kernel-4.4.55.git] / drivers / net / ethernet / freescale / fec.h
index bd53caf1c1eb6b735be414aecd11a4e3ff732747..ee41d98b44b6d685ccb7a2c4f3d62bea419c25ff 100644 (file)
@@ -275,6 +275,9 @@ struct fec_enet_private {
        struct clk *clk_enet_out;
        struct clk *clk_ptp;
 
+       bool ptp_clk_on;
+       struct mutex ptp_clk_mutex;
+
        /* The saved address of a sent-in-place packet/buffer, for skfree(). */
        unsigned char *tx_bounce[TX_RING_SIZE];
        struct  sk_buff *tx_skbuff[TX_RING_SIZE];
@@ -310,6 +313,7 @@ struct fec_enet_private {
        int     mii_timeout;
        uint    phy_speed;
        phy_interface_t phy_interface;
+       struct device_node *phy_node;
        int     link;
        int     full_duplex;
        int     speed;
@@ -334,7 +338,7 @@ struct fec_enet_private {
        u32 cycle_speed;
        int hwts_rx_en;
        int hwts_tx_en;
-       struct timer_list time_keep;
+       struct delayed_work time_keep;
        struct regulator *reg_phy;
 };