Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp1084035pxv; Fri, 16 Jul 2021 00:57:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzp9hXEwDo3jgvTECrPBRtRbIJA9TTRpdaHXJJYM4sYWweQz5YZJN5npXgIxy+we9Q+Lkt3 X-Received: by 2002:a05:6402:d63:: with SMTP id ec35mr12963747edb.347.1626422255987; Fri, 16 Jul 2021 00:57:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626422255; cv=none; d=google.com; s=arc-20160816; b=gp4GWEIJsnXenzR+JQnWd8Leu6FayxTpTbydqIu8VDm3kjBL9m0WvLbcfDNX0lA+H9 JIsLIyeTwPfB/G3bsI3qctHLm2MIaLh6ky0cHkyOnR1khAFXTZIxQkj8Yu7SYrpEwY06 Ur6iaRn1WvzNc6nPSC4yT7lu04cUOh/+AW24IEldAXXglqWKx+q+FSnm9z5qZWlrSlff NPck6ThUwssYHk27DXTyekH/aWLa4NmJ2vN9btsMCFdswMdDab4FeD2jhXhpidu+ygeQ Yx1+eQwSFfoh6mZfQMc2GO1Q6y6DaYaejN7fDhWJr1/RroOl8Wbsa7QP3lGs7rVeS7S9 piuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=RXAnbCrKzXxdulWuWjhiBHqvi57wTj4Ohxo+kKl9HOw=; b=NR1WlhGRaHSkAGtBtwMakWQFpTRHtcIzMlNPdO/FXk1XCPg/oswR88vVERnHw2Ju0U pNWHWhwRDmv/uTqybPmGkMFVNHzL7ksQ/N3el87PPngsO88n3aP0CjJwmTLnkgOhT5IY r+nq5Z37dGAVGeQ6kBMgczOT8ARNxeayZzLGchFIIwXROORq5JMu8BXVop9U+E0Z7g5e wq+Ep4bscnRc077hrGT8c8foBaHymmvQjlBNQKsAf3Gq3gI7jnNKTOm/VrehT3APHJ0S 0Tidh2No0bdm/ASJybT8CTMGZgGxIcWMAc/aYFcpICyjJ6k2KqnNFfS7X/Boo96usVvx Pd6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="mQwNRk/1"; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w5si2446464edq.141.2021.07.16.00.57.12; Fri, 16 Jul 2021 00:57:35 -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=pass header.i=@linaro.org header.s=google header.b="mQwNRk/1"; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236935AbhGPH5i (ORCPT + 99 others); Fri, 16 Jul 2021 03:57:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231482AbhGPH5i (ORCPT ); Fri, 16 Jul 2021 03:57:38 -0400 Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A917DC061760 for ; Fri, 16 Jul 2021 00:54:42 -0700 (PDT) Received: by mail-wr1-x435.google.com with SMTP id i94so10996919wri.4 for ; Fri, 16 Jul 2021 00:54:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=RXAnbCrKzXxdulWuWjhiBHqvi57wTj4Ohxo+kKl9HOw=; b=mQwNRk/1js8bvvQAYSh0N7lvxkZBkN0e6L4NyrLFNRRTdKHXjbcs5BQT1LucqAlQ6j gAL5KxKHWwFVKF/5WSNtNR2oWbx/RSugbycGbPz/19kRUwCRxmd/b0PSefX0EI4Uwtew VRoYJ6qdAjIOQ3ToynlUMh91BiAD8jiEptoMLkhMa6OS+kL3NSkX6iovTsDbms+iFfYO wRugchhtSB8EEkStSapVdsjmFOSDg1RI/ng/pTPEPY2kxas4ueji269t162R4k3zWQGK TPXubHsJfNy7wpPsrTyNAf9Px2QbA7bVFkl5p8qo6sifqeZecwHuJr7hYwGUR5V27H4A A4gA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=RXAnbCrKzXxdulWuWjhiBHqvi57wTj4Ohxo+kKl9HOw=; b=kw6msnm4CUsU0T+gqwjisOTj9fxveXYH2aGc4ByrsvctlavWanCGXl/mxNhgOTpozF ZW4j1CuwDUS4xWE3PMSpVT9XaDI6vQOvu4DnUs0w3ZWOMD5b7brP7Q/ScRKE0rh48usm IWwmhG54ThvQJNqVcCAVebq/Rdt317lMYvZbLy7XG04XJiLmAaCltcJvIqYpA3MWk9dy aMACY2ZAtJYoM+3lRRSRzZREjedcykKKOzz47VVir80sNGLENQ5alUvWqVEjSCRzkvuW sKgg27VoF5a3beWEBkYf/JRueAA7diRmqfMk1UVealESv7PVSJ/MoPecph4NEB3nr+wr mv2g== X-Gm-Message-State: AOAM530tVAlWdJ2gtD4OGPKYxpi8FGACt3wnYZcyNaqoCgPGWfbbrWz9 jxObGiXe8E3k5yORPWrK9FPuWQ== X-Received: by 2002:adf:ea0f:: with SMTP id q15mr10050960wrm.145.1626422081303; Fri, 16 Jul 2021 00:54:41 -0700 (PDT) Received: from google.com ([31.124.24.141]) by smtp.gmail.com with ESMTPSA id l18sm11472838wme.29.2021.07.16.00.54.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Jul 2021 00:54:40 -0700 (PDT) Date: Fri, 16 Jul 2021 08:54:39 +0100 From: Lee Jones To: Hans de Goede Cc: Chen-Yu Tsai , linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, Clamshell Subject: Re: [PATCH v2] mfd: axp20x: Update AXP288 volatile ranges Message-ID: References: <20210629171239.6618-1-hdegoede@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210629171239.6618-1-hdegoede@redhat.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 29 Jun 2021, Hans de Goede wrote: > On Cherry Trail devices with an AXP288 PMIC the external SD-card slot > used the AXP's DLDO2 as card-voltage and either DLDO3 or GPIO1LDO > (GPIO1 pin in low noise LDO mode) as signal-voltage. > > These regulators are turned on/off and in case of the signal-voltage > also have their output-voltage changed by the _PS0 and _PS3 power- > management ACPI methods on the MMC-controllers ACPI fwnode as well as > by the _DSM ACPI method for changing the signal voltage. > > The AML code implementing these methods is directly accessing the > PMIC through ACPI I2C OpRegion accesses, instead of using the special > PMIC OpRegion handled by drivers/acpi/pmic/intel_pmic_xpower.c . > > This means that the contents of the involved PMIC registers can change > without the change being made through the regmap interface, so regmap > should not cache the contents of these registers. > > Mark the regulator power on/off, the regulator voltage control and the > GPIO1 control registers as volatile, to avoid regmap caching them. > > Specifically this fixes an issue on some models where the i915 driver > toggles another LDO using the same on/off register on/off through > MIPI sequences (through intel_soc_pmic_exec_mipi_pmic_seq_element()) > which then writes back a cached on/off register-value where the > card-voltage is off causing the external sdcard slot to stop working > when the screen goes blank, or comes back on again. > > The regulator register-range now marked volatile also includes the > buck regulator control registers. This is done on purpose these are > normally not touched by the AML code, but they are updated directly > by the SoC's PUNIT which means that they may also change without going > through regmap. > > Note the AXP288 PMIC is only used on Bay- and Cherry-Trail platforms, > so even though this is an ACPI specific problem there is no need to > make the new volatile ranges conditional since these platforms always > use ACPI. > > Fixes: dc91c3b6fe66 ("mfd: axp20x: Mark AXP20X_VBUS_IPSOUT_MGMT as volatile") > Fixes: cd53216625a0 ("mfd: axp20x: Fix axp288 volatile ranges") > Reported-and-tested-by: Clamshell > Signed-off-by: Hans de Goede Applied, thanks. -- Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog