Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp970991lqb; Wed, 17 Apr 2024 17:08:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXu/0WG6csppAejnzR2vZcc9OydTNF8+1yZTGf0eFnmieEHSrGxrD+anQ92T9MEI/JrjbaL0XZm6umt4TFDzYtP35ZnRmNhDo3Ul6l/dw== X-Google-Smtp-Source: AGHT+IHADg94GFzVic3YSv1EWn01Jo4po6CWoiWzpx09JG2iDgcUCxqrWIAD0PmrnXWRrqpUkYur X-Received: by 2002:a50:cc9c:0:b0:56b:cfef:b2de with SMTP id q28-20020a50cc9c000000b0056bcfefb2demr611438edi.26.1713398892095; Wed, 17 Apr 2024 17:08:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713398892; cv=pass; d=google.com; s=arc-20160816; b=onlGAGRZRcPYkSML0Yn24Midx7SFVXWugKNVBwP8pLutS3lFdHbzsP36QvoFhU/p9E dn0G9t/Yq9OA7/ZMtMYjzYmEtgSJOSJVm1bpPgT0cl0l1GdEwoH/TZg49HO+95wDAV/t rgan9TM9jwz19J1n1ZY4FFH6DbLTVfPNjUw56V9IWFMNEPJSDYdEoVuwiAsMoTDfPFiP o1P68nb/k5qGHp7R0Lj6rtr3T+vTMMG/LT2geKd52slRm75xaIkUatbU4o2/9qLqpm79 enmOxQGhejdNL5vhI2Z2sZbgJ8cKKrrGxpcEXBwyTWWMDMDW1WYDfRJakbOJe3JTMCgM Gh0w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=KPo6Jc4h0sRZ2lVvw4v/T4LIugb9esZYph2YxXSTtvo=; fh=pHEgU8vIZ2dKZDfo5+HnJ4jYKuwiESD1XRMEK8rBrI8=; b=dcCzPfQ0O5gRrtA0g8XGWH2AOrjjbmp2yCgjbPRoIGipq+CpVmA+ixtOXtMOR7/hJX E9UmcpwMPaJDopYymo14UKm7Z8nrd2k50PZ9NMQ8+U/dMHrerpRgsmnuD4f8rUft5Q/+ CbYVQO92+uyTBTAncQzYmVXx7IATPRcn0opJkU+Rm5m3BgYSRuIDyrlFiq0WzEb5Voc8 FioQozYhwMp+Dqu01L6M8+A/Fi7VmuJiNT/qJgOdp0hxF0z4D3FV8OjavAwciDIPO0kH jLvlbikq0W0U5bbZHc3LcKIJ5KiWQvY3gkZu0oMxguvKGPhgQLAvD+cd7KSek6sSMZSx GFOA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-149340-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-149340-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id b9-20020aa7df89000000b0056fffa12b1esi170831edy.199.2024.04.17.17.08.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 17:08:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-149340-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-149340-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-149340-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id CD1591F21EB2 for ; Thu, 18 Apr 2024 00:08:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C68CB5660; Thu, 18 Apr 2024 00:07:54 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B53D9181; 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=1713398874; cv=none; b=ck47VMdXygpvdTAesAKjMc1ZzHxKLOWBmGcKsk2F419NrT7VSsRjKNPm57z1cBvTNGdNZJqyrP7t88s+Y+6T9LsZ9gphlFdssruqnB3xCWLXD6GFpZdQG8IabnSinJvvfMi18Q9xySpaooTdunp/EZGVpcodj5AWOLXnkEdjXzg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713398874; c=relaxed/simple; bh=X2cCbx91QZfJW/xTsS4lQGNc45bO5sehXG54tMDzDg0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=QONBAjd5oN/Be/UdDVZigRz3ccSZm4K9DCFYlnnUuvKkJQT0dn1NI2+DN17klFV1fZlH2KHpOkSVC9Si0GlIhyRCeKKdEoSQYbVbX5UT5EpIomzc/yvL6JPZ/jtQkjh3gyNQzSnofZNThgmHgj3D705fL4zei0lm1wiS5VgUNm8= 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-kernel@vger.kernel.org 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