Received: by 2002:a05:7412:bb8d:b0:d7:7d3a:4fe2 with SMTP id js13csp2640044rdb; Fri, 18 Aug 2023 06:32:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHg1+6BZDs9qEZrGgecqnRmJa5gFLs6gqB9FTWt0gY/R3W0e7/VWwpd8YmZi+wletdyxWgy X-Received: by 2002:a17:902:d4ca:b0:1bd:94d2:db03 with SMTP id o10-20020a170902d4ca00b001bd94d2db03mr2457595plg.60.1692365573078; Fri, 18 Aug 2023 06:32:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692365573; cv=none; d=google.com; s=arc-20160816; b=QlhnPlVZ+bpNeqgZesRqB7avqGOZ33iMaGtXfowW3mDCgb0HvxRDsguDDEpCSfjklM QXP5/BB6o7TQoVXlYWMCCy6p1DtDWgaTxDzegbUN8qtjK8EyFd3uw2kiyYhvdGvrGijP f6HZ3DjWTXyJiTzAsKY91b2UdBVe+t2I9YebiNmT+3nVECPQeHTvvE8GcvvFaWfSGz+y dcbPkTNmV5HEpTqbzuUjB5xScz51YCVqcBrGEQHy4i28Ag0KI8tqTRZ2IMjtYxdNQYmw Y29Alk9nW4OjLxSIYiIlcPk1aj4LfoWS7BPapEvUN91cjm1jwVPjXtuxDLmZKPX7Bpza R1yA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=w611Q1B7ISGrRL3QkF71xWibh5JgdhxDIPPVXRYNTyw=; fh=fM9eseBY48RfbAGJv91E19ylGPwfdaXPc8Tp8fsU0No=; b=hNiVMxzYC1zs5VtClEuUiTt5nR3dLa5NKfZ2u0o5bFId88AYpaSdIP1ynJt13jFb2z EjqZ9ZC/CvMZuv16y4zucmD4CRweoJ6hWKiAPYtM2nTTRCxcQKK0mKCWLykD1b8nrOhJ MtmUC48rFkMkCSYFj9qFXBLbyuy0/8Y2NHKsnfRfNn/Z3/E7RWm7G9wBDeiH1qEC/6Bi hu0V/N5RB/kj1DnKlF1/fXKqO78iHKdc/g2Memj1yw9WMEHFOJHeQgwtmBfA5KVZKS9A I0d5QC4lDkQT/+GzKobTBJUfagqKhl4mftlm3bm7xKjmQ4lmcaH6OD4xOZWVPa0ezWNL 5YIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=l4aL0lJ7; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d11-20020a170903208b00b001b8c4021be9si1432925plc.397.2023.08.18.06.32.31; Fri, 18 Aug 2023 06:32:53 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=l4aL0lJ7; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348308AbjHQGqi (ORCPT + 99 others); Thu, 17 Aug 2023 02:46:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348318AbjHQGqe (ORCPT ); Thu, 17 Aug 2023 02:46:34 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1010BA6 for ; Wed, 16 Aug 2023 23:46:33 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8729A60AC1 for ; Thu, 17 Aug 2023 06:46:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1D9A9C433C8; Thu, 17 Aug 2023 06:46:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1692254791; bh=kGXjHIIItKcedfobgcUxtg3pCMarIyql5LXTBLsFlpM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=l4aL0lJ7SR0dE9hoY4FkVsTWiCI6kza6xK1INUjId1UOv7aPcLmh4tc8QPN6FNdVw vWyhIAYKlnqyLCcZ4XxveR/gvvrA2ULuHLC7Ux045lvSSr/jL0Kt/gVHOEkLioCpgB hDhrEZFMJeajMn5FhYTqnSqpQxVsgWTwJdMkxmSGYF+1Jc4Dle2yWeYsRVrnQnzB20 LRspb2K7pNvqTWEonJN6Z+0Am5Ay3th/k0tWE5u4IcI0DEwO/yyaGyRoK5x4jRvvY2 eI7MWXvNFhJSyhFJMk+d0iKLxU8yZTN7Fmfb+wm/sKKoV7h7nf4vjoZF9mqpAmKzcK Zlp2ZVcIreokg== Date: Thu, 17 Aug 2023 12:16:27 +0530 From: Vinod Koul To: Stanley =?utf-8?B?Q2hhbmdb5piM6IKy5b63XQ==?= Cc: Geert Uytterhoeven , Kishon Vijay Abraham I , Greg Kroah-Hartman , "linux-phy@lists.infradead.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] phy: realtek: Realtek PHYs should depend on ARCH_REALTEK Message-ID: References: <202308161422.37GEMlZkA018197@rtits1.realtek.com.tw> <6c02765f89eb4455806b895a6e0cb763@realtek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <6c02765f89eb4455806b895a6e0cb763@realtek.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 On 17-08-23, 02:06, Stanley Chang[昌育德] wrote: > Hi Geert, > > > 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 > > Thanks for your patch. > Why not use "depends on"? > depends on ARCH_MEDIATEK || COMPILE_TEST I think this patch is better, this way all future rtek drivers will be fixed as well, no need to add for each driver -- ~Vinod