From patchwork Tue Jul 25 15:49:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 125717 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp2579631vqg; Tue, 25 Jul 2023 09:14:59 -0700 (PDT) X-Google-Smtp-Source: APBJJlF4T1yxcL7U5ipIs693wyZZlnHTb1mS2TNwkXxYjqOWpFJ6T1fsMEik4uMk1kG+9In2z+w9 X-Received: by 2002:a17:906:2d6:b0:994:542c:8718 with SMTP id 22-20020a17090602d600b00994542c8718mr14887053ejk.76.1690301699072; Tue, 25 Jul 2023 09:14:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690301699; cv=none; d=google.com; s=arc-20160816; b=gxpluLYeaGXgfPlv7XnWeyWdgs+r89pgEmCJy+V9CItwqIgTsPZXXpEo63mrVPeD05 wwD/QGsCUogz+KT6y9bM6CAxN/ArN+orvJFGazT9A0X2Qhiw97Acp4pD6JPyB72W9cLX 9a3YnoSttgcOpUaWx3dKksAAowFbrV/MXkVfMw06+0Ze1nF4DlieD/4jQhO0r4kCNbIg dA0aQDZIeFksRGatvlqQPFhl4qitNmVHu0VC+/o39taZU9X1K4emHhkkCvJ9Licb6W9v 5Oy3B0sX1wS/rdHKYviZfKvdtPTH4h64M83kWRqb6tgcn7iiKsv0Vjnfz/+JQ7zm3X92 Dwkg== 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=QKDtb9o06aS1a6++RDNsqcl3WrxeJHLBcMAvqCTRSTs=; fh=qnJ8V++3GtLeaphPWrhE7I6yDXgPXgUJ1n8pLuI7Yck=; b=n8rwV4wFlNyHX5l1+a2MKdQsszlgiaBnqCYSYIi+Ud5zMgp8PPdl1W9Rc9dd+srcbM 0jm8RDzyeShXl+9VKqWzfo1nYsNVqrWxb4gc3p9EJVKxTl9INJG8BQJCyrXD2+7HtOVy 5kA0jx59gq8alZb98/N6DwQanULXVHAOYhEMy6KsDMf0QePsc0b6iu58U2PTLgc39l75 hIi9wvxeno8PBx0KOq8YAFvxU5ZoYljnUn79Kbggn9dc3lSF4TlxaOOYV5aT+ZDnr13J gOprUDSAPf48oyJnF7S7SxEAqDsysALT8J+fbk0e8/pjdJOHiAvhe7KS2QzxzKQ6bXPm Tblg== 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 bm8-20020a170906c04800b009888b617ebbsi7697078ejb.606.2023.07.25.09.14.34; Tue, 25 Jul 2023 09:14:59 -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 S232116AbjGYPtj (ORCPT + 99 others); Tue, 25 Jul 2023 11:49:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231602AbjGYPti (ORCPT ); Tue, 25 Jul 2023 11:49:38 -0400 Received: from michel.telenet-ops.be (michel.telenet-ops.be [IPv6:2a02:1800:110:4::f00:18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E82A1FE6 for ; Tue, 25 Jul 2023 08:49:37 -0700 (PDT) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed40:2d50:2ea4:d4e1:2af3]) by michel.telenet-ops.be with bizsmtp id RTpZ2A00V2TBYXr06TpZAJ; Tue, 25 Jul 2023 17:49:35 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1qOKHo-002ViA-Ho; Tue, 25 Jul 2023 17:49:33 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1qOKI1-009cZD-Mo; Tue, 25 Jul 2023 17:49:33 +0200 From: Geert Uytterhoeven To: Vinod Koul , Kishon Vijay Abraham I , Minda Chen , Roger Quadros , Changhuang Liang Cc: linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH] phy: starfive: StarFive PHYs should depend on ARCH_STARFIVE Date: Tue, 25 Jul 2023 17:49:27 +0200 Message-Id: <12097f6107a18e2f7cfb80f47ac7b27808e062c4.1690300076.git.geert+renesas@glider.be> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE 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: 1772409794197673413 X-GMAIL-MSGID: 1772409794197673413 The various StarFive PHYs are only present on StarFive SoCs. Hence add a dependency on ARCH_STARFIVE, to prevent asking the user about these drivers when configuring a kernel without StarFive SoC support. Signed-off-by: Geert Uytterhoeven Acked-by: Changhuang Liang --- drivers/phy/starfive/Kconfig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/phy/starfive/Kconfig b/drivers/phy/starfive/Kconfig index a560533a674ee0a5..4457b3872aa146a4 100644 --- a/drivers/phy/starfive/Kconfig +++ b/drivers/phy/starfive/Kconfig @@ -3,6 +3,8 @@ # Phy drivers for StarFive platforms # +if ARCH_STARFIVE || COMPILE_TEST + config PHY_STARFIVE_JH7110_DPHY_RX tristate "StarFive JH7110 D-PHY RX support" select GENERIC_PHY @@ -31,3 +33,5 @@ config PHY_STARFIVE_JH7110_USB used with the Cadence USB controller. If M is selected, the module will be called phy-jh7110-usb.ko. + +endif # ARCH_STARFIVE || COMPILE_TEST