Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1873581lqp; Mon, 15 Apr 2024 23:27:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUe6JpzpZimkLFL69ztoDmp4pwm0PqEh6Xptndetch8FMMotYCFHAZ8zy3H9V+DI4gC/TuMya6BOVr0D5Pogv+mtTiPU8cBwetX+fzWLQ== X-Google-Smtp-Source: AGHT+IGNVMEQhu9rKXJXYVSL13CBgtBFH495w4DoO4JNbCcdFXGgk9YE0/V9/GAr2v0dRrikj43L X-Received: by 2002:a25:8201:0:b0:dd1:3421:b3ea with SMTP id q1-20020a258201000000b00dd13421b3eamr10510721ybk.21.1713248852530; Mon, 15 Apr 2024 23:27:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713248852; cv=pass; d=google.com; s=arc-20160816; b=GkFM4AnRoAUdx4FEWOF09qAKO9t6MI49AaCkEMcYsX13qVdtLbLySQjKtgwd4sSW7d 9Vv0PadNho/xBeSnMXWq0lahN9QHKCoTMF/DPQ90twnw+iFgN/sV2/SMqtiAJYZrdI4h 3wRXo15GKbpmoDRkN7SmNP5QVqovX8/wiZGFVN6NF3nwyLdjpIF6M1UGkcQirxe9P5hH YdNx620iT6IR4OMVkeuDX+2Yjq5j3hTdMFe+1XCXyjBO75myYKeirDj/JN/J2afwBAnZ jXekFDiARfuJG5qHVK/IBkEuwQzvjY7NfdJzr+0cDc/4YMMZlR+KI6sZnMf7shPo4Vvg 8J6Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=OivKwW56EjAt0Ykjt4IzQCrGxj990LvRb6x6Qe2Awrs=; fh=5J6UeRpF8048ggN2WL7JxhEqWKrtIOoA19F/Kd5gUTk=; b=GGLM2EWtwxuUMHnL7CoPX8on9SkV1RM+q3cJqpipBEf4b/gfPN2j8nVYWEfuUYxHSG xCSu31bnim8MuPgv0TpjqKo8+qyFMLhu23FdCjYvv3O5X+cs70sI1pAeR6ci+p1rloiq 0nsX8YQ5xUXM+UyIvc4kMXNNe0IqOARYvL/+CJSXnymXPDLRzUHvJfNHQO4nOBNYriS/ j1KoDkeJzN2JLPY95KxBr28Dg4yvavRWMZA2Z+qFbKM/S7pOPav6ZqS2S8Ip5SSWToSU iyHjpxE9xKQgOOA7+TQMxak/D+DyO/6tAu4wTgq7en3FKxL6D7W6v0YGYzS1/6jTKD95 eDOQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=sntech.de dmarc=pass fromdomain=sntech.de); spf=pass (google.com: domain of linux-kernel+bounces-146345-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146345-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 14-20020a0562140d4e00b0069b75b86337si5343072qvr.255.2024.04.15.23.27.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 23:27:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-146345-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=sntech.de dmarc=pass fromdomain=sntech.de); spf=pass (google.com: domain of linux-kernel+bounces-146345-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146345-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 2EE291C20B3F for ; Tue, 16 Apr 2024 06:27:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 401163D3B8; Tue, 16 Apr 2024 06:27:25 +0000 (UTC) Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B9C773BBF6 for ; Tue, 16 Apr 2024 06:27:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.11.138.130 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713248844; cv=none; b=BXPMfsdL3o6A4rFL/EeM013tjV3ZdYQZVvEqSf33nfhWyu06BI8zUcO282BQgrNxBjhr9rkT/Djqi7xViUfshOZpwgB7NHXTfyDtkBQYiw6qZNmJhNdbYHMW8VcAB8PTZyR7IdC2xKnPlFqMc/owSvBvk169qdHv3BqrlWsqumc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713248844; c=relaxed/simple; bh=e6iWpFbdrqkdIbyGKXOFxiHA//NrN4bR2L8KZ1GpDy4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=VmNj9VYqS2B433DliIIz73FsxG1JmZT8kbv+sQW+zSA5hg4qq7igKP+zctmElo14hVc79P/9QvPRTAsy9moqJw9SPKrb+tGHm6NjIa2qsbW9HnoGhUzLeOVRVuBtqwbPDEK7wf6EDtjx1hKwLozeJ9DgaVDCz8QjVkwvp4AuVmQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sntech.de; spf=pass smtp.mailfrom=sntech.de; arc=none smtp.client-ip=185.11.138.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sntech.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sntech.de Received: from i5e8616c3.versanet.de ([94.134.22.195] helo=diego.localnet) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rwcHS-0005DQ-PJ; Tue, 16 Apr 2024 08:26:58 +0200 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: Vinod Koul , Kishon Vijay Abraham I , Arnd Bergmann Cc: Arnd Bergmann , Cristian Ciocaltea , Zhang Yubing , Frank Wang , Sebastian Reichel , linux-phy@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] phy: rockchip: fix CONFIG_TYPEC dependency Date: Tue, 16 Apr 2024 08:26:57 +0200 Message-ID: <2727344.mvXUDI8C0e@diego> In-Reply-To: <20240415174241.77982-1-arnd@kernel.org> References: <20240415174241.77982-1-arnd@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Am Montag, 15. April 2024, 19:42:25 CEST schrieb Arnd Bergmann: > From: Arnd Bergmann > > The newly added driver causes a warning about missing dependencies > by selecting CONFIG_TYPEC unconditionally: > > WARNING: unmet direct dependencies detected for TYPEC > Depends on [n]: USB_SUPPORT [=n] > Selected by [y]: > - PHY_ROCKCHIP_USBDP [=y] && ARCH_ROCKCHIP [=y] && OF [=y] > > WARNING: unmet direct dependencies detected for USB_COMMON > Depends on [n]: USB_SUPPORT [=n] > Selected by [y]: > - EXTCON_RTK_TYPE_C [=y] && EXTCON [=y] && (ARCH_REALTEK [=y] || COMPILE_TEST [=y]) && TYPEC [=y] > > Since that is a user-visible option, it should not really be selected > in the first place. Replace the 'select' with a 'depends on' as > we have for similar drivers. > > Fixes: 2f70bbddeb45 ("phy: rockchip: add usbdp combo phy driver") > Signed-off-by: Arnd Bergmann Reviewed-by: Heiko Stuebner > --- > drivers/phy/rockchip/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/phy/rockchip/Kconfig b/drivers/phy/rockchip/Kconfig > index a752ccdddb86..08b0f4345760 100644 > --- a/drivers/phy/rockchip/Kconfig > +++ b/drivers/phy/rockchip/Kconfig > @@ -120,8 +120,8 @@ config PHY_ROCKCHIP_USB > config PHY_ROCKCHIP_USBDP > tristate "Rockchip USBDP COMBO PHY Driver" > depends on ARCH_ROCKCHIP && OF > + depends on TYPEC > select GENERIC_PHY > - select TYPEC > help > Enable this to support the Rockchip USB3.0/DP combo PHY with > Samsung IP block. This is required for USB3 support on RK3588. >