From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934249AbdCVL3z (ORCPT ); Wed, 22 Mar 2017 07:29:55 -0400 Received: from mx1.redhat.com ([209.132.183.28]:34124 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759380AbdCVL3c (ORCPT ); Wed, 22 Mar 2017 07:29:32 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 8E69D15561 Authentication-Results: ext-mx05.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx05.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=hdegoede@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 8E69D15561 From: Hans de Goede To: "Rafael J . Wysocki" , Len Brown , Lee Jones Cc: Hans de Goede , Andy Shevchenko , linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/5] mfd: axp20c-i2c: Select designware i2c-bus driver on x86 Date: Wed, 22 Mar 2017 12:29:21 +0100 Message-Id: <20170322112923.20200-4-hdegoede@redhat.com> In-Reply-To: <20170322112923.20200-1-hdegoede@redhat.com> References: <20170322112923.20200-1-hdegoede@redhat.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Wed, 22 Mar 2017 11:29:32 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On x86 the axp288 PMIC provides an ACPI OPRegion handler, which must be available before other drivers using it are loaded, which can only be ensured if the mfd, opregion driver and i2c-bus drivers are built in. The opregion driver is a bool depending on MFD_AXP20X_I2C ensuring that it will be builtin if the opregion driver is to be enabled, add a select for the designware-options to ensure those get built in too. Signed-off-by: Hans de Goede --- drivers/mfd/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig index 0c6a967..08f8dcb 100644 --- a/drivers/mfd/Kconfig +++ b/drivers/mfd/Kconfig @@ -148,6 +148,8 @@ config MFD_AXP20X_I2C tristate "X-Powers AXP series PMICs with I2C" select MFD_AXP20X select REGMAP_I2C + select I2C_DESIGNWARE_PLATFORM if X86 + select I2C_DESIGNWARE_BAYTRAIL if X86 depends on I2C help If you say Y here you get support for the X-Powers AXP series power -- 2.9.3