Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1928511rwb; Tue, 29 Nov 2022 23:04:29 -0800 (PST) X-Google-Smtp-Source: AA0mqf6apxHhLuUHE0hzgg52/C+hphh94dX0Wb7ze8kVm74tNnW6t5xO90YVj8SMXoX+kXOeYXVp X-Received: by 2002:a17:907:3e11:b0:7c0:7b2b:db17 with SMTP id hp17-20020a1709073e1100b007c07b2bdb17mr9494316ejc.312.1669791869709; Tue, 29 Nov 2022 23:04:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669791869; cv=none; d=google.com; s=arc-20160816; b=yeHIzB7s+Czu9cZFIxuQxlKTvBuV17/Jn6O/R2DW5zPiHHD84F8vQKdWgln8al1o0A kyGI9XhxeUfD+sIfB0Ar0YPr8ZXLHZxAVHLoJSpGDs5AGnDZ51EMJcLzN2m2S40ZIkP1 5I86hBJPxh/m+IHv9L89jrbC71oQ0+WUbKb5o25Hl8lgVHkQbKMw++jlzGUAKC48R+b1 Cz7akzATMxXZ6xf7WcBL1CVZxS0rdW53EUoPVN4nD4CmAobDIlqKucZZp9wgnJLdR4dh VNAHGkD3/pyqWg8O3zvCZWU4UneBh9VnR0EhQVjmbCkf983p+h4b3J/yQBVCfUO4sCBc FKYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:feedback-id:dkim-signature:dkim-signature; bh=VW9z6eh5MzCdps/w72rAtJ1o+Cq+BDu6YqFNPuN/Giw=; b=kBghcE550RA5pS7OBIT5aDgIo7oGrHb9hMFWoiHBxT+SokGzR809VFwKaNF9lCh2cp 31VqKHuzd61fMJSHPmOyK1SYCjljDjlAdyXSZ70oypXAqhmxdrC2wu3W80K8F2s/lFIM TF0jvHUBDKulxCyO6xVRGDehHvA+vIUrXaeDgX2j5M+zHkiL3HwByYFl5bCzTwsy/VEV uk+XMpbO1cCxZFPpS8bbVog+CE7Zeu8y88nQn+wOd5QoMhc5ugJoqcAJt+v2+Z03C1DG UCVbH/dPBhtDkHmjDOmHpZ3oT8q52KAHi4PON8du4y7UMO+SXwdciCc9i4UF7RK9afvk FSpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sholland.org header.s=fm2 header.b=Q17t3D8D; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=YdMkbn5s; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sholland.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cb21-20020a0564020b7500b004672f952b7asi696547edb.203.2022.11.29.23.04.08; Tue, 29 Nov 2022 23:04:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@sholland.org header.s=fm2 header.b=Q17t3D8D; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=YdMkbn5s; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sholland.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232267AbiK3Gdm (ORCPT + 86 others); Wed, 30 Nov 2022 01:33:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231625AbiK3Gdh (ORCPT ); Wed, 30 Nov 2022 01:33:37 -0500 Received: from wout3-smtp.messagingengine.com (wout3-smtp.messagingengine.com [64.147.123.19]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC2352EF41 for ; Tue, 29 Nov 2022 22:33:36 -0800 (PST) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 14DC032007D7; Wed, 30 Nov 2022 01:33:36 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Wed, 30 Nov 2022 01:33:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm2; t=1669790015; x= 1669876415; bh=VW9z6eh5MzCdps/w72rAtJ1o+Cq+BDu6YqFNPuN/Giw=; b=Q 17t3D8DfFNssoKUiUtkMrJCYV4Qu5Lns4Ns/3WMMC/3Utb/z7DIhjx6kTaVByRUk cSfAwtocDMBF8U37kjf9T6Ia/HAKxVLYda2oskkr726sxnoyYXw83CycFxwqlII/ 9vNUdmISxvpnRjMcwRFU8YcygfWGxX1fAKvT+8alTjNw7ahKoL2AgB20rniGYcc3 tn8G5pmOkik7+Lv4O4LRfsfDQnoDy+exaTUPm419wbxWr2mZibV1JJwL2hoBY6ak bZs6DM9fT1u0waFX9lSReULz3EyJB2aMGa8iBfnzGESCorzOyUFBzW2G/F0T+afB 9C0MU57g27OLawVLmeoAA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1669790015; x= 1669876415; bh=VW9z6eh5MzCdps/w72rAtJ1o+Cq+BDu6YqFNPuN/Giw=; b=Y dMkbn5sHGu0P+WhBWOx05swSv7qRd4+gkiZnlQ/7jciBFEaxBXZfVn+PI3om70W6 iFIL4n7/ZoM9L0dd6DIx04DPTG+M1e3uVF5A/7BqGiY741OZ7vGtVIyfyinO+15V iMV4S0o1V4iT6nkstPUzA5oNRpHxcE83UO0wMoB1ChZCtlJqzYa0f4S/HPp8wnYe zHpe/zyqqe27Qg5IZs26OLRUVcQ/QdNu5GACnp1kbqhnaD0kW4TSL/MaBGFO0IM9 BEThPHFh2xnXY2UNQq7JCbQpNpUlQSEbsi2PLdhZSMeOIeeE4Dismzqq5hbXabyc bTsB+YPBFlDY94pS7buGQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrtddvgdeljecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepkfffgggfuffvvehfhfgjtgfgsehtje ertddtfeejnecuhfhrohhmpefurghmuhgvlhcujfholhhlrghnugcuoehsrghmuhgvlhes shhhohhllhgrnhgurdhorhhgqeenucggtffrrghtthgvrhhnpeduhffffefhffduudetvd ffkeetveeiueegfeelleffiedtuddtffduhefgtdefgfenucffohhmrghinhepkhgvrhhn vghlrdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homhepshgrmhhuvghlsehshhholhhlrghnugdrohhrgh X-ME-Proxy: Feedback-ID: i0ad843c9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 30 Nov 2022 01:33:34 -0500 (EST) Message-ID: Date: Wed, 30 Nov 2022 00:33:33 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux ppc64le; rv:102.0) Gecko/20100101 Thunderbird/102.3.3 Subject: Re: [PATCH] mfd: axp20x: adapt to newly refactored unmask_base in regmap-irq To: Icenowy Zheng Cc: linux-sunxi@lists.linux.dev, Lee Jones , Chen-Yu Tsai , linux-kernel@vger.kernel.org References: <20221127072307.2092327-1-uwu@icenowy.me> Content-Language: en-US From: Samuel Holland In-Reply-To: <20221127072307.2092327-1-uwu@icenowy.me> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Icenowy, On 11/27/22 01:23, Icenowy Zheng wrote: > The mask_base and unmask_base fields in a regmap-irq description is > recently refactored to be orthogonal and mask_inverted property is > deprecated. The new semantics of unmask_base just fits AXP PMICs. > > Specify enabling registers as unmask_base and drop mask_inverted > property to adapt to the new interface. > > Signed-off-by: Icenowy Zheng An equivalent patch was already merged: https://lore.kernel.org/lkml/20221112151835.39059-4-aidanmacdonald.0x0@gmail.com/ > --- > drivers/mfd/axp20x.c | 21 +++++++-------------- > 1 file changed, 7 insertions(+), 14 deletions(-) > > diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c > index 88a212a8168c..6e6b5dbab098 100644 > --- a/drivers/mfd/axp20x.c > +++ b/drivers/mfd/axp20x.c > @@ -506,8 +506,7 @@ static const struct regmap_irq_chip axp152_regmap_irq_chip = { > .name = "axp152_irq_chip", > .status_base = AXP152_IRQ1_STATE, > .ack_base = AXP152_IRQ1_STATE, > - .mask_base = AXP152_IRQ1_EN, > - .mask_invert = true, > + .unmask_base = AXP152_IRQ1_EN, > .init_ack_masked = true, > .irqs = axp152_regmap_irqs, > .num_irqs = ARRAY_SIZE(axp152_regmap_irqs), > @@ -518,8 +517,7 @@ static const struct regmap_irq_chip axp20x_regmap_irq_chip = { > .name = "axp20x_irq_chip", > .status_base = AXP20X_IRQ1_STATE, > .ack_base = AXP20X_IRQ1_STATE, > - .mask_base = AXP20X_IRQ1_EN, > - .mask_invert = true, > + .unmask_base = AXP20X_IRQ1_EN, > .init_ack_masked = true, > .irqs = axp20x_regmap_irqs, > .num_irqs = ARRAY_SIZE(axp20x_regmap_irqs), > @@ -531,8 +529,7 @@ static const struct regmap_irq_chip axp22x_regmap_irq_chip = { > .name = "axp22x_irq_chip", > .status_base = AXP20X_IRQ1_STATE, > .ack_base = AXP20X_IRQ1_STATE, > - .mask_base = AXP20X_IRQ1_EN, > - .mask_invert = true, > + .unmask_base = AXP20X_IRQ1_EN, > .init_ack_masked = true, > .irqs = axp22x_regmap_irqs, > .num_irqs = ARRAY_SIZE(axp22x_regmap_irqs), > @@ -543,8 +540,7 @@ static const struct regmap_irq_chip axp288_regmap_irq_chip = { > .name = "axp288_irq_chip", > .status_base = AXP20X_IRQ1_STATE, > .ack_base = AXP20X_IRQ1_STATE, > - .mask_base = AXP20X_IRQ1_EN, > - .mask_invert = true, > + .unmask_base = AXP20X_IRQ1_EN, > .init_ack_masked = true, > .irqs = axp288_regmap_irqs, > .num_irqs = ARRAY_SIZE(axp288_regmap_irqs), > @@ -556,8 +552,7 @@ static const struct regmap_irq_chip axp803_regmap_irq_chip = { > .name = "axp803", > .status_base = AXP20X_IRQ1_STATE, > .ack_base = AXP20X_IRQ1_STATE, > - .mask_base = AXP20X_IRQ1_EN, > - .mask_invert = true, > + .unmask_base = AXP20X_IRQ1_EN, > .init_ack_masked = true, > .irqs = axp803_regmap_irqs, > .num_irqs = ARRAY_SIZE(axp803_regmap_irqs), > @@ -568,8 +563,7 @@ static const struct regmap_irq_chip axp806_regmap_irq_chip = { > .name = "axp806", > .status_base = AXP20X_IRQ1_STATE, > .ack_base = AXP20X_IRQ1_STATE, > - .mask_base = AXP20X_IRQ1_EN, > - .mask_invert = true, > + .unmask_base = AXP20X_IRQ1_EN, > .init_ack_masked = true, > .irqs = axp806_regmap_irqs, > .num_irqs = ARRAY_SIZE(axp806_regmap_irqs), > @@ -580,8 +574,7 @@ static const struct regmap_irq_chip axp809_regmap_irq_chip = { > .name = "axp809", > .status_base = AXP20X_IRQ1_STATE, > .ack_base = AXP20X_IRQ1_STATE, > - .mask_base = AXP20X_IRQ1_EN, > - .mask_invert = true, > + .unmask_base = AXP20X_IRQ1_EN, > .init_ack_masked = true, > .irqs = axp809_regmap_irqs, > .num_irqs = ARRAY_SIZE(axp809_regmap_irqs),