On Thu, Jul 10, 2014 at 7:00 PM, Viresh Kumar [off-list ref] wrote:
quoted
quoted
+#ifdef CONFIG_PM_SLEEP
+static int spear1340_miphy_suspend(struct device *dev)
+{
+ struct spear1340_miphy_priv *priv = dev_get_drvdata(dev);
+ int ret = 0;
+
+ if (priv->mode == SATA)
+ ret = spear1340_miphy_sata_exit(priv);
Shouldn't this be spear1340_miphy_init()?
quoted
+
+ return ret;
+}
+
+static int spear1340_miphy_resume(struct device *dev)
+{
+ struct spear1340_miphy_priv *priv = dev_get_drvdata(dev);
+ int ret = 0;
+
+ if (priv->mode == SATA)
+ ret = spear1340_miphy_sata_init(priv);
And here spear1340_miphy_exit()? Why only for sata phys?
Kishon,
I had a chat with Pratyush and this is what we came to:
init and exit are rightly placed I believe. We need to initialize from
resume and exit from suspend. That's fine right? Also this was already
part of: arch/arm/mach-spear/spear1340.c which is removed with
this set.
Regarding sata and pcie, pcie suspend isn't yet implemented and
tested. So only sata :)
For delays, need to wait for mohit. Was on leave today.