Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp1719698ybg; Thu, 30 Jul 2020 00:23:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw1p4BFqGEdYrYCFVDZBBjN4jZIlv/KLxfi30+V2XXme3vRFRtA3UBWKnEHgDblMKoHnMVu X-Received: by 2002:a17:907:20f5:: with SMTP id rh21mr1323941ejb.194.1596093783247; Thu, 30 Jul 2020 00:23:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596093783; cv=none; d=google.com; s=arc-20160816; b=a/OwUeI6cXQP0k6K6kVBoJDLuGnBpyizAaIXvY52OpWlFRnaH7OxCitSlq4ldS06dH qXiaDo0Q9Tdg4HuT+x+uUm0nQifkg2fzmnqhivxl4oSrHWSt30DRJcMtX6FLpeLrjzPK ylY/1rmCEaMl6AVzRcvXhmVdoBVNHcdtTM/bCoyT7md1dvI+SLLH8hXm3E10lzhQPTjV QPuaFkYRkhrUw78ndMA7VQg804Zxgd9SbTXys3wu41VQN+rwzqRDu84b2w3Kzthj0zMO mJCcKw6r+0nvtffOz+z8Gc7LaI8k9QZ7S/7JKstUR/MBn1cfyzPIEPttivwT/cEE3Gmc 53Sw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id; bh=ho73hLrQ4RaP0Hu1V+trY1J8eH8Fq1oHfWo8cHK/dis=; b=qWxrDt/j2B3yuf8nLLaYoPioz6o8pSQvM6vRvmvgjOm+hInQQgcabXslUi9myFi5Zf 2VXRQr/xnlQkxuI0EeiRhqjfgHjZxgqlyYLA2vh5HbJG8XwVoQGm/JjhnVfyk8Y4kwjq ttYlSw6xcKNDHEoKVQ6v+MG1pJxfCGBVrouciRIE8OSKeEcMg7EkgLaFdkll8BuKnGF4 1G1QHSQtGkBWBuPMPNwMfXjL1qqq32oGQmT6GLfkqJidffZx6WE78rVvHKz4tBt+iCt6 OP5fDF3GVeUNX39fRkajI3nAjaK7BJTpny2OqbJPSL0KT0Cxr1D6ydViXuqMGZqt5ZPn w4bA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s15si2768951edy.237.2020.07.30.00.22.40; Thu, 30 Jul 2020 00:23:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728873AbgG3HTo convert rfc822-to-8bit (ORCPT + 99 others); Thu, 30 Jul 2020 03:19:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45430 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728827AbgG3HTo (ORCPT ); Thu, 30 Jul 2020 03:19:44 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F5E7C061794 for ; Thu, 30 Jul 2020 00:19:44 -0700 (PDT) Received: from lupine.hi.pengutronix.de ([2001:67c:670:100:3ad5:47ff:feaf:1a17] helo=lupine) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k12qZ-0000ZT-AD; Thu, 30 Jul 2020 09:19:23 +0200 Received: from pza by lupine with local (Exim 4.92) (envelope-from ) id 1k12qW-0003Ph-MV; Thu, 30 Jul 2020 09:19:20 +0200 Message-ID: <0b541063e66e29b1dd0dad70f77a18a8591f224b.camel@pengutronix.de> Subject: Re: [PATCH V3 3/3] pci: imx: Select RESET_IMX7 by default From: Philipp Zabel To: Anson Huang , Rob Herring Cc: Catalin Marinas , Will Deacon , Lorenzo Pieralisi , Bjorn Helgaas , Shawn Guo , Sascha Hauer , Sascha Hauer , Fabio Estevam , Bjorn Andersson , Leo Li , Vinod , Geert Uytterhoeven , Olof Johansson , Andrew Murray , Thierry Reding , Vidya Sagar , Kunihiko Hayashi , Jonathan Chocron , Dilip Kota , Krzysztof Kozlowski , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , "linux-kernel@vger.kernel.org" , PCI , dl-linux-imx Date: Thu, 30 Jul 2020 09:19:20 +0200 In-Reply-To: References: <1595254921-26050-1-git-send-email-Anson.Huang@nxp.com> <1595254921-26050-3-git-send-email-Anson.Huang@nxp.com> <0cdecff564215de6711ca04e063fa696a160fad9.camel@pengutronix.de> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.30.5-1.1 MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2001:67c:670:100:3ad5:47ff:feaf:1a17 X-SA-Exim-Mail-From: p.zabel@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Anson, On Thu, 2020-07-30 at 02:11 +0000, Anson Huang wrote: > Hi, Philipp/Rob > > > Subject: Re: [PATCH V3 3/3] pci: imx: Select RESET_IMX7 by default > > > > On Wed, 2020-07-29 at 09:26 -0600, Rob Herring wrote: > > > On Mon, Jul 20, 2020 at 8:26 AM Anson Huang > > wrote: > > > > i.MX7 reset driver now supports module build and it is no longer > > > > built in by default, so i.MX PCI driver needs to select it > > > > explicitly due to it is NOT supporting loadable module currently. > > > > > > > > Signed-off-by: Anson Huang > > > > --- > > > > No change. > > > > --- > > > > drivers/pci/controller/dwc/Kconfig | 1 + > > > > 1 file changed, 1 insertion(+) > > > > > > > > diff --git a/drivers/pci/controller/dwc/Kconfig > > > > b/drivers/pci/controller/dwc/Kconfig > > > > index 044a376..bcf63ce 100644 > > > > --- a/drivers/pci/controller/dwc/Kconfig > > > > +++ b/drivers/pci/controller/dwc/Kconfig > > > > @@ -90,6 +90,7 @@ config PCI_EXYNOS > > > > > > > > config PCI_IMX6 > > > > bool "Freescale i.MX6/7/8 PCIe controller" > > > > + select RESET_IMX7 > > > > > > This will break as select will not cause all of RESET_IMX7's > > > dependencies to be met. It also doesn't scale. Are you going to do the > > > same thing for clocks, pinctrl, gpio, etc.? > > > > > > You should make the PCI driver work as a module. > > > > Oh, also PCI_IMX6 is used on (surprise) i.MX6, which doesn't need > > RESET_IMX7 at all. > > > > How about hiding the RESET_IMX7 option and setting it default y if > > PCI_IMX6 is enabled, as an interim solution? > > Like below, RESET_IMX7 is already default y when SOC_IMX7D, now added PCI_IMX6, > let me know if it is OK for you, then I will send new patch for review. > > +++ b/drivers/reset/Kconfig > @@ -68,7 +68,7 @@ config RESET_IMX7 > tristate "i.MX7/8 Reset Driver" I was thinking something like tristate "i.MX7/8 Reset Driver" if COMPILE_TEST || !PCI_IMX6 > depends on HAS_IOMEM > depends on SOC_IMX7D || (ARM64 && ARCH_MXC) || COMPILE_TEST > - default y if SOC_IMX7D > + default y if (SOC_IMX7D || PCI_IMX6) Yes, although without the above I think it could still be disabled manually or via oldconfig. regards Philipp