From: Viresh Kumar <viresh.kumar@linaro.org> To: Mohit KUMAR DCG <Mohit.KUMAR@st.com> Cc: Kishon Vijay Abraham I <kishon@ti.com>, Arnd Bergmann <arnd@linaro.org>, "olof@lixom.net" <olof@lixom.net>, "linux-arm-kernel@lists.infradead.org" <linux-arm-kernel@lists.infradead.org>, spear-devel <spear-devel@list.st.com>, Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>, Bjorn Helgaas <bhelgaas@google.com>, Mark Nicholson <mark@nicholnet.com>, "linux-pci@vger.kernel.org" <linux-pci@vger.kernel.org>, Pratyush ANAND <pratyush.anand@st.com> Subject: Re: [PATCH V9 2/7] phy: Add drivers for PCIe and SATA phy on SPEAr13xx Date: Mon, 14 Jul 2014 11:04:16 +0530 [thread overview] Message-ID: <CAKohpo=jRq7GaO7t7_=e-y4XFP=MaNY_GhNSGXnnkFubTMbucA@mail.gmail.com> (raw) In-Reply-To: <CAKohpo=UNwzppiTHzg0qxFBdkiR8fkwTu27OKKPTUFo5GVDKcA@mail.gmail.com> On 14 July 2014 10:54, Viresh Kumar <viresh.kumar@linaro.org> wrote: > These makes sense. Will add them. Kishon, here is how the diff looks like now: diff --git a/drivers/phy/phy-spear1340-miphy.c b/drivers/phy/phy-spear1340-miphy.c index 5e39231..8de98ad 100644 --- a/drivers/phy/phy-spear1340-miphy.c +++ b/drivers/phy/phy-spear1340-miphy.c @@ -101,10 +101,13 @@ static int spear1340_miphy_sata_init(struct spear1340_miphy_priv *priv) regmap_update_bits(priv->misc, SPEAR1340_PCM_CFG, SPEAR1340_PCM_CFG_SATA_POWER_EN, SPEAR1340_PCM_CFG_SATA_POWER_EN); + /* Wait for SATA power domain on */ msleep(20); + /* Disable PCIE SATA Controller reset */ regmap_update_bits(priv->misc, SPEAR1340_PERIP1_SW_RST, SPEAR1340_PERIP1_SW_RSATA, 0); + /* Wait for SATA reset de-assert completion */ msleep(20); return 0; @@ -121,10 +124,12 @@ static int spear1340_miphy_sata_exit(struct spear1340_miphy_priv *priv) regmap_update_bits(priv->misc, SPEAR1340_PERIP1_SW_RST, SPEAR1340_PERIP1_SW_RSATA, SPEAR1340_PERIP1_SW_RSATA); + /* Wait for SATA power domain off */ msleep(20); /* Switch off sata power domain */ regmap_update_bits(priv->misc, SPEAR1340_PCM_CFG, SPEAR1340_PCM_CFG_SATA_POWER_EN, 0); + /* Wait for SATA reset assert completion */ msleep(20); return 0;
WARNING: multiple messages have this Message-ID (diff)
From: viresh.kumar@linaro.org (Viresh Kumar) To: linux-arm-kernel@lists.infradead.org Subject: [PATCH V9 2/7] phy: Add drivers for PCIe and SATA phy on SPEAr13xx Date: Mon, 14 Jul 2014 11:04:16 +0530 [thread overview] Message-ID: <CAKohpo=jRq7GaO7t7_=e-y4XFP=MaNY_GhNSGXnnkFubTMbucA@mail.gmail.com> (raw) In-Reply-To: <CAKohpo=UNwzppiTHzg0qxFBdkiR8fkwTu27OKKPTUFo5GVDKcA@mail.gmail.com> On 14 July 2014 10:54, Viresh Kumar <viresh.kumar@linaro.org> wrote: > These makes sense. Will add them. Kishon, here is how the diff looks like now: diff --git a/drivers/phy/phy-spear1340-miphy.c b/drivers/phy/phy-spear1340-miphy.c index 5e39231..8de98ad 100644 --- a/drivers/phy/phy-spear1340-miphy.c +++ b/drivers/phy/phy-spear1340-miphy.c @@ -101,10 +101,13 @@ static int spear1340_miphy_sata_init(struct spear1340_miphy_priv *priv) regmap_update_bits(priv->misc, SPEAR1340_PCM_CFG, SPEAR1340_PCM_CFG_SATA_POWER_EN, SPEAR1340_PCM_CFG_SATA_POWER_EN); + /* Wait for SATA power domain on */ msleep(20); + /* Disable PCIE SATA Controller reset */ regmap_update_bits(priv->misc, SPEAR1340_PERIP1_SW_RST, SPEAR1340_PERIP1_SW_RSATA, 0); + /* Wait for SATA reset de-assert completion */ msleep(20); return 0; @@ -121,10 +124,12 @@ static int spear1340_miphy_sata_exit(struct spear1340_miphy_priv *priv) regmap_update_bits(priv->misc, SPEAR1340_PERIP1_SW_RST, SPEAR1340_PERIP1_SW_RSATA, SPEAR1340_PERIP1_SW_RSATA); + /* Wait for SATA power domain off */ msleep(20); /* Switch off sata power domain */ regmap_update_bits(priv->misc, SPEAR1340_PCM_CFG, SPEAR1340_PCM_CFG_SATA_POWER_EN, 0); + /* Wait for SATA reset assert completion */ msleep(20); return 0;
next prev parent reply other threads:[~2014-07-14 5:34 UTC|newest] Thread overview: 46+ messages / expand[flat|nested] mbox.gz Atom feed top 2014-07-10 7:26 [PATCH V9 0/7] ARM: SPEAr13xx: Add PCIe support Viresh Kumar 2014-07-10 7:26 ` Viresh Kumar 2014-07-10 7:26 ` [PATCH V9 1/7] pcie: Add designware wrapper driver for SPEAr13xx Viresh Kumar 2014-07-10 7:26 ` Viresh Kumar 2014-07-10 21:39 ` Bjorn Helgaas 2014-07-10 21:39 ` Bjorn Helgaas 2014-07-11 4:04 ` Viresh Kumar 2014-07-11 4:04 ` Viresh Kumar 2014-07-14 5:01 ` Viresh Kumar 2014-07-14 5:01 ` Viresh Kumar 2014-07-10 7:26 ` [PATCH V9 2/7] phy: Add drivers for PCIe and SATA phy on SPEAr13xx Viresh Kumar 2014-07-10 7:26 ` Viresh Kumar 2014-07-10 13:17 ` Kishon Vijay Abraham I 2014-07-10 13:17 ` Kishon Vijay Abraham I 2014-07-10 13:30 ` Viresh Kumar 2014-07-10 13:30 ` Viresh Kumar 2014-07-10 13:32 ` Kishon Vijay Abraham I 2014-07-10 13:32 ` Kishon Vijay Abraham I 2014-07-11 8:32 ` Kishon Vijay Abraham I 2014-07-11 8:32 ` Kishon Vijay Abraham I 2014-07-14 5:22 ` Mohit KUMAR DCG 2014-07-14 5:22 ` Mohit KUMAR DCG 2014-07-14 5:24 ` Viresh Kumar 2014-07-14 5:24 ` Viresh Kumar 2014-07-14 5:34 ` Viresh Kumar [this message] 2014-07-14 5:34 ` Viresh Kumar 2014-07-11 9:07 ` Viresh Kumar 2014-07-11 9:07 ` Viresh Kumar 2014-07-14 5:37 ` Viresh Kumar 2014-07-14 5:37 ` Viresh Kumar 2014-07-14 5:31 ` Viresh Kumar 2014-07-14 5:31 ` Viresh Kumar 2014-07-10 7:26 ` [PATCH V9 3/7] ARM: SPEAr13xx: Fix pcie clock name Viresh Kumar 2014-07-10 7:26 ` Viresh Kumar 2014-07-11 13:50 ` Mike Turquette 2014-07-11 13:50 ` Mike Turquette 2014-07-10 7:26 ` [PATCH V9 4/7] ARM: SPEAr13xx: Fix static mapping table Viresh Kumar 2014-07-10 7:26 ` Viresh Kumar 2014-07-10 7:26 ` [PATCH V9 5/7] ARM: SPEAr13xx: Add bindings and dt node for misc block Viresh Kumar 2014-07-10 7:26 ` Viresh Kumar 2014-07-10 7:26 ` [PATCH V9 6/7] ARM: SPEAr13xx: Add pcie and miphy DT nodes Viresh Kumar 2014-07-10 7:26 ` Viresh Kumar 2014-07-10 7:26 ` [PATCH V9 7/7] ARM: SPEAr13xx: Update defconfigs Viresh Kumar 2014-07-10 7:26 ` Viresh Kumar 2014-07-14 5:45 ` [PATCH V9 0/7] ARM: SPEAr13xx: Add PCIe support Viresh Kumar 2014-07-14 5:45 ` Viresh Kumar
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to='CAKohpo=jRq7GaO7t7_=e-y4XFP=MaNY_GhNSGXnnkFubTMbucA@mail.gmail.com' \ --to=viresh.kumar@linaro.org \ --cc=Mohit.KUMAR@st.com \ --cc=arnd@linaro.org \ --cc=b.zolnierkie@samsung.com \ --cc=bhelgaas@google.com \ --cc=kishon@ti.com \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-pci@vger.kernel.org \ --cc=mark@nicholnet.com \ --cc=olof@lixom.net \ --cc=pratyush.anand@st.com \ --cc=spear-devel@list.st.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.