|
@@ -1139,7 +1139,8 @@ static int ravb_set_ringparam(struct net_device *ndev,
|
|
|
if (netif_running(ndev)) {
|
|
|
netif_device_detach(ndev);
|
|
|
/* Stop PTP Clock driver */
|
|
|
- ravb_ptp_stop(ndev);
|
|
|
+ if (priv->chip_id == RCAR_GEN2)
|
|
|
+ ravb_ptp_stop(ndev);
|
|
|
/* Wait for DMA stopping */
|
|
|
error = ravb_stop_dma(ndev);
|
|
|
if (error) {
|
|
@@ -1170,7 +1171,8 @@ static int ravb_set_ringparam(struct net_device *ndev,
|
|
|
ravb_emac_init(ndev);
|
|
|
|
|
|
/* Initialise PTP Clock driver */
|
|
|
- ravb_ptp_init(ndev, priv->pdev);
|
|
|
+ if (priv->chip_id == RCAR_GEN2)
|
|
|
+ ravb_ptp_init(ndev, priv->pdev);
|
|
|
|
|
|
netif_device_attach(ndev);
|
|
|
}
|
|
@@ -1298,7 +1300,8 @@ static void ravb_tx_timeout_work(struct work_struct *work)
|
|
|
netif_tx_stop_all_queues(ndev);
|
|
|
|
|
|
/* Stop PTP Clock driver */
|
|
|
- ravb_ptp_stop(ndev);
|
|
|
+ if (priv->chip_id == RCAR_GEN2)
|
|
|
+ ravb_ptp_stop(ndev);
|
|
|
|
|
|
/* Wait for DMA stopping */
|
|
|
ravb_stop_dma(ndev);
|
|
@@ -1311,7 +1314,8 @@ static void ravb_tx_timeout_work(struct work_struct *work)
|
|
|
ravb_emac_init(ndev);
|
|
|
|
|
|
/* Initialise PTP Clock driver */
|
|
|
- ravb_ptp_init(ndev, priv->pdev);
|
|
|
+ if (priv->chip_id == RCAR_GEN2)
|
|
|
+ ravb_ptp_init(ndev, priv->pdev);
|
|
|
|
|
|
netif_tx_start_all_queues(ndev);
|
|
|
}
|