Received: by 2002:a05:7412:bb8d:b0:d7:7d3a:4fe2 with SMTP id js13csp895366rdb; Tue, 15 Aug 2023 15:54:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFWP7c7+xH6lLyev5eyaVKJttdEu75NMLdOt+C2+a29tSlJQaLFE8qQeo6XEdtEg/wsIjJB X-Received: by 2002:aca:1a07:0:b0:3a7:7d4:4f91 with SMTP id a7-20020aca1a07000000b003a707d44f91mr75682oia.14.1692140044906; Tue, 15 Aug 2023 15:54:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692140044; cv=none; d=google.com; s=arc-20160816; b=WuKrVD9BzS7DCytPwxbzbCfxfCKRzWqthh59RETkfPbsbsFdHehX1GyrMJGezIoGOE Z1LIvVFqR+jB4Vn+OqA4iRqX3wxGHw+yMtVj/UMMASKWKKoI6n3xSfJQZ/GYN9ka411r 6QNlurvXFGrx8a2+QzwviUTmn4bebEO0mH9CP4EemA8/7r5tZo2doyuRqYWm/wrpXpZa 8zAcG2TDqfpAtU8QVwGxe3+QV9tmXHGBlotAwSlQ5YuVm0McqIuH8fhbJhR7G6HzLiNa b/+gw5vJzEqee2OpUaB59qP5g37AkYvh+aBBFWncV7YSsVreL5cpvlIFfrzEpkZyCrS6 7K4A== 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; bh=/pLnIEQlg3h9h5WHKnIDI559Abl3vWqWKLWPrvQP8Ns=; fh=RkFtJaAcU7fr2AfNzQD/e4DvfGps6ChFGx8t2DpLuck=; b=wtuPwiZwEovoL7e2ZUhQy8rBaHP8581CKKdc0hrJMtylM6+M3pa/XwZlIMaFVcfQP7 dtmgav2fYkX4zVdqFx0zluNszxu2cxNsBm5CuRkawrdBsD8l4H/kGY860VXN2nhfwBJm nxlW4+fymyv/6TdhvWpJhv+09f2kwxRexm7W5eaPOdXnZlr/AzIK431mBMvTwhLeR133 NDeHI/a6FFijuULM7S7p8YxZfH6WH3CSixQhOiG6wWdYPjdT8za5UiI1L3PhCxxdyxtc Er4aAHXtyolRfjnp6N3F+x031BQTku3FItZxlqND50lbggEFyzvV1PPAnAVOXBp5XPJV WJbw== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v189-20020a6389c6000000b00563de9d4edasi392091pgd.366.2023.08.15.15.53.34; Tue, 15 Aug 2023 15:54:04 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238046AbjHOP2v (ORCPT + 99 others); Tue, 15 Aug 2023 11:28:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237979AbjHOP2U (ORCPT ); Tue, 15 Aug 2023 11:28:20 -0400 Received: from laurent.telenet-ops.be (laurent.telenet-ops.be [IPv6:2a02:1800:110:4::f00:19]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 92D4A9C for ; Tue, 15 Aug 2023 08:28:18 -0700 (PDT) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed40:5d0c:f209:12a7:4ce5]) by laurent.telenet-ops.be with bizsmtp id ZrUF2A00845ualL01rUFq5; Tue, 15 Aug 2023 17:28:16 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1qVvxo-000j7s-Sp; Tue, 15 Aug 2023 17:28:15 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1qVvxv-005ckC-6V; Tue, 15 Aug 2023 17:28:15 +0200 From: Geert Uytterhoeven To: Vinod Koul , Kishon Vijay Abraham I , Greg Kroah-Hartman , Stanley Chang Cc: linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH] phy: realtek: Realtek PHYs should depend on ARCH_REALTEK Date: Tue, 15 Aug 2023 17:28:13 +0200 Message-Id: <2892527cac9af6fa8f5e7b8daeffd7d4351fde68.1692113167.git.geert+renesas@glider.be> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE, SPF_NONE autolearn=no 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 The Realtek SoC USB2 and USB3 PHY Transceivers are only present on Realtek Digital Home Center (DHC) RTD series SoCs. Hence add a dependency on ARCH_REALTEK, to prevent asking the user about these drivers when configuring a kernel without Realtek SoC support. Signed-off-by: Geert Uytterhoeven --- drivers/phy/realtek/Kconfig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/phy/realtek/Kconfig b/drivers/phy/realtek/Kconfig index 650e20ed69af41d2..75ac7e7c31aec6f2 100644 --- a/drivers/phy/realtek/Kconfig +++ b/drivers/phy/realtek/Kconfig @@ -2,6 +2,9 @@ # # Phy drivers for Realtek platforms # + +if ARCH_REALTEK || COMPILE_TEST + config PHY_RTK_RTD_USB2PHY tristate "Realtek RTD USB2 PHY Transceiver Driver" depends on USB_SUPPORT @@ -25,3 +28,5 @@ config PHY_RTK_RTD_USB3PHY The DHC (digital home center) RTD series SoCs used the Synopsys DWC3 USB IP. This driver will do the PHY initialization of the parameters. + +endif # ARCH_REALTEK || COMPILE_TEST -- 2.34.1