From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B540818E for ; Thu, 18 Apr 2024 00:07:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713398873; cv=none; b=N8IY1YWEvp3SsdFb8fqnsn8luB5s/t7h7qp2XvJ4P1zlYehn87qJ9aWqoe3lUi9iduTkWrLC8V3+5ILCs75E+7U+OWzhrDd438279CtbKPNNoFll6uRf9RMztvQ5Fz/0ROR1mysPmVlDnKod3xvswlnsoOZUVcd/DWmujrtw5O0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713398873; c=relaxed/simple; bh=X2cCbx91QZfJW/xTsS4lQGNc45bO5sehXG54tMDzDg0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=j5gmF/oD0qcxrcgmNtzuvoEMLwFPAtcyLOvyLY8oq0y2e3w58rp7ESK7ngFda1ecHaAI/QTDDJCggHqsriFwrvY/Dm4QZVczIfoqWOSTnRC6oppGQ1K+uoEgc3CKtIHigqyf8R9nLoCm4Y73A0BoU0X5zAjLIy1vx5TO135sCzY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id D0051DA7; Wed, 17 Apr 2024 17:08:18 -0700 (PDT) Received: from localhost.localdomain (usa-sjc-mx-foss1.foss.arm.com [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 1977A3F64C; Wed, 17 Apr 2024 17:07:48 -0700 (PDT) From: Andre Przywara To: Chen-Yu Tsai , Lee Jones , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@lists.linux.dev, Jernej Skrabec , Samuel Holland , Ryan Walklin , Chris Morgan Subject: [PATCH v2 1/5] mfd: axp20x: AXP717: Fix missing IRQ status registers range Date: Thu, 18 Apr 2024 01:07:32 +0100 Message-Id: <20240418000736.24338-2-andre.przywara@arm.com> X-Mailer: git-send-email 2.35.8 In-Reply-To: <20240418000736.24338-1-andre.przywara@arm.com> References: <20240418000736.24338-1-andre.przywara@arm.com> Precedence: bulk X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit While we list the "IRQ status *and acknowledge*" registers as volatile, they are missing from the writable range array, so acknowledging any interrupts was met with an -EIO error. Add the five registers that hold those bits to the writable array. Fixes: b5bfc8ab2484 ("mfd: axp20x: Add support for AXP717 PMIC") Reported-by: Chris Morgan Signed-off-by: Andre Przywara --- drivers/mfd/axp20x.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c index 48ce6ea693cea..d8ad4e120d379 100644 --- a/drivers/mfd/axp20x.c +++ b/drivers/mfd/axp20x.c @@ -210,6 +210,7 @@ static const struct regmap_access_table axp313a_volatile_table = { static const struct regmap_range axp717_writeable_ranges[] = { regmap_reg_range(AXP717_IRQ0_EN, AXP717_IRQ4_EN), + regmap_reg_range(AXP717_IRQ0_STATE, AXP717_IRQ4_STATE), regmap_reg_range(AXP717_DCDC_OUTPUT_CONTROL, AXP717_CPUSLDO_CONTROL), }; -- 2.35.8