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

Commit 3f655909 authored by Grygorii Strashko's avatar Grygorii Strashko Committed by David S. Miller
Browse files

drivers: net: davinci_mdio: remove pm runtime calls from suspend callbacks



PM runtime is disabled when Davinci MDIO .suspend_late() and
.resume_early() callbacks are called. As result, any PM runtime calls here will
be just a nop and can be removed.

Signed-off-by: default avatarGrygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 909892a6
Loading
Loading
Loading
Loading
+0 −3
Original line number Original line Diff line number Diff line
@@ -436,7 +436,6 @@ static int davinci_mdio_suspend(struct device *dev)


	data->suspended = true;
	data->suspended = true;
	spin_unlock(&data->lock);
	spin_unlock(&data->lock);
	pm_runtime_put_sync(data->dev);


	/* Select sleep pin state */
	/* Select sleep pin state */
	pinctrl_pm_select_sleep_state(dev);
	pinctrl_pm_select_sleep_state(dev);
@@ -451,8 +450,6 @@ static int davinci_mdio_resume(struct device *dev)
	/* Select default pin state */
	/* Select default pin state */
	pinctrl_pm_select_default_state(dev);
	pinctrl_pm_select_default_state(dev);


	pm_runtime_get_sync(data->dev);

	spin_lock(&data->lock);
	spin_lock(&data->lock);
	/* restart the scan state machine */
	/* restart the scan state machine */
	__davinci_mdio_reset(data);
	__davinci_mdio_reset(data);