From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.93]) (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 9CACC134AF for ; Thu, 7 Dec 2023 09:11:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="F/FJ0T/L" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701940313; x=1733476313; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=ZcE5r+onmRZXLVOd8w757XhOgdVfZWpGAi/Ixy4pJPk=; b=F/FJ0T/LvTyIDKdsGAEz5W7k/zqOj/3piuNJ0lYQLHihIvfCsMsPVL4v ORMXuUu0xBmE3yR3ktVhW2hodV9VP7iBm3Z787zE/iO9Fn7PnQLmQnmMG TzS5WO+ZvmcG/mNVrJRfD3OSeuAzqROMCevdf3hYVGR24lVRv8HLyk33T 2S7mReTKeSOo8Ao4JP9kh54o80J9uz1Yl4er3COScDIToKlgtXuSNfejG YvrYsI6U0lAnw+dHT+52M42aBtLSDbQAayeKX84Y6IFgQ9u7+qt18DXiD JBIPGdz/0vtaopi0ZrL/N+l2KgFM4c2O2BqynVTdNi2RN65mfBzzAq1s1 Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10916"; a="391374007" X-IronPort-AV: E=Sophos;i="6.04,256,1695711600"; d="scan'208";a="391374007" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Dec 2023 01:11:48 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10916"; a="771658852" X-IronPort-AV: E=Sophos;i="6.04,256,1695711600"; d="scan'208";a="771658852" Received: from kuha.fi.intel.com ([10.237.72.185]) by orsmga002.jf.intel.com with SMTP; 07 Dec 2023 01:11:45 -0800 Received: by kuha.fi.intel.com (sSMTP sendmail emulation); Thu, 07 Dec 2023 11:11:44 +0200 Date: Thu, 7 Dec 2023 11:11:44 +0200 From: Heikki Krogerus To: Nathan Chancellor Cc: dmitry.baryshkov@linaro.org, gregkh@linuxfoundation.org, linux@roeck-us.net, neil.armstrong@linaro.org, bryan.odonoghue@linaro.org, linux-usb@vger.kernel.org, dri-devel@lists.freedesktop.org, patches@lists.linux.dev Subject: Re: [PATCH 2/3] usb: typec: qcom-pmic-typec: Only select DRM_AUX_HPD_BRIDGE with OF Message-ID: References: <20231205-drm_aux_bridge-fixes-v1-0-d242a0ae9df4@kernel.org> <20231205-drm_aux_bridge-fixes-v1-2-d242a0ae9df4@kernel.org> Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231205-drm_aux_bridge-fixes-v1-2-d242a0ae9df4@kernel.org> On Tue, Dec 05, 2023 at 01:13:35PM -0700, Nathan Chancellor wrote: > CONFIG_DRM_AUX_HPD_BRIDGE depends on CONFIG_OF but that dependency is > not included when CONFIG_TYPEC_QCOM_PMIC selects it, resulting in a > Kconfig warning when CONFIG_OF is disabled: > > WARNING: unmet direct dependencies detected for DRM_AUX_HPD_BRIDGE > Depends on [n]: HAS_IOMEM [=y] && DRM_BRIDGE [=y] && OF [=n] > Selected by [m]: > - TYPEC_QCOM_PMIC [=m] && USB_SUPPORT [=y] && TYPEC [=m] && TYPEC_TCPM [=m] && (ARCH_QCOM || COMPILE_TEST [=y]) && (DRM [=m] || DRM [=m]=n) && DRM_BRIDGE [=y] > > Only select CONFIG_DRM_AUX_HPD_BRIDGE with both CONFIG_DRM_BRIDGE and > CONFIG_OF to clear up the warning. > > Fixes: 7d9f1b72b296 ("usb: typec: qcom-pmic-typec: switch to DRM_AUX_HPD_BRIDGE") > Signed-off-by: Nathan Chancellor Shouldn't DRM_BRIDGE depend on/select OF instead? Reviewed-by: Heikki Krogerus > --- > drivers/usb/typec/tcpm/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/usb/typec/tcpm/Kconfig b/drivers/usb/typec/tcpm/Kconfig > index 64d5421c69e6..8cdd84ca5d6f 100644 > --- a/drivers/usb/typec/tcpm/Kconfig > +++ b/drivers/usb/typec/tcpm/Kconfig > @@ -80,7 +80,7 @@ config TYPEC_QCOM_PMIC > tristate "Qualcomm PMIC USB Type-C Port Controller Manager driver" > depends on ARCH_QCOM || COMPILE_TEST > depends on DRM || DRM=n > - select DRM_AUX_HPD_BRIDGE if DRM_BRIDGE > + select DRM_AUX_HPD_BRIDGE if DRM_BRIDGE && OF > help > A Type-C port and Power Delivery driver which aggregates two > discrete pieces of silicon in the PM8150b PMIC block: the > > -- > 2.43.0 -- heikki