Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6276230imu; Mon, 21 Jan 2019 06:14:36 -0800 (PST) X-Google-Smtp-Source: ALg8bN6l+f6OJuWJ4fa8JPvAhhVlo2KapIxo1uDhj33SZ7sQGMsRdraKQDXH+SVhchAHrrsFHiCC X-Received: by 2002:a17:902:8607:: with SMTP id f7mr29588273plo.123.1548080076233; Mon, 21 Jan 2019 06:14:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548080076; cv=none; d=google.com; s=arc-20160816; b=APF6ttmHYZ8hGPKswIidE6tDlUZ7gfFMyO1BWVbCUsIRjNxcjBan59K8gRiieKsfgO oFDAXCQt/FOmfdgLT/iPC2mCFPWHu4MCsE0YkyELzJetbrfi+jB0kK0aGjg+V9j1RcqV WX1FpHHFiyol3fpUsgVn8GJgRI2j8iRwlfeauPpCbpfeP0ubqjbmj4VgvOVv5sZCVvUM d6GyBdCDBlLaLpVh6EkvZMpZx14+RcP5DLYzM7NCmmlvlxafrq1WHzFpod9aikMGFjWp TtEC5Ly/R2Qxp9WCMTToOJiyezYCqVduI93e8XnfOKR1PEg1si6cygxPudKDisrHRygh f1cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=XEs30a78oeggiv6uteHj3dDlyHdHZgjcAPPk+Dzim3s=; b=I6vCrsOoNJJ1+yHiL+32WrRiEqWWP8k20SVFiewvBeu7QCKQzcmq/j8nldvdKd2dl7 Sc1iCj+g/e8PNxvxH4+w/bIYoZgMIE0hproN5H7OK5bgPQ2tmOO//A/18JygSZne7NOy ED4vddgL6Td7NRfg0xe8dFjOaOGr6HUXGuMRTKo45gJAIqsQjyLWSN66TjwbxxU4QRA6 K0BmnPzfuJeBPUxS8G8RFYiZEwjz9xVW4j80p4i4cOCPwHbgj5OJvO7LYQINDbRdGGQd 3AFuFjjP/xa7IUgxMHWSVz9gfiDVwiCUmEmLzS4yWNdnwMbVweGDJTUG5c9MpiGopZN+ mVaw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m38si12618934pgl.125.2019.01.21.06.14.20; Mon, 21 Jan 2019 06:14:36 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730828AbfAUOLg (ORCPT + 99 others); Mon, 21 Jan 2019 09:11:36 -0500 Received: from mga06.intel.com ([134.134.136.31]:47949 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729764AbfAUOLf (ORCPT ); Mon, 21 Jan 2019 09:11:35 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Jan 2019 06:11:34 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,503,1539673200"; d="scan'208";a="127675435" Received: from mylly.fi.intel.com (HELO mylly.fi.intel.com.) ([10.237.72.159]) by orsmga002.jf.intel.com with ESMTP; 21 Jan 2019 06:11:31 -0800 From: Jarkko Nikula To: linux-kernel@vger.kernel.org Cc: Lee Jones , Randy Dunlap , Hans de Goede , Rajmohan Mani , linux-i2c@vger.kernel.org, Jarkko Nikula , Stable Subject: [PATCH] mfd: Fix I2C_DESIGNWARE_PLATFORM dependencies Date: Mon, 21 Jan 2019 16:11:28 +0200 Message-Id: <20190121141128.5283-1-jarkko.nikula@linux.intel.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org INTEL_SOC_PMIC, INTEL_SOC_PMIC_CHTWC and MFD_TPS68470 select the I2C_DESIGNWARE_PLATFORM without its dependencies making it possible to see warning and build error like below: WARNING: unmet direct dependencies detected for I2C_DESIGNWARE_PLATFORM Depends on [n]: I2C [=y] && HAS_IOMEM [=y] && (ACPI [=y] && COMMON_CLK [=n] || !ACPI [=y]) Selected by [y]: - MFD_TPS68470 [=y] && HAS_IOMEM [=y] && ACPI [=y] && I2C [=y]=y /usr/bin/ld: drivers/i2c/busses/i2c-designware-platdrv.o: in function `dw_i2c_plat_resume': i2c-designware-platdrv.c:(.text+0x62): undefined reference to `i2c_dw_prepare_clk' /usr/bin/ld: drivers/i2c/busses/i2c-designware-platdrv.o: in function `dw_i2c_plat_suspend': i2c-designware-platdrv.c:(.text+0x9a): undefined reference to `i2c_dw_prepare_clk' /usr/bin/ld: drivers/i2c/busses/i2c-designware-platdrv.o: in function `dw_i2c_plat_probe': i2c-designware-platdrv.c:(.text+0x41c): undefined reference to `i2c_dw_prepare_clk' /usr/bin/ld: i2c-designware-platdrv.c:(.text+0x438): undefined reference to `i2c_dw_read_comp_param' /usr/bin/ld: i2c-designware-platdrv.c:(.text+0x545): undefined reference to `i2c_dw_probe' /usr/bin/ld: i2c-designware-platdrv.c:(.text+0x727): undefined reference to `i2c_dw_probe_slave' Fix this by making above options to depend on I2C_DESIGNWARE_PLATFORM being built-in. I2C_DESIGNWARE_PLATFORM is a visible symbol with dependencies so in general the select should be avoided. Reported-by: Randy Dunlap Fixes: acebcff9eda8 ("mfd: intel_soc_pmic: Select designware i2c-bus driver") Fixes: de85d79f4aab ("mfd: Add Cherry Trail Whiskey Cove PMIC driver") Fixes: 9bbf6a15ce19 ("mfd: Add support for TPS68470 device") Cc: Stable # v4.14+ Signed-off-by: Jarkko Nikula --- drivers/mfd/Kconfig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig index f461460a2aeb..6a84a8ecd4a9 100644 --- a/drivers/mfd/Kconfig +++ b/drivers/mfd/Kconfig @@ -519,10 +519,10 @@ config INTEL_SOC_PMIC bool "Support for Crystal Cove PMIC" depends on ACPI && HAS_IOMEM && I2C=y && GPIOLIB && COMMON_CLK depends on X86 || COMPILE_TEST + depends on I2C_DESIGNWARE_PLATFORM=y select MFD_CORE select REGMAP_I2C select REGMAP_IRQ - select I2C_DESIGNWARE_PLATFORM help Select this option to enable support for Crystal Cove PMIC on some Intel SoC systems. The PMIC provides ADC, GPIO, @@ -548,10 +548,10 @@ config INTEL_SOC_PMIC_CHTWC bool "Support for Intel Cherry Trail Whiskey Cove PMIC" depends on ACPI && HAS_IOMEM && I2C=y && COMMON_CLK depends on X86 || COMPILE_TEST + depends on I2C_DESIGNWARE_PLATFORM=y select MFD_CORE select REGMAP_I2C select REGMAP_IRQ - select I2C_DESIGNWARE_PLATFORM help Select this option to enable support for the Intel Cherry Trail Whiskey Cove PMIC found on some Intel Cherry Trail systems. @@ -1420,9 +1420,9 @@ config MFD_TPS65217 config MFD_TPS68470 bool "TI TPS68470 Power Management / LED chips" depends on ACPI && I2C=y + depends on I2C_DESIGNWARE_PLATFORM=y select MFD_CORE select REGMAP_I2C - select I2C_DESIGNWARE_PLATFORM help If you say yes here you get support for the TPS68470 series of Power Management / LED chips. -- 2.20.1