From patchwork Mon Jan 20 14:35:01 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 13945160 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 CA9E8C02185 for ; Mon, 20 Jan 2025 14:35:14 +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=YF760yN4n1ad3WFHz96vy+4PF2zDQLVqkA58HyYSirQ=; b=BWV0XpoR7r3RqZ 4KNzXIH64hBgYpLxbCyaG6fg6Vh+016h77wArY5pByMlosqQs9QQHMShrjCZyzTcFcHh/Jl9d+B0b EpfbubzE0z2tQKYKEbAOai7go420KMpw8hPjSdmndJEhzZGNtN1yL91+ypl30etfOGgH00sanlGVE 1OQmHgytXDTfmahhy4kiDnHLlcY6eXzYhyGJ+4lBhv5tVzW7dyqGI1ET6IXizRcheTyaAiABVP7zs KkxFR3o4DtIcClBdPw4Hy1CwLJBuFn679JvGITK6URTGbe8jM0/YVvA4iWm318xrrGl65x40nnhYi 7C6m8E4fhM+Ul/JAMCrQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tZsry-00000005nvt-2Syy; Mon, 20 Jan 2025 14:35:14 +0000 Received: from xavier.telenet-ops.be ([2a02:1800:120:4::f00:14]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tZsru-00000005nt5-017S for linux-phy@lists.infradead.org; Mon, 20 Jan 2025 14:35:11 +0000 Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed80:30c9:4dcf:fe21:4b10]) by xavier.telenet-ops.be with cmsmtp id 3Sb42E00D0raqVW01Sb4Zg; Mon, 20 Jan 2025 15:35:06 +0100 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.97) (envelope-from ) id 1tZsrh-0000000DhTT-3Lpi; Mon, 20 Jan 2025 15:35:04 +0100 Received: from geert by rox.of.borg with local (Exim 4.97) (envelope-from ) id 1tZsro-0000000DTZR-1JIG; Mon, 20 Jan 2025 15:35:04 +0100 From: Geert Uytterhoeven To: =?utf-8?q?Herv=C3=A9_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, linux-kernel@vger.kernel.org, Geert Uytterhoeven , Krzysztof Kozlowski Subject: [PATCH v3 1/3] dt-bindings: interrupt-controller: microchip,lan966x-oic: Clarify endpoint use Date: Mon, 20 Jan 2025 15:35:01 +0100 Message-ID: <247b1185c93610100f3f8c9e0ab2c1506e53e1f4.1737383314.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-20250120_063510_181737_F81514C1 X-CRM114-Status: GOOD ( 11.32 ) 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 Reword the description, to make it clear that the LAN966x Outbound Interrupt Controller is used only in PCI endpoint mode. Signed-off-by: Geert Uytterhoeven Acked-by: Krzysztof Kozlowski Acked-by: Herve Codina --- v3: - Add Acked-by, v2: - New. --- .../bindings/interrupt-controller/microchip,lan966x-oic.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/interrupt-controller/microchip,lan966x-oic.yaml b/Documentation/devicetree/bindings/interrupt-controller/microchip,lan966x-oic.yaml index b2adc71741770940..dca16e202da992cd 100644 --- a/Documentation/devicetree/bindings/interrupt-controller/microchip,lan966x-oic.yaml +++ b/Documentation/devicetree/bindings/interrupt-controller/microchip,lan966x-oic.yaml @@ -14,9 +14,8 @@ allOf: description: | The Microchip LAN966x outband interrupt controller (OIC) maps the internal - interrupt sources of the LAN966x device to an external interrupt. - When the LAN966x device is used as a PCI device, the external interrupt is - routed to the PCI interrupt. + interrupt sources of the LAN966x device to a PCI interrupt when the LAN966x + device is used as a PCI device. properties: compatible: From patchwork Mon Jan 20 14:35:02 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 13945159 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 8FEE1C02181 for ; Mon, 20 Jan 2025 14:35:14 +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=dgca5z+w89uPyI6FC9PtexZ11auj5Wpn8jFxGM/p0B8=; b=2JYZ1RY3ONBQ9h fV1OvOrPM/jKuidJHdNRcddod9Qv0Ydb0VKChKT/hGuzkeHy2Xw4nfRt6VFjIoFcgXWPX3fzewG9l 6Kzi+B5Liu6GveEZOXaxzPns5NLN+FQCcqBRVzAwAG49TkzpOfSs4imT2rgYkStbwP+gc4ZCSVOf7 2FwNKc7gllHBkVdnnC/k7FrjLBVk2k8pTaIZKjOcUO0S+gE6WhCHZi99cwV/qEXw5EP4rrJZv2Be4 SNGv4OCF7G4p6m8I9aF4N9+ZAIsItsD5RpFIDnjesxG7F/LQzYaB3+7TX8p1qiYdaRgkmXM/c99ts qaTtn0sPkG+XsXeZfgqQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tZsry-00000005nvZ-1Nal; Mon, 20 Jan 2025 14:35:14 +0000 Received: from michel.telenet-ops.be ([2a02:1800:110:4::f00:18]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tZsrt-00000005nsx-17c2 for linux-phy@lists.infradead.org; Mon, 20 Jan 2025 14:35:11 +0000 Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed80:30c9:4dcf:fe21:4b10]) by michel.telenet-ops.be with cmsmtp id 3Sb42E00C0raqVW06Sb4lK; Mon, 20 Jan 2025 15:35:05 +0100 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.97) (envelope-from ) id 1tZsrh-0000000DhTW-3Rzj; Mon, 20 Jan 2025 15:35:04 +0100 Received: from geert by rox.of.borg with local (Exim 4.97) (envelope-from ) id 1tZsro-0000000DTZV-1TKS; Mon, 20 Jan 2025 15:35:04 +0100 From: Geert Uytterhoeven To: =?utf-8?q?Herv=C3=A9_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, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH v3 2/3] irqchip: LAN966X_OIC should depend on MCHP_LAN966X_PCI Date: Mon, 20 Jan 2025 15:35:02 +0100 Message-ID: <28e8a605e72ee45e27f0d06b2b71366159a9c782.1737383314.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-20250120_063509_453424_21C9601A X-CRM114-Status: GOOD ( 11.50 ) 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 outband interrupt controller is only present on Microchip LAN966x SoCs, and only used in PCI endpoint mode. Hence add a dependency on MCHP_LAN966X_PCI, to prevent asking the user about this driver when configuring a kernel without Microchip LAN966x PCIe support. Fixes: 3e3a7b35332924c8 ("irqchip: Add support for LAN966x OIC") Signed-off-by: Geert Uytterhoeven Acked-by: Herve Codina --- v3: - Fix symbol name in one-line summary, - Add Acked-by, v2: - Drop dependency on SOC_LAN966, as the OIC is used only in LAN966x PCI endpoint mode, - Replace MFD_LAN966X_PCI by MCHP_LAN966X_PCI, as the latter is the symbol that ended upstream. --- drivers/irqchip/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/irqchip/Kconfig b/drivers/irqchip/Kconfig index 22f5fbd41f65d97e..cf713b6e9cc9346f 100644 --- a/drivers/irqchip/Kconfig +++ b/drivers/irqchip/Kconfig @@ -169,6 +169,7 @@ config IXP4XX_IRQ config LAN966X_OIC tristate "Microchip LAN966x OIC Support" + depends on MCHP_LAN966X_PCI || COMPILE_TEST select GENERIC_IRQ_CHIP select IRQ_DOMAIN help From patchwork Mon Jan 20 14:35:03 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 13945158 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 10247C02181 for ; Mon, 20 Jan 2025 14:35:12 +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=ZLomZnYnx4z4YkTMy3P4dOsfa2Cj9VFpUOh1K9ApuKQ=; b=i83iDCB3OD4cDS J2zXJ9vqUOs41YoUhz3/4yiaHo6JlRv5TitkVFCAd5GsTuixHq8DYVglBTk/qOG/HYxZkYVILzb8A 7kx2Skf3Qy85vRI3FYh678lrWDyuCU9vjn+NSDHbdqJUD5d2dAzIoqGClXAaD8lK694ShdzsfEwp2 0FNd1Tuj2OoqXAHlObL8Asz4Gu8r9rjYG4SUyy9VW4kAMlUi2APm0cDyMQ2ufaKvgUL0amZfnf9RO jrojnQ218uKBF/Q47IMIDdyGbYnXQsPrfPbZCD5ZSVUDvHI7C/+AklJNDZ0SghbNbXMQN0AC6yEqU y/wuy0bl0IaQvq46LKTQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tZsrv-00000005nuQ-3O41; Mon, 20 Jan 2025 14:35:11 +0000 Received: from albert.telenet-ops.be ([2a02:1800:110:4::f00:1a]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tZsrt-00000005nsv-17U8 for linux-phy@lists.infradead.org; Mon, 20 Jan 2025 14:35:10 +0000 Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed80:30c9:4dcf:fe21:4b10]) by albert.telenet-ops.be with cmsmtp id 3Sb42E00H0raqVW06Sb41D; Mon, 20 Jan 2025 15:35:05 +0100 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.97) (envelope-from ) id 1tZsrh-0000000DhTa-3YKN; Mon, 20 Jan 2025 15:35:04 +0100 Received: from geert by rox.of.borg with local (Exim 4.97) (envelope-from ) id 1tZsro-0000000DTZZ-1bBT; Mon, 20 Jan 2025 15:35:04 +0100 From: Geert Uytterhoeven To: =?utf-8?q?Herv=C3=A9_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, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH v3 3/3] phy: PHY_LAN966X_SERDES should depend on SOC_LAN966 || MCHP_LAN966X_PCI Date: Mon, 20 Jan 2025 15:35:03 +0100 Message-ID: <369233dfded88ff6fb342e03794fe31985d84d82.1737383314.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-20250120_063509_450979_62E5E830 X-CRM114-Status: GOOD ( 10.47 ) 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 MCHP_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 --- v3: - Fix symbol name in description, - Add Acked-by, 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