All of lore.kernel.org
 help / color / mirror / Atom feed
From: Minghuan.Lian@freescale.com (Lian M.H.)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2] PCI: layerscape: Add PCIe support for LS1043a and LS2080a
Date: Tue, 13 Oct 2015 01:37:16 +0000	[thread overview]
Message-ID: <DM2PR0301MB06407A23952B95E2244C8831E2300@DM2PR0301MB0640.namprd03.prod.outlook.com> (raw)
In-Reply-To: <20151012152656.GB29221@localhost>

Hi Bjorn,

Thanks for your comments
I will split the patch.

Thanks,
Minghuan

> -----Original Message-----
> From: Bjorn Helgaas [mailto:helgaas at kernel.org]
> Sent: Monday, October 12, 2015 11:27 PM
> To: Arnd Bergmann <arnd@arndb.de>
> Cc: Lian Minghuan-B31939 <Minghuan.Lian@freescale.com>;
> linux-pci at vger.kernel.org; linux-arm-kernel at lists.infradead.org; Zang
> Roy-R61911 <tie-fei.zang@freescale.com>; Hu Mingkai-B21284
> <Mingkai.Hu@freescale.com>; Yoder Stuart-B08248
> <stuart.yoder@freescale.com>; Li Yang-Leo-R58472 <LeoLi@freescale.com>;
> Bjorn Helgaas <bhelgaas@google.com>; Jingoo Han <jg1.han@samsung.com>;
> Zhou Wang <wangzhou1@hisilicon.com>
> Subject: Re: [PATCH v2] PCI: layerscape: Add PCIe support for LS1043a and
> LS2080a
> 
> On Mon, Oct 12, 2015 at 02:36:29PM +0200, Arnd Bergmann wrote:
> > On Wednesday 07 October 2015 12:57:25 Bjorn Helgaas wrote:
> > > > diff --git a/drivers/pci/host/Kconfig b/drivers/pci/host/Kconfig
> > > > index ae873be..38fe8a8 100644
> > > > --- a/drivers/pci/host/Kconfig
> > > > +++ b/drivers/pci/host/Kconfig
> > > > @@ -105,7 +105,7 @@ config PCI_XGENE_MSI
> > > >
> > > >  config PCI_LAYERSCAPE
> > > >       bool "Freescale Layerscape PCIe controller"
> > > > -     depends on OF && ARM
> > > > +     depends on OF && (ARM || ARM64)
> > >
> > > It seems like there are a couple things going on here, and I wonder
> > > if you can split them out into separate patches.
> > >
> > > 1) Making this work on ARM64 as well as on ARM.  This may be of
> > > interest for other DesignWare-based drivers, so if you split this
> > > out, maybe it would be a useful template for converting the other
> > > drivers, too.
> >
> > The Kconfig change apparently made it into linux-next now, but it
> > doesn't actually build on arm64, because the dependency that was
> > mentioned in the cover letter [0] is not there.
> > ...
> > [0] This patch is based on v4.3-rc1 and [PATCH v9 0/6]
> > PCI: hisi: Add PCIe host support for HiSilicon SoC Hip05 patchset from
> > Zhou Wang.
> 
> Oops, my fault.  I read that as "this patch is derived from, e.g., it a newer
> version of, the HiSilicon patchset."  But that's obviously a silly way to read it.
> I re-did the merge without the Layerscape patch and repushed it to my "next"
> branch.
> 
> I'll work on Zhou's series, then revisit Minghuan's patch(es).  I'm hoping the
> Layerscape patch can be split up a bit, both to split out the ARM64 config
> change and to make a cleaner "LS1043a and LS2080a"
> support patch.  The current patch changes several things that are not
> obviously directly related to LS1043a and LS2080a.  It would be ideal to have a
> series of things like:
> 
>   - add ARM64 build support (maybe just the Kconfig change)
>   - make the ls_pcie_probe() changes that are apparently generic
>     across all the LS devices
>   - add driver data to lc_pcie_of_match[] (this wouldn't change any
>     behavior at all; it would just add the ls1021_drvdata that works
>     for the already-supported devices)
>   - add ls1032_drvdata and ls2080_drvdata for the new devices
>   - add the "msi-parent" diagnostic (this seems to be basically new
>     functionality that applies to all devices, not just the new ones)
> 
> That way, each individual change would be easier to review.
> 
> Bjorn

      reply	other threads:[~2015-10-13  1:37 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-17  9:13 [PATCH v2] PCI: layerscape: Add PCIe support for LS1043a and LS2080a Minghuan Lian
2015-09-17  9:13 ` Minghuan Lian
2015-10-07 17:57 ` Bjorn Helgaas
2015-10-07 17:57   ` Bjorn Helgaas
2015-10-11 19:10   ` Bjorn Helgaas
2015-10-11 19:10     ` Bjorn Helgaas
2015-10-12  1:47     ` Duc Dang
2015-10-12  2:53       ` Lian M.H.
2015-10-12 23:02         ` Duc Dang
2015-10-12  7:15     ` Thomas Petazzoni
2015-10-12  7:15       ` Thomas Petazzoni
2015-10-12 12:36   ` Arnd Bergmann
2015-10-12 12:36     ` Arnd Bergmann
2015-10-12 15:26     ` Bjorn Helgaas
2015-10-12 15:26       ` Bjorn Helgaas
2015-10-13  1:37       ` Lian M.H. [this message]

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=DM2PR0301MB06407A23952B95E2244C8831E2300@DM2PR0301MB0640.namprd03.prod.outlook.com \
    --to=minghuan.lian@freescale.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 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.