Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0900b2ed authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: ipa: Fix to avoid NETDEV WATCHDOG warning logs"

parents c19a5b3d 840ce6c6
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -2702,6 +2702,9 @@ static int rmnet_ipa_ap_suspend(struct device *dev)

	/* Make sure that there is no Tx operation ongoing */
	netif_stop_queue(netdev);
	/* Stoppig Watch dog timer when pipe was in suspend state */
	if (del_timer(&netdev->watchdog_timer))
		dev_put(netdev);
	netif_tx_unlock_bh(netdev);
	if (ipa3_ctx->use_ipa_pm)
		ipa_pm_deactivate_sync(rmnet_ipa3_ctx->pm_hdl);
@@ -2728,8 +2731,12 @@ static int rmnet_ipa_ap_resume(struct device *dev)
	struct net_device *netdev = IPA_NETDEV();

	IPAWANDBG("Enter...\n");
	if (netdev)
	if (netdev) {
		netif_wake_queue(netdev);
		/* Starting Watch dog timer, pipe was changes to resume state */
		if (netif_running(netdev) && netdev->watchdog_timeo <= 0)
			__netdev_watchdog_up(netdev);
	}
	IPAWANDBG("Exit\n");

	return 0;