Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2692755lqt; Mon, 22 Apr 2024 20:36:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWMoHCo3EnpRPHMVCBFGiOoS2JB14RVWqk1Odxc7S9mhAAOUkEYFkuJVAuXuNOlw9yBHMdlkMBBp1cHocNKZyqjLtrgzY2gH/VQnSF6MA== X-Google-Smtp-Source: AGHT+IE++UzYj44u/BHPziWWvxoz5hsNbvOu2NKgRNhlGFr9LglObYqKEhZ/+NbJcJe19xN3SDal X-Received: by 2002:a05:6a21:8197:b0:1a7:a422:7394 with SMTP id pd23-20020a056a21819700b001a7a4227394mr1772787pzb.17.1713843373185; Mon, 22 Apr 2024 20:36:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713843373; cv=pass; d=google.com; s=arc-20160816; b=PCb3okSm0lr5uYeoOWjYrSL6s+OlyVyDZ+xfCa2EVCysAS7mRgxqzPJ+C/tTU0J+mG XUNAm/VFjV2fGeh2t8cM0vBwMNHYs2O/zJ3vHrG9P5NF72Gf8keWqSObF357A6D3hT9Z 1AQkRdi4HVyiQRUQ7eKs/kNn6KYu+oRe1Kmc9pVdgesNNxcj9WtNpKIgG+TKooNk/Hwd 9caWFeXRl6wdu62M1zS2YatnA2CX/2wGN9EB7buV174ZS4uyv42mzaJgqyIJN/aEZqTX 3UArvQ7I7kmmMSh8cb66LWlU+at1nPLqNAkB/LdMlhZMzW67NKUUmq+ZrCRhwRLPyy6e Qn+g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:dkim-signature:date; bh=3PjLzYXPrvsnRRLgN9SmXMrZBQDUGBp9xggolXW6asY=; fh=m/c6w5OyUA8vKLnp5ivku7cjSB94tDpuJLAg6VArN3Y=; b=zxHBbt8/9CM3jNJoEI36L0x8V+nt/EQv3PZ3SEX7Y6SlmSmnqCyxFYyvEzOlxDfyWW U7Yo0SFfVDmnptX9gZYLDu3iDb4IuewKnxBH4PFrwL5ooDuDldL5v71wlRZZKAwBX7Qj 5vL+LG5dr8YYhUgRFydYH8I523KUxQqDiJBIQXL1YDlVU4klVEDbBF0K84HzuNsyEINs EMTgnUvrTC5ucJI9hyHtHotIHjqAzWfkQASRyMUrpMPGaFVme4wrB+EglwsIKijSYF/x rkVV8nmsXn9vRDjnTUPbDs3gBcl+qnJXpisydvPdWYaMz/1D6BtfQ42ffv8NjkIoFPO5 3WLQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@jookia.org header.s=key1 header.b=P35gbpxi; arc=pass (i=1 dkim=pass dkdomain=jookia.org dmarc=pass fromdomain=jookia.org); spf=pass (google.com: domain of linux-kernel+bounces-154349-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-154349-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=jookia.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id fa12-20020a056a002d0c00b006e6981a7cc6si9192346pfb.171.2024.04.22.20.36.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 20:36:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-154349-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@jookia.org header.s=key1 header.b=P35gbpxi; arc=pass (i=1 dkim=pass dkdomain=jookia.org dmarc=pass fromdomain=jookia.org); spf=pass (google.com: domain of linux-kernel+bounces-154349-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-154349-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=jookia.org 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 6F348B25B7E for ; Tue, 23 Apr 2024 00:26:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2F87E1CF89; Tue, 23 Apr 2024 00:16:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=jookia.org header.i=@jookia.org header.b="P35gbpxi" Received: from out-185.mta0.migadu.com (out-185.mta0.migadu.com [91.218.175.185]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F3E2923B1 for ; Tue, 23 Apr 2024 00:16:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.185 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713831399; cv=none; b=aVruMiGTkDJOYjYienBxbZZI4Er9HJU08SDd6F/DVobTZKtZGIs4HL7MMKXNRhm3xTj9DdHFlv+oPUurXpsWHcjQUJZgih/ECJ3GLrJnlMnOD5dBr70CZ8nj+AAXHqoskC0eUkt1yx8avgYTeID/3t+voFO4pc/Q2xSK5sevXZk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713831399; c=relaxed/simple; bh=jckes6tdBgedWt9S82nZ/ZGhD+x9LMtO4OcCYzGqsas=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=CoPs52lchxsiEph8wJjQBbaytyuFc0An/Cwfacwo8g850u6ELb62+q0KJg7O2QHh2OapK6Rr/69c5EbXWQucWwLSn5YTwokdKD5Fm6hloyMTpJ72i5YzdUI9p0vVgFuBAzUPHulXNJ3UG1PXa6NkjyrbaW2lJz9kJs2vZcAHVAs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=jookia.org; spf=none smtp.mailfrom=jookia.org; dkim=pass (2048-bit key) header.d=jookia.org header.i=@jookia.org header.b=P35gbpxi; arc=none smtp.client-ip=91.218.175.185 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=jookia.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=jookia.org Date: Tue, 23 Apr 2024 10:16:03 +1000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jookia.org; s=key1; t=1713831396; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=3PjLzYXPrvsnRRLgN9SmXMrZBQDUGBp9xggolXW6asY=; b=P35gbpxikG4isFEFyxUCsLxoEDh2Fi3JvNd+/v+/Q/CtlSYfvILkHZ5KHxuW0Sm+a8CUGA oalgFTHK7mH9UsRYic1HtfjfQWBfrxehiJwyTizL7tCnaeHTiyqxgWik3y/mALHxri0Xes goCw6krleG3zqkH62VqbNEe9t7zfe2sCcs8cMHXpCdSwsWHnsB+0GUZdunYSpTSoBc83C+ G36vw5ExIq5PBzTXsMBM/GgtJWMFI6DEdSope9kwPdkXNTbFw4J5NcmH5vGIhqPVBPquZ8 +ntpobKzWvc1yWsWEwrOADq40YGRBorzvxnYjWCte4GWsH+QF50qy9LKhIewhg== X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: John Watts To: Andre Przywara Cc: Chen-Yu Tsai , Lee Jones , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@lists.linux.dev, Jernej Skrabec , Samuel Holland , Ryan Walklin , Chris Morgan Subject: Re: [PATCH v2 1/5] mfd: axp20x: AXP717: Fix missing IRQ status registers range Message-ID: References: <20240418000736.24338-1-andre.przywara@arm.com> <20240418000736.24338-2-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-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240418000736.24338-2-andre.przywara@arm.com> X-Migadu-Flow: FLOW_OUT On Thu, Apr 18, 2024 at 01:07:32AM +0100, Andre Przywara wrote: > 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. Hi, This change looks good to me. Checked against the datasheet. John. Reviewed-by: John Watts > > 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 >