linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: jingoohan1@gmail.com (Jingoo Han)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] PCI: exynos: remove redundant code in exynos_pcie_establish_link
Date: Mon, 9 Oct 2017 12:16:33 -0400	[thread overview]
Message-ID: <000101d34119$f9e18290$eda487b0$@gmail.com> (raw)
In-Reply-To: <CAJKOXPeC=cS2cvAXHrKuK5F4tEqH6PppwYkxC+Z8+5D--48CAg@mail.gmail.com>

On Monday, October 9, 2017 10:44 AM, Krzysztof Kozlowski wrote:
> 
> On Mon, Oct 9, 2017 at 4:14 PM, Pankaj Dubey <pankaj.dubey@samsung.com>
> wrote:
> > From: Anvesh Salveru <anvesh.s@samsung.com>
> >
> > In exynos_pcie_establish_link if driver is not using generic phy,
> > we are resetting PHY twice, which is redundant, so this patch removes
> 
> Hi Pankaj,
> 
> This lacks the information why it is redundant.

I think so, too.

Did you test this code on some boards with Exynos PCIe?
Or did hardware engineers confirm this?
Please add more information on this patch.

Best regards,
Jingoo Han

> 
> > repeated lines of code for PHY reset.
> >
> > Signed-off-by: Anvesh Salveru <anvesh.s@samsung.com>
> 
> Your Signed-off-by is needed here.
> 
> Best regards,
> Krzysztof
> 
> > ---
> >  drivers/pci/dwc/pci-exynos.c | 7 -------
> >  1 file changed, 7 deletions(-)
> >
> > diff --git a/drivers/pci/dwc/pci-exynos.c b/drivers/pci/dwc/pci-exynos.c
> > index 5596fde..85d2f4b 100644
> > --- a/drivers/pci/dwc/pci-exynos.c
> > +++ b/drivers/pci/dwc/pci-exynos.c
> > @@ -423,13 +423,6 @@ static int exynos_pcie_establish_link(struct
> exynos_pcie *ep)
> >                 exynos_pcie_deassert_phy_reset(ep);
> >                 exynos_pcie_power_on_phy(ep);
> >                 exynos_pcie_init_phy(ep);
> > -
> > -               /* pulse for common reset */
> > -               exynos_pcie_writel(ep->mem_res->block_base, 1,
> > -                                       PCIE_PHY_COMMON_RESET);
> > -               udelay(500);
> > -               exynos_pcie_writel(ep->mem_res->block_base, 0,
> > -                                       PCIE_PHY_COMMON_RESET);
> >         }
> >
> >         /* pulse for common reset */
> > --
> > 2.7.4
> >

  reply	other threads:[~2017-10-09 16:16 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20171009141438epcas2p4ead7e2f2d1af7e0950f2c026e3a9943b@epcas2p4.samsung.com>
2017-10-09 14:14 ` [PATCH] PCI: exynos: remove redundant code in exynos_pcie_establish_link Pankaj Dubey
2017-10-09 14:43   ` Krzysztof Kozlowski
2017-10-09 16:16     ` Jingoo Han [this message]
2017-10-09 16:20     ` Jingoo Han
2017-10-10 13:46       ` Pankaj Dubey
2017-12-21 16:31         ` Jingoo Han
2017-12-28  9:50           ` Pankaj Dubey
2017-12-28  9:58             ` Jaehoon Chung
2017-12-28 10:29               ` Pankaj Dubey
2017-10-10 13:41     ` Pankaj Dubey

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='000101d34119$f9e18290$eda487b0$@gmail.com' \
    --to=jingoohan1@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /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: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).