All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lucas Stach <l.stach@pengutronix.de>
To: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>,
	Leonard Crestez <leonard.crestez@nxp.com>
Cc: Trent Piepho <tpiepho@impinj.com>,
	"stefan@agner.ch" <stefan@agner.ch>,
	"shawnguo@kernel.org" <shawnguo@kernel.org>,
	"andrew.smirnov@gmail.com" <andrew.smirnov@gmail.com>,
	Richard Zhu <hongxing.zhu@nxp.com>,
	"linux-pci@vger.kernel.org" <linux-pci@vger.kernel.org>,
	dl-linux-imx <linux-imx@nxp.com>
Subject: Re: [PATCH] PCI: imx6: Simplify Kconfig depends on
Date: Fri, 05 Jul 2019 17:41:05 +0200	[thread overview]
Message-ID: <1562341265.2321.21.camel@pengutronix.de> (raw)
In-Reply-To: <20190430142249.GC18742@e121166-lin.cambridge.arm.com>

Am Dienstag, den 30.04.2019, 15:22 +0100 schrieb Lorenzo Pieralisi:
> On Fri, Apr 12, 2019 at 06:20:53PM +0000, Leonard Crestez wrote:
> > On 4/12/2019 9:03 PM, Trent Piepho wrote:
> > > On Fri, 2019-04-12 at 17:56 +0000, Leonard Crestez wrote:
> > > > On 3/26/19 8:19 PM, Lorenzo Pieralisi wrote:
> > > > > On Mon, Mar 11, 2019 at 06:59:28PM +0000, Leonard Crestez wrote:
> > > > > > In theory this driver can be used on imx6sx without enabling support for
> > > > > > imx6q or imx7d but the "depends on" condition doesn't allow that.
> > > > > > 
> > > > > > Instead of making the condition even longer just make it depend on
> > > > > > "ARCH_MXC || COMPILE_TEST" instead.
> > > > > > 
> > > > > > > > > > > > Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
> > > > > > ---
> > > > > >    drivers/pci/controller/dwc/Kconfig | 2 +-
> > > > > >    1 file changed, 1 insertion(+), 1 deletion(-)
> > > > > > 
> > > > > > diff --git a/drivers/pci/controller/dwc/Kconfig b/drivers/pci/controller/dwc/Kconfig
> > > > > > index 6ea74b1c0d94..21747fd0e799 100644
> > > > > > --- a/drivers/pci/controller/dwc/Kconfig
> > > > > > +++ b/drivers/pci/controller/dwc/Kconfig
> > > > > > @@ -88,11 +88,11 @@ config PCI_EXYNOS
> > > > > >            depends on PCI_MSI_IRQ_DOMAIN
> > > > > >            select PCIE_DW_HOST
> > > > > > 
> > > > > >    config PCI_IMX6
> > > > > >            bool "Freescale i.MX6/7/8 PCIe controller"
> > > > > > - depends on SOC_IMX6Q || SOC_IMX7D || (ARM64 && ARCH_MXC) || COMPILE_TEST
> > > > > > + depends on ARCH_MXC || COMPILE_TEST
> > > > > >            depends on PCI_MSI_IRQ_DOMAIN
> > > > > >            select PCIE_DW_HOST
> > > > > 
> > > > > If Lucas does not spot any problem with this patch I would request his
> > > > > ACK to merge it, thanks.
> > > > 
> > > > Lucas: Can you please ack this? It's a bit old but applies cleanly and
> > > > resend shouldn't be required.
> > > 
> > > The IMX7s does not have a PCI-e controller.  The IMX7d does have one,
> > > but not the "s".
> > > 
> > > Enabling the controller driver on an IMX SoC that doesn't have it is
> > > not exactly the end of the world and having to keep adding new IMX SOCs
> > > to the list here is annoying.  So IMHO, it's ok to make this change
> > > even if the controller is allowed on a superset of the SoCs that have
> > > it.
> > 
> > There is no separate config option for IMX7S and I don't think it will 
> > be ever added. There is however a CONFIG_SOC_IMX6SX.
> > 
> > There were attempts to add "depends on"/"selected by" IMX8MQ to various 
> > drivers but arm64 maintainers disagreed. This is why this patch fixes 
> > the "depends on" list for 6sx pcie by dropping per-SOC logic on 32-bit 
> > arm as well.
> > 
> > People who want very small kernels for their boards will likely fiddle 
> > with their specific defconfig anyway so maybe complex logic in Kconfig 
> > is not very helpful.
> 
> My request still stands, please let me know.

I've acked the resend, but that one doesn't show up in patchwork for
some reason, so:

Acked-by: Lucas Stach <l.stach@pengutronix.de>

Regards,
Lucas


  reply	other threads:[~2019-07-05 15:41 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-11 18:59 [PATCH] PCI: imx6: Simplify Kconfig depends on Leonard Crestez
2019-03-26 18:19 ` Lorenzo Pieralisi
2019-04-12 17:56   ` Leonard Crestez
2019-04-12 18:03     ` Trent Piepho
2019-04-12 18:20       ` Leonard Crestez
2019-04-30 14:22         ` Lorenzo Pieralisi
2019-07-05 15:41           ` Lucas Stach [this message]
2019-07-05 15:51 ` Lorenzo Pieralisi

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=1562341265.2321.21.camel@pengutronix.de \
    --to=l.stach@pengutronix.de \
    --cc=andrew.smirnov@gmail.com \
    --cc=hongxing.zhu@nxp.com \
    --cc=leonard.crestez@nxp.com \
    --cc=linux-imx@nxp.com \
    --cc=linux-pci@vger.kernel.org \
    --cc=lorenzo.pieralisi@arm.com \
    --cc=shawnguo@kernel.org \
    --cc=stefan@agner.ch \
    --cc=tpiepho@impinj.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: 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.