Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp387623pxb; Tue, 19 Oct 2021 05:06:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwgxvOs5wLUZRsL7dUeITdfqojKdn7VN+C3VpPgGRfE3PVe5lgj/o7+ynaCsF/zWcL1dWf/ X-Received: by 2002:a17:907:20d0:: with SMTP id qq16mr39519703ejb.168.1634645161195; Tue, 19 Oct 2021 05:06:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634645161; cv=none; d=google.com; s=arc-20160816; b=d607TrVMQBDoOMOwm1AQS1KF7sJ4oE7pmJnUXjNlTgAn01G0rLuPAB8WLzVJSJqqzw ycTJjh3YApDvAhfMUnJB+gkQlpJnIh86tPZhvgUG0BY8fZfesgs7xX7xUAcVthT9KNY8 XqZOz8gSgAB89D9jO82400h780S4VgNa/jdXqN3o505IxRPKAQZtTAz8R5uSoUB/OS59 A4bQP/ublk6TCFDAIiAVbir39EAuIGqxX4lOrZ92cAMMCPim7E2ttbjxsP5HPFFOgFgU UXBlikUr+ktpRL4xKkHGccjQ5CPH0ggQp1BXMH1i0PbO2m8O1QtaNAQdQiz34/kTFLP3 5uUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=VstgBb1WpAFxmjgEF016s8/N6/G+uWbCOyA3bqA7yQQ=; b=Pk0rljS1L1To7rxC+qZ62IGlP9LNgCQz39isTj8o70hhQVprFILRbNcA3TSzW+VJWu 8t8RcPJepPcuUbyJxWaKjSzgFgPlZeGFoz15zkLJzV7aNDf+wpAm+6SC6shGjvd9Pe3T cE5ubcTRL4x3IOMFo+sWWqY50/Kinr8GwgN5a38Fe1gzKvyQnEHnZBiXewrPIzKzBniq my4ivnO8iktLQ1XEvMaJp0TE+Rm856s76CGQVc+Tc8l/qziZMuUZ+JfnqoF5N0CTGeOX qbZbiZE8KhUWszJTAcHl3U3GaWbb5cfSi0r1tRuAF0OTjLv/yW1O/1AorsSc5da60JUj h7AQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=TEA9MLqb; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 5si23343718eji.628.2021.10.19.05.05.34; Tue, 19 Oct 2021 05:06:01 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=TEA9MLqb; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235356AbhJSMEh (ORCPT + 99 others); Tue, 19 Oct 2021 08:04:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230129AbhJSMEh (ORCPT ); Tue, 19 Oct 2021 08:04:37 -0400 Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17DC9C06161C; Tue, 19 Oct 2021 05:02:24 -0700 (PDT) Received: by mail-pj1-x1029.google.com with SMTP id g13-20020a17090a3c8d00b00196286963b9so1852145pjc.3; Tue, 19 Oct 2021 05:02:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=VstgBb1WpAFxmjgEF016s8/N6/G+uWbCOyA3bqA7yQQ=; b=TEA9MLqbOVq7RmcYakd/vziXUhkxFHx37bojiSprOG0B+lJljwJ3j8RTVyJBupUm7y BsCv9dM5yV0Y3rOiGvPTTHgBlnTMdAPNKEpM0lXj1seh3nMtseBRliPvxebKOWniXi90 EXvh+7M4LagBLuy9DIwmuZyCW8KDENmbYU1/J5qXQxjIyIHXL61mJejhQKbC2Px+43EU 10Q3LPuZHm7xw3p9WOKmhrqY/esfqW3biW9TGeFRDLE7s2ZUzDBSMPT4FWkedcfF2gr3 ylELmaBb/HkMgjt6p3saFqt0yDnl5w1KFCuoUIGeNb3LStbQB6v2dhX0Ilt1EMQiJu0i 2WsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=VstgBb1WpAFxmjgEF016s8/N6/G+uWbCOyA3bqA7yQQ=; b=1NhbGFh3hDqswDLgi3K/CCMr2+jxHAkVyBGtAorHW5pvwcm86IQpvRo7F4ISpEf26a 9c35vdBYTfv8P2PqHQR5k7OZaClITR0IKoO4fWxgqzZ0jx686Yw/fyR8x5TIFDCQ0Uz5 hzGCN4fkvh92CYRB6JOFIITE8W+ggyM4L4v4O+m0c8TNBp+BSjbkycr/LpkPjdbFpr4b H8V9c2E6BhwS+fX1Mz6RCwnwbFCXXZODqHjoG2+4Zq1VJCLGVh84hx3sQDlLVEmG2R4s MMxyq3J/CnqyGSoDgpK//assBarPnQZZshut57kCGRdkCwsHrZsxp+0k/SY0WAf+VwZ8 yVzg== X-Gm-Message-State: AOAM530xF5smY0TQEGMhpzyV1dV93lsWhA3gPyoal20bzwrAHydqWfp1 E6ybsjXTv9R6NIJIFEVMiRM= X-Received: by 2002:a17:90a:cc15:: with SMTP id b21mr6267146pju.113.1634644943521; Tue, 19 Oct 2021 05:02:23 -0700 (PDT) Received: from localhost (122x211x248x161.ap122.ftth.ucom.ne.jp. [122.211.248.161]) by smtp.gmail.com with ESMTPSA id 197sm16048248pfv.6.2021.10.19.05.02.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Oct 2021 05:02:22 -0700 (PDT) From: Punit Agrawal To: lorenzo.pieralisi@arm.com, bhelgaas@google.com Cc: Punit Agrawal , robh@kernel.org, kw@linux.com, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, shawn.lin@rock-chips.com, linux-rockchip@lists.infradead.org Subject: [PATCH] PCI: rockchip: Enable the phy driver when controller is enabled Date: Tue, 19 Oct 2021 21:02:15 +0900 Message-Id: <20211019120215.793794-1-punitagrawal@gmail.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(+) 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