|
@@ -459,15 +459,12 @@ static int davinci_mdio_suspend(struct device *dev)
|
|
static int davinci_mdio_resume(struct device *dev)
|
|
static int davinci_mdio_resume(struct device *dev)
|
|
{
|
|
{
|
|
struct davinci_mdio_data *data = dev_get_drvdata(dev);
|
|
struct davinci_mdio_data *data = dev_get_drvdata(dev);
|
|
- u32 ctrl;
|
|
|
|
|
|
|
|
pm_runtime_get_sync(data->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 */
|
|
- ctrl = __raw_readl(&data->regs->control);
|
|
|
|
- ctrl |= CONTROL_ENABLE;
|
|
|
|
- __raw_writel(ctrl, &data->regs->control);
|
|
|
|
|
|
+ __davinci_mdio_reset(data);
|
|
|
|
|
|
data->suspended = false;
|
|
data->suspended = false;
|
|
spin_unlock(&data->lock);
|
|
spin_unlock(&data->lock);
|