From mboxrd@z Thu Jan 1 00:00:00 1970 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 66AC8C27C7A for ; Thu, 17 Aug 2023 07:32:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348462AbjHQHbg convert rfc822-to-8bit (ORCPT ); Thu, 17 Aug 2023 03:31:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348478AbjHQHbY (ORCPT ); Thu, 17 Aug 2023 03:31:24 -0400 Received: from mail-yb1-f182.google.com (mail-yb1-f182.google.com [209.85.219.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48C821FC8 for ; Thu, 17 Aug 2023 00:31:22 -0700 (PDT) Received: by mail-yb1-f182.google.com with SMTP id 3f1490d57ef6-c5f98fc4237so5714048276.2 for ; Thu, 17 Aug 2023 00:31:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692257481; x=1692862281; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=FOaqzuTKKoZ2nsOmaiM8FLeS8uIMuj6AgXRnSyVBWl0=; b=iIWcO3P8wX3hFvOrES2x9o5oeXreXM1Hl20ZccOvO41Zj3nhDaGYvHyQS2iyipTIys fV5V9C08Cv2vcfZT97jATTHya4G7Xl9RACnUrPIpbUxfr1rvlcKiOeKbEC1No5D57EAZ YzZZZ4qAwLC0Ffg37KoVDGotfzxp0yRJ93r6DgMkdvsdOAy1yKrcwWx65l7K5ZRayK+F 9MSo9VLWVYw4RUP1tAOSj2t05BspAk/rqphi1nW/0XTlXVrQA3Vpzyn5RC3Unh/GCFTd zEcJu1PF+G5zANg19xhBK/o2hmH8yFZzCQYrVzn7TDQt4DzcH2ZUV4BpEFl99puvIeMv hRKQ== X-Gm-Message-State: AOJu0YzCcbHG+0/7ABQywkt82/yQ2qQqHikCN11zN1X+0CNt8vQo+/Ij CnoZ614QRVgFjzngfhKp4CihIIzuFAxxLg== X-Google-Smtp-Source: AGHT+IETi9FMxRY/KYQNtwhwss7K/h6jKUu936eHm9Kfl06JtAtWplcd1qbjLkN0xjF02kKjkCPq1Q== X-Received: by 2002:a25:d78c:0:b0:d15:f337:938b with SMTP id o134-20020a25d78c000000b00d15f337938bmr4064641ybg.8.1692257481228; Thu, 17 Aug 2023 00:31:21 -0700 (PDT) Received: from mail-yb1-f178.google.com (mail-yb1-f178.google.com. [209.85.219.178]) by smtp.gmail.com with ESMTPSA id 78-20020a250d51000000b00d1b86efc0ffsm3875788ybn.6.2023.08.17.00.31.20 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 17 Aug 2023 00:31:20 -0700 (PDT) Received: by mail-yb1-f178.google.com with SMTP id 3f1490d57ef6-d72cf9156easo670133276.0 for ; Thu, 17 Aug 2023 00:31:20 -0700 (PDT) X-Received: by 2002:a25:ae58:0:b0:d4f:7f64:df19 with SMTP id g24-20020a25ae58000000b00d4f7f64df19mr3834941ybe.14.1692257480593; Thu, 17 Aug 2023 00:31:20 -0700 (PDT) MIME-Version: 1.0 References: <202308161422.37GEMlZkA018197@rtits1.realtek.com.tw> <6c02765f89eb4455806b895a6e0cb763@realtek.com> In-Reply-To: From: Geert Uytterhoeven Date: Thu, 17 Aug 2023 09:31:07 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] phy: realtek: Realtek PHYs should depend on ARCH_REALTEK To: Vinod Koul Cc: =?UTF-8?B?U3RhbmxleSBDaGFuZ1vmmIzogrLlvrdd?= , Kishon Vijay Abraham I , Greg Kroah-Hartman , "linux-phy@lists.infradead.org" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Vinod, On Thu, Aug 17, 2023 at 8:46 AM Vinod Koul wrote: > On 17-08-23, 02:06, Stanley Chang[昌育德] wrote: > > > 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 Indeed. The only caveat is future non-on-SoC Realtek PHY drivers: they should be added outside the if/endif block. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds