Received: by 2002:a05:6a10:87d6:0:0:0:0 with SMTP id g22csp1001734pxr; Mon, 11 Apr 2022 12:27:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyFQ2phvyUN5gBlLOGInP2B++JzAbA8erLXVFxO3x4rOMC66+HqFs98Xmxbzv21KSa5Bmat X-Received: by 2002:a05:6402:42c6:b0:41c:defd:24d1 with SMTP id i6-20020a05640242c600b0041cdefd24d1mr35657202edc.326.1649705247885; Mon, 11 Apr 2022 12:27:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649705247; cv=none; d=google.com; s=arc-20160816; b=f1fde4vxSUdC3jbXIp5QilGBGmvYZASefaN52HQZusbDWJAMgZEBhFRQAhhNTDI3eT z++frPaGcb7+Zh9yM63eXdSDN4wtHyYdlpls27pVPS24Wj3dGdXhOUKLA0HvCsUFk5II 9LCaW+AFCmap64UMvtid7eYlJGRwt9iahp8OmzaEwAj50xz4BCK6+4c4r4oJP7tqU/1T q6+NrFzoQ5ZOJC3oJbsioivXusCrYC/IrS2/l6jxan4jPSP4z4cxtyFyJ8GRNTcqEfoK Bq/u4n/OXklMk+ZHfDa9MY62yv5fue7MHflNzZsIg9iruIi68/J7uFOIituiN0unkGeg Ta1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=Bprm9/55wJIgpW8G7cnLhrlmptoiLxbDmhWmaxXfBOs=; b=jTLnJQsFtixL+AJtutgMrIYjGEqN2AOitWgMwSIFo9+YmNXXRXaqxDCQX9PwEQvpvC QAUgwLUT9xMKwDD5bY0BPLKPk9Vum2LWJpG4eM4XybMNjTtq/tnQE7rFNAk6Nb/iHTyV ZgWAa7VYeppKZoxLRz2QRDp9nZ/t1cPYcNwRhUVVmro5AlgDAe4b4Yc5dgGme4NzxxSt smCIxNwrLeYfVzE8cMAZqiduSNdAv+qCWIJiyLtasy+8rsC8tTfjH4lh4cW3mnRxguVW gyI+l1HLcizATkhBCNhnRYMyalzejceBTnNiKxYeS6EIwYYNb9zfCkONf2yyXhyyumCn UyZg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kl22-20020a170907995600b006e7fd64811csi7272454ejc.345.2022.04.11.12.27.03; Mon, 11 Apr 2022 12:27:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236810AbiDHOUR (ORCPT + 99 others); Fri, 8 Apr 2022 10:20:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236802AbiDHOUL (ORCPT ); Fri, 8 Apr 2022 10:20:11 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8C53C35049F; Fri, 8 Apr 2022 07:18:07 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 565E2113E; Fri, 8 Apr 2022 07:18:07 -0700 (PDT) Received: from lpieralisi (unknown [10.57.11.200]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id EED3C3F73B; Fri, 8 Apr 2022 07:18:05 -0700 (PDT) Date: Fri, 8 Apr 2022 15:18:09 +0100 From: Lorenzo Pieralisi To: Punit Agrawal , shawn.lin@rock-chips.com, Heiko Stuebner Cc: bhelgaas@google.com, robh@kernel.org, kw@linux.com, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org Subject: Re: [PATCH] PCI: rockchip: Enable the phy driver when controller is enabled Message-ID: References: <20211019120215.793794-1-punitagrawal@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211019120215.793794-1-punitagrawal@gmail.com> X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 19, 2021 at 09:02:15PM +0900, Punit Agrawal wrote: > The PCI controller on rk3399 requires the phy to correctly initialise > the PCIE phy. Without phy initialisation the host and end-point > controllers cannot be used. > > To prevent building an unusable PCIe driver on rk3399, enable the phy > driver when the host or end-point driver is enabled. > > Signed-off-by: Punit Agrawal > --- > Hi, > > I've been caught out many times when booting off of PCI and finding > that the kernel cannot find rootfs due to the missing phy driver. The > patch should prevents this by fixing the Kconfig dependency > enablement. > > Thanks, > Punit > > drivers/pci/controller/Kconfig | 2 ++ > 1 file changed, 2 insertions(+) Shawn, Heiko, can I go ahead with this patch please ? Thanks, Lorenzo > diff --git a/drivers/pci/controller/Kconfig b/drivers/pci/controller/Kconfig > index 326f7d13024f..1965df38c4a3 100644 > --- a/drivers/pci/controller/Kconfig > +++ b/drivers/pci/controller/Kconfig > @@ -214,6 +214,7 @@ config PCIE_ROCKCHIP_HOST > depends on PCI_MSI_IRQ_DOMAIN > select MFD_SYSCON > select PCIE_ROCKCHIP > + select PHY_ROCKCHIP_PCIE > help > Say Y here if you want internal PCI support on Rockchip SoC. > There is 1 internal PCIe port available to support GEN2 with > @@ -226,6 +227,7 @@ config PCIE_ROCKCHIP_EP > depends on PCI_ENDPOINT > select MFD_SYSCON > select PCIE_ROCKCHIP > + select PHY_ROCKCHIP_PCIE > help > Say Y here if you want to support Rockchip PCIe controller in > endpoint mode on Rockchip SoC. There is 1 internal PCIe port > -- > 2.33.0 >