From patchwork Tue Aug 15 15:28:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 135800 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b82d:0:b0:3f2:4152:657d with SMTP id z13csp158496vqi; Wed, 16 Aug 2023 10:06:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFMr+G39IG8V2PNDb9Gu0Btmm7H48PaPKmj1iTkIIIy08c1KVoTW8yUO3a8t3GllQRLGC7I X-Received: by 2002:a05:6a00:1251:b0:689:56a3:19c8 with SMTP id u17-20020a056a00125100b0068956a319c8mr44966pfi.19.1692205595642; Wed, 16 Aug 2023 10:06:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692205595; cv=none; d=google.com; s=arc-20160816; b=ZVGCSZK0s9bBr8kGGl56GAiqkADtukl6nD9B8x9bStYYL14XQ27eliCqVz/jMhapop 6/PFVCISJSj51aI/ygOlAr3eYZRY7qJSkEAIwpzU9Sr/UD2BF7J5gNZDbnfcd9sgq+ua 5/1qxsGvmeoGCRPfloHgK20StihzV10qAJc6BLQs8ZyFZbmZDzY4sc56ENznDzRBj5aJ I64x2clbht+tQ7NQASes/03Bdc7PhaION6H6GBNxpEXLsZaQkOcbsX6KjWjqCZ/I6Yw5 YTPYfrk5kG4H2u9s1LnOMRwU8FCYqjuobmB+vHwj+mSv60yTIHp/0B1QwIn4ch7VIUVh tczQ== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p28-20020a056a0026dc00b00682acfc5dacsi11509525pfw.53.2023.08.16.10.06.03; Wed, 16 Aug 2023 10:06:35 -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 S238050AbjHOP2v (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 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1774406174260151774 X-GMAIL-MSGID: 1774406174260151774 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