Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2397054pxb; Fri, 29 Oct 2021 00:03:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxJuL1MH62jk9eBKi/CP2scuJwaLLE9dYwqgv9tV0VduAmWBISiAVt22dORHe7bXj/gyK/I X-Received: by 2002:a17:90b:38c3:: with SMTP id nn3mr9811612pjb.110.1635491034360; Fri, 29 Oct 2021 00:03:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635491034; cv=none; d=google.com; s=arc-20160816; b=ncEMyUGWG7oZHZ4Zm5vIznbxqFJtuIrQnv89IzKOufKyDSBF8dwgQ/+3onXmGAIoEf bQYJrKit8ZmI+tHgRRONX4r8aY2tkc0LFLKjzRN4k/Lwuh3kApgXAA6GcCven/tAJn/n h9gl0r0r6Kw07qg5vBjXt+cV7X5X0AeSRSDK2Y+Ke9A4G/SNVWB/tUU15PIS+1keviTF 1zpw4wqV8qBw2XJ1mHKPDebBioxXceYHFF61PFUUWTm6lpsGMtN1nMW0yxkdhiPlrZxq aaiq6w/ylnIW+uBTAcLi4IxxAzf4nm0388vV5AKHJxnK38iS8lFMnKZVT2pVIEx5hZMf W8IQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:from:dkim-signature; bh=FGKCxBYPG+9QltouHPAURJ0WvYlb6RofMMvOWZsp9UY=; b=BZs6PBYRuSwWqHJ/3z2GJ/cptmj5M9uybhSdodjzLB7/K7z165J2vYvxOYYBfjJSKB fty/sn6JyRU8PrjT2zyuwm4BJvhrwBhzdFB05REtTZ14sndDeswlL2uFOLYXrMgcOtZY 7EsU/PHBaXmZ+ZfXOuYuV6XAXmoB24Mroa+zW3c0aTR+CBPX8fqZexIOM0R9C69D2jyM oqcFCQkK9tG/iFCBrgP0aUeVvAM8mY4EwM3w1s4060hRjp9XSPINHd+/OvBnuNQLo+BC YH3s6WFP/Tr1bT5b6Y0p0e5MuzkVrrXpbRNTeiKWscDZ8svIA0YjQkOWfODQCgoNatuH p0wQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kernel.org header.s=k20201202 header.b=DWMZOPIQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u1si8255170plf.139.2021.10.29.00.03.41; Fri, 29 Oct 2021 00:03:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@kernel.org header.s=k20201202 header.b=DWMZOPIQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232103AbhJ2HEo (ORCPT + 99 others); Fri, 29 Oct 2021 03:04:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:59940 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230252AbhJ2HEn (ORCPT ); Fri, 29 Oct 2021 03:04:43 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A528C60F22; Fri, 29 Oct 2021 07:02:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1635490935; bh=HUD22CJu2/7EA+CW0xppVEoR4ensKB8sBgNd3uOAMxw=; h=From:To:Cc:Subject:Date:From; b=DWMZOPIQcA0ua3sIprhBTZ8MdToPSfuvRNNMJV+bnqLsu0TTgW3jfSJqnUKiND1RJ +5u9pEQYBmhkLrntkEBDRjfHwTkoGc1j8UhM5DURPRPYNc0zOXQcwF0tBvb0fFZhz0 8IlP9YZst2TVVDVzoQYrBRux3jNZ1p6mP6YtPqbvcyWV/i3FrUxfU06zqBprL2++2l ZUr7oKQiQsTPqUM6aEKSSISpAvIfJwTQLwOIC+i3Sj2hLd5A8XJX2DF4trnTIK6Zdo iekloAGSWswILZMevQ0oHhKuwuGqXwSgIqJUK1xvGX+3RJNIzmOHfbPobJb7CFm7fr xPwR+Aw6pleHw== Received: by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1mgLu0-002qIn-SC; Fri, 29 Oct 2021 08:02:12 +0100 From: Mauro Carvalho Chehab Cc: linuxarm@huawei.com, mauro.chehab@huawei.com, Mauro Carvalho Chehab , Lee Jones , linux-kernel@vger.kernel.org, Hans de Goede Subject: [PATCH] mfd: Kconfig: change INTEL_SOC_PMIC_CHTDC_TI to bool Date: Fri, 29 Oct 2021 08:02:06 +0100 Message-Id: X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: Mauro Carvalho Chehab To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The INTEL_SOC_PMIC_CHTDC_TI should be initialized early, before loading the fbcon driver, as otherwise the i915 driver will fail to configure pwm: [ 13.674287] fb0: switching to inteldrmfb from EFI VGA [ 13.682380] Console: switching to colour dummy device 80x25 [ 13.682468] i915 0000:00:02.0: vgaarb: deactivate vga console [ 13.682686] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013). [ 13.685773] i915 0000:00:02.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=io+mem:owns=io+mem [ 13.686219] i915 0000:00:02.0: [drm] *ERROR* Failed to configure the pwm chip [ 13.699572] [drm] Initialized i915 1.6.0 20200313 for 0000:00:02.0 on minor 0 [ 13.739044] fbcon: i915drmfb (fb0) is primary device [ 14.037792] intel_soc_pmic_exec_mipi_pmic_seq_element: No PMIC registered ... [ 24.621403] intel_pmic_install_opregion_handler: Ask to register OpRegion for bus ID=PMI2, HID=INT33F5 [ 24.630540] intel_pmic_install_opregion_handler: OpRegion registered (some extra debug printk's were added to the above) As suggested by Hans, this patch also addresses an issue with the dependencies, as, for this driver to be a bool, it also need the I2C core and the I2C_DESIGNWARE driver to be builtin. Suggested-by: Hans de Goede Signed-off-by: Mauro Carvalho Chehab --- drivers/mfd/Kconfig | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig index ca0edab91aeb..f9092c79c4e8 100644 --- a/drivers/mfd/Kconfig +++ b/drivers/mfd/Kconfig @@ -632,7 +632,7 @@ config INTEL_SOC_PMIC_CHTWC config INTEL_SOC_PMIC_CHTDC_TI tristate "Support for Intel Cherry Trail Dollar Cove TI PMIC" depends on GPIOLIB - depends on I2C + depends on I2C = y && I2C_DESIGNWARE_PLATFORM=y depends on ACPI depends on X86 select MFD_CORE @@ -642,6 +642,10 @@ config INTEL_SOC_PMIC_CHTDC_TI Select this option for supporting Dollar Cove (TI version) PMIC device that is found on some Intel Cherry Trail systems. + This option is a bool as it provides an ACPI OpRegion which must be + available before any devices using it are probed. This option also + needs the designware-i2c driver to be builtin for the same reason. + config INTEL_SOC_PMIC_MRFLD tristate "Support for Intel Merrifield Basin Cove PMIC" depends on GPIOLIB -- 2.31.1