Thread (23 messages) read the whole thread 23 messages, 5 authors, 2014-07-14
STALE4399d

Revision v9 of 8 in this series.

Revisions (8)
  1. v9 [diff vs current]
  2. v9 [diff vs current]
  3. v9 [diff vs current]
  4. v9 [diff vs current]
  5. v9 [diff vs current]
  6. v9 current
  7. v9 [diff vs current]
  8. v9 [diff vs current]

[PATCH V9 2/7] phy: Add drivers for PCIe and SATA phy on SPEAr13xx

From: viresh.kumar@linaro.org (Viresh Kumar)
Date: 2014-07-11 09:07:56
Also in: linux-pci

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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help