From patchwork Fri Jan 17 13:04:38 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 13943314 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DD206C02183 for ; Fri, 17 Jan 2025 13:04:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=eM52DOl3Qw53gmR2bvXpwknnt4+T5Emjp+uYwjPMOVs=; b=szg3tYsp1yULW8 bjviKNiHi6I8FGVOs2XPmhUsdD+Eail6qxq+JYwWGJGAS+YCNY8yZCqS4muIqvQBMKN8ecockfTgd FgPE7IZgQTkuwiKJjy6AaIFi+0wpm8LQ0ZY19jJ32RG2JCUSpe7ER9AWPmVapF9+NtWahWH1cyaTm JOlmvt0aqrewje50HQ4BoWsjzA/XtAS8Ke9m0/sE8kROQvavFedNXopeqW1mByKn0e0CjcFIUBkhx C4JyAkeMvY7SVxLI1tDVOa1ucWDsL0sZzl8sBpyKrG/YxH9GMlIhQUD85m8CJufa0sPer3VZUNB27 gWLZs+yAUwFh7tJiWwig==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tYm1n-00000000JFU-48Lm; Fri, 17 Jan 2025 13:04:47 +0000 Received: from baptiste.telenet-ops.be ([2a02:1800:120:4::f00:13]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tYm1l-00000000JCu-31mC for linux-phy@lists.infradead.org; Fri, 17 Jan 2025 13:04:47 +0000 Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed80:e8f3:e87e:7352:b33b]) by baptiste.telenet-ops.be with cmsmtp id 2D4g2E00427fVKr01D4g4o; Fri, 17 Jan 2025 14:04:40 +0100 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.97) (envelope-from ) id 1tYm1a-0000000DPU2-35Ga; Fri, 17 Jan 2025 14:04:40 +0100 Received: from geert by rox.of.borg with local (Exim 4.97) (envelope-from ) id 1tYm1f-00000004wBF-3g08; Fri, 17 Jan 2025 14:04:39 +0100 From: Geert Uytterhoeven To: Herve Codina , Thomas Gleixner , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Vinod Koul , Kishon Vijay Abraham I Cc: devicetree@vger.kernel.org, linux-phy@lists.infradead.org, Geert Uytterhoeven Subject: [PATCH v2 3/3] phy: PHY_LAN966X_SERDES should depend on SOC_LAN966 || MCHP_LAN966X_PCI Date: Fri, 17 Jan 2025 14:04:38 +0100 Message-ID: <0c7116ca03997fff04faf59fdcd4c97820685b64.1737118595.git.geert+renesas@glider.be> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250117_050445_890792_B04A07E9 X-CRM114-Status: UNSURE ( 9.62 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org The Microchip LAN966X SerDes PHY is only present on Microchip LAN966x SoCs. However, when used as a PCI endpoint, all peripherals of the LAN966x SoC can be accessed by the PCI host. Hence add dependencies on SOC_LAN966 and MFD_LAN966X_PCI, to prevent asking the user about this driver when configuring a kernel without Microchip LAN966x SoC and PCIe support. Signed-off-by: Geert Uytterhoeven Acked-by: Herve Codina --- v2: - New. --- drivers/phy/microchip/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/phy/microchip/Kconfig b/drivers/phy/microchip/Kconfig index 38039ed0754c6548..2f0045e874ac81ad 100644 --- a/drivers/phy/microchip/Kconfig +++ b/drivers/phy/microchip/Kconfig @@ -15,6 +15,7 @@ config PHY_SPARX5_SERDES config PHY_LAN966X_SERDES tristate "SerDes PHY driver for Microchip LAN966X" select GENERIC_PHY + depends on SOC_LAN966 || MCHP_LAN966X_PCI || COMPILE_TEST depends on OF depends on MFD_SYSCON help