From patchwork Sat Nov 12 15:18:18 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aidan MacDonald X-Patchwork-Id: 19193 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1316726wru; Sat, 12 Nov 2022 07:20:34 -0800 (PST) X-Google-Smtp-Source: AA0mqf47/lJFWg+4wcxHRfsA6+y3Awoy72ViFFXA42wcdn6Z72YvKftOs2NbaLubvk94aGy1FOdM X-Received: by 2002:a05:6402:40a:b0:461:a5ac:61d4 with SMTP id q10-20020a056402040a00b00461a5ac61d4mr5655543edv.340.1668266433773; Sat, 12 Nov 2022 07:20:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668266433; cv=none; d=google.com; s=arc-20160816; b=r0b0ErNKdW20KWXqQbnANlscQnMx9esn1wMCA+zVK2HRIRgna8nAUea4Tk0BS2G+An J5mJ0BcYR69UdjOPSSruiCAWULm/eif2hf42wMvj9CynOP71FgLJbljwEkvWwsh496SJ Zfaw3ckQCtcjlqc9maxRoBsXZ4ucz8moIOU1WTvSKy6604hye2o2JPFf/OQiXlvglUba X/WPSLRFMvC3moyRSFoSy9fHTzKCSQ6r+iLFS1ErCtntZiW7gnez8lV8FU65ONa59CW5 eYFUaMN727dcnyaR1nfnDtrR5wZ+UFweoZzVzkHGvIikC3ki5Ob/SRKVGH2sBjZHPe97 EUQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Cr+dmUXwYhk1v9/2O+qCDGm1t9ap655KCmuuETwAAfU=; b=VtxyywY5rgLfGB0YAlFQZqWHtcDtWTfDWqsosvE3Cj585pbtqXRc97lqMEUvO4lGlS yQtofrC9+zzwOrfKvNIOy+2fG4rR+BSB51k+bfEoLkjLaDsKpitQis6oyTtN5aHHTNLV izT5JAag7sQCrJcMHdGmW5VMyXZjGKXtyNykmdcT3xjONe0/lcAaj9qQ4UXQih9EjUmq P9ZUPWVf0ezcgw8XHEnjvyg3YGbdvDetb5/7Ju/Yl556G/DQBTErn1bgkPfmuy7lIbZ3 SAnQLI6Z1pK6aHC5GShNJwtQLYg42W6sjf3pcHlV4ei4vCY2KJ2Y0diAE3t6rZFYie50 Q/PA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=MumFOUIT; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b7-20020a509f07000000b0045d9a3adf19si5546443edf.564.2022.11.12.07.20.10; Sat, 12 Nov 2022 07:20:33 -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=@gmail.com header.s=20210112 header.b=MumFOUIT; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234900AbiKLPTm (ORCPT + 99 others); Sat, 12 Nov 2022 10:19:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53782 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231146AbiKLPTj (ORCPT ); Sat, 12 Nov 2022 10:19:39 -0500 Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B736210040 for ; Sat, 12 Nov 2022 07:19:38 -0800 (PST) Received: by mail-wm1-x32f.google.com with SMTP id ja4-20020a05600c556400b003cf6e77f89cso6919861wmb.0 for ; Sat, 12 Nov 2022 07:19:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Cr+dmUXwYhk1v9/2O+qCDGm1t9ap655KCmuuETwAAfU=; b=MumFOUIT6F0oTqa2MKSIxXzjznyN1d03ngR3WmJmd9nPISSXjX/WnD72h/8SlYoPdj oAG1lhUr266zcH3myKW/9IePllNdxFr77xG0kNEN9ut2q8JxwNO0+CGw/a1E3KZ/MikQ 3+7hOQnu54Vr6BL8aS6OnwQCN+u3oyqWHhqzlZAWa5w7BkhCslsbFBdZOrWpdu663sY1 90rbkHLdTELKQYVFpHFU895G/Kgq6VQatnHHetG/GJBgAhuTJw7AZepIgjJ90jLrwMJi qnQ6pKoDPRFyWP1tJDhdaXjtBKg8ngow/t4MpxuObqJIxll+ho5h8Ja/En29w+Pds/7u D4DA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Cr+dmUXwYhk1v9/2O+qCDGm1t9ap655KCmuuETwAAfU=; b=ecnVZouE7xzDkq+sCcHDuEIvTTEpAft4aVP8rhp7XvDYvXTkZNlavD06e5hYVflOFa IR2hnaAov9uGnNYpETc8WBZZWBRSUvvY4L1JwZt6h/juF+QBB/aWS0Vws6vE84gaIelF MxfEBvNiLriFCziYyUXJAtw1swoB66kqbz6m+6GbH61mOJNr93N1kC67n182Mm+y3msK tqShAexPAGipaM0ffZ1wGsCc7BaJDxtVd3csdQ9zrGxuXA0Yep6xYo9ZehLQSWVQWelz RpWmCCJ3YcKESlSYiXS24TMBhrM5PfmaOiZ4TEtElldW4pw/TaATkTaoiTYXBFcUNTiG 3u8A== X-Gm-Message-State: ANoB5pm6bZs3D90igS7UK8A240umepVqalJ2zZgoXBrCrS3mcCyXQ2zV dmVv1EhsrSrJtLI13vU1iZw= X-Received: by 2002:a05:600c:d7:b0:3cf:b545:596 with SMTP id u23-20020a05600c00d700b003cfb5450596mr4039671wmm.49.1668266377341; Sat, 12 Nov 2022 07:19:37 -0800 (PST) Received: from localhost (94.197.38.186.threembb.co.uk. [94.197.38.186]) by smtp.gmail.com with ESMTPSA id n13-20020adff08d000000b002364c77bcacsm4534160wro.38.2022.11.12.07.19.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Nov 2022 07:19:37 -0800 (PST) From: Aidan MacDonald To: lee@kernel.org Cc: mani@kernel.org, cristian.ciocaltea@gmail.com, wens@csie.org, tharvey@gateworks.com, cw00.choi@samsung.com, krzysztof.kozlowski@linaro.org, brgl@bgdev.pl, mazziesaccount@gmail.com, orsonzhai@gmail.com, baolin.wang@linux.alibaba.com, zhang.lyra@gmail.com, jernej.skrabec@gmail.com, samuel@sholland.org, linux-kernel@vger.kernel.org, linux-actions@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev Subject: [PATCH 01/18] mfd: 88pm800: Replace irqchip mask_invert with unmask_base Date: Sat, 12 Nov 2022 15:18:18 +0000 Message-Id: <20221112151835.39059-2-aidanmacdonald.0x0@gmail.com> In-Reply-To: <20221112151835.39059-1-aidanmacdonald.0x0@gmail.com> References: <20221112151835.39059-1-aidanmacdonald.0x0@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749304144052001892?= X-GMAIL-MSGID: =?utf-8?q?1749304144052001892?= Remove use of the deprecated mask_invert flag. Inverted mask registers (where a '1' bit enables an IRQ) can be described more directly as an unmask register. Signed-off-by: Aidan MacDonald --- drivers/mfd/88pm800.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/mfd/88pm800.c b/drivers/mfd/88pm800.c index a30e47b74327..20742793b22d 100644 --- a/drivers/mfd/88pm800.c +++ b/drivers/mfd/88pm800.c @@ -398,9 +398,8 @@ static struct regmap_irq_chip pm800_irq_chip = { .num_regs = 4, .status_base = PM800_INT_STATUS1, - .mask_base = PM800_INT_ENA_1, + .unmask_base = PM800_INT_ENA_1, .ack_base = PM800_INT_STATUS1, - .mask_invert = 1, }; static int pm800_pages_init(struct pm80x_chip *chip) From patchwork Sat Nov 12 15:18:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aidan MacDonald X-Patchwork-Id: 19194 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1316762wru; Sat, 12 Nov 2022 07:20:38 -0800 (PST) X-Google-Smtp-Source: AA0mqf5jRT2JNtSBL+cRQJnEyZNB64nYWs7PZ1Li9PZfNlQ6SwdoX+se3JRiCGLOxwQ/pGhybwz9 X-Received: by 2002:a17:906:6d52:b0:7ad:9673:8b73 with SMTP id a18-20020a1709066d5200b007ad96738b73mr5649985ejt.14.1668266438136; Sat, 12 Nov 2022 07:20:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668266438; cv=none; d=google.com; s=arc-20160816; b=AQaj/OGGIaJ86ycfVkQg4UqsOjdKY5lPWRKjQXAA2KbvhpEUCQjUJsSJ+/rKMWPsQ9 hMwZv3Tw6WfpdBqMbcmPL0PXIGhO/Dik7dcHl/9z3ENlVSYNUXqMyJ5WnTmQb8SHxIkH no6lh/N7X1gsRGRb5PSCOacimlq8N5rRVyYh5BAJrrJttSJcKS8z6KfXQhAY0Uie18F+ wkPZn4TTfbqNr4mb4kixmk8hGM7Vf/WxcOx5xzYvmZB3AlIFUO2lTWU5J9RcxuJbSl/v MhmkjL0k07s4XWtcBhOlPTN2kQzOV8rKsUX3oJ3XDD35jIErw9UHeSRL8Glm3K/me0Da 8K0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=wCwNwFi1NVNoGWWQ49+Xrvxf1vh+Xjt7SdulWDQIb4A=; b=DN5YMtt+9EcPRWfCl4KRMzW9DT9MTfvjhpH5RvvPiOqhrs84a33aFbkDYy9ZjHIYbw nGRoejuqzR340fxt5wrt3B0pGgyTaQhycNb3q2zTjddZ41sTFLN7N69Qkw6GyvYub+aG nzlFSNozzmWNCNwsXBPVvkzyFgj9sEXiTfSlfwyXaBakOqfFH9m4Siz8Vp/WefdJtQ2N A48KBs0ev54bkLsitauMnF8L8jcGkDOwtK5v9xQnO65K5UYre6pukeyAlU2yfrgHz0oi DuBjH+v24qM4BNzVBOChnclS5yBiaYtSdBN7xrdyco0sp5Wd1Gf6Ec3mYfirc6ZNDxyu sZWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="B/HvwmPs"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nd32-20020a17090762a000b007addff99f09si4372393ejc.1004.2022.11.12.07.20.14; Sat, 12 Nov 2022 07:20:38 -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=@gmail.com header.s=20210112 header.b="B/HvwmPs"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234930AbiKLPTq (ORCPT + 99 others); Sat, 12 Nov 2022 10:19:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234747AbiKLPTl (ORCPT ); Sat, 12 Nov 2022 10:19:41 -0500 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4258AFAFD for ; Sat, 12 Nov 2022 07:19:39 -0800 (PST) Received: by mail-wm1-x32e.google.com with SMTP id ay14-20020a05600c1e0e00b003cf6ab34b61so7429201wmb.2 for ; Sat, 12 Nov 2022 07:19:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=wCwNwFi1NVNoGWWQ49+Xrvxf1vh+Xjt7SdulWDQIb4A=; b=B/HvwmPsGkSnjtfwlckHWXZvgWjeyWeZzNVsSyNzHw4lprRmfExC84HS7HK1TEs1XQ 3IcOEI59Pk28qpVLH8AqgK1YXT2fOncHblPMHn0Vr3ddcHu0ArHZn2mRejG8d7Dpf70h nsJ3JvsIACNTljJoOVCRapXToeppckE51LXQVqYQHX5w1GuNHwX51P49n7f2tCPmicT4 6gQ/qOFYPyr0HUp411gwLCXZehfHvOMBuyzjdj0ZaHg4leBbUmZhp+TPyWNNQi+NwR6Y l1vqJtbLqm3s73sKVBZggXUh3TwgnGvxRwkzgxbOkA9zwcx79sqotewnVKab4xsNXpNP fpag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wCwNwFi1NVNoGWWQ49+Xrvxf1vh+Xjt7SdulWDQIb4A=; b=z/KvHXChMQRz+0VEkyyGmQZvYB8osMH7tu0M5giZn3hKBWx7DpUN9RV6UVIoFgZACH 5sqSAvTefogWqvDtFMZEeKmL234EPRodYN37ELPxyNoWqnj0jmnWEOJcMPNUfbiBqCb+ q8k4wq2dXXaYTEwylwJloUw7g0Xjwe6n6gZQ7x3rOqlz8mGUwsTlI8Ca4w1NnbF9fL2k 11it7vD4Mvgp0Q9EKxWdwBNt2YoXKAhyQFAXiv6mi0vGd8lBPnfp0TKC0IKYFAsD4vwO 1zRFwqh21BWFC98/ZCw/JsXy2A+olrWhdrhHvP8V7yBQqwtX2XveYltyr2IBVNvFYL8S r6uw== X-Gm-Message-State: ANoB5pmKL7605TECrEprimnrnhZRka1oo+rWg/PQbzUvWXLh4S3weZOQ 4GjkS+8HDE+UaAtLV5DPIFk= X-Received: by 2002:a1c:7713:0:b0:3cf:670e:63cc with SMTP id t19-20020a1c7713000000b003cf670e63ccmr4265878wmi.150.1668266378287; Sat, 12 Nov 2022 07:19:38 -0800 (PST) Received: from localhost (94.197.38.186.threembb.co.uk. [94.197.38.186]) by smtp.gmail.com with ESMTPSA id v11-20020a05600c444b00b003c70191f267sm13377329wmn.39.2022.11.12.07.19.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Nov 2022 07:19:38 -0800 (PST) From: Aidan MacDonald To: lee@kernel.org Cc: mani@kernel.org, cristian.ciocaltea@gmail.com, wens@csie.org, tharvey@gateworks.com, cw00.choi@samsung.com, krzysztof.kozlowski@linaro.org, brgl@bgdev.pl, mazziesaccount@gmail.com, orsonzhai@gmail.com, baolin.wang@linux.alibaba.com, zhang.lyra@gmail.com, jernej.skrabec@gmail.com, samuel@sholland.org, linux-kernel@vger.kernel.org, linux-actions@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev Subject: [PATCH 02/18] mfd: atc260x: Replace irqchip mask_invert with unmask_base Date: Sat, 12 Nov 2022 15:18:19 +0000 Message-Id: <20221112151835.39059-3-aidanmacdonald.0x0@gmail.com> In-Reply-To: <20221112151835.39059-1-aidanmacdonald.0x0@gmail.com> References: <20221112151835.39059-1-aidanmacdonald.0x0@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749304148546763086?= X-GMAIL-MSGID: =?utf-8?q?1749304148546763086?= Remove use of the deprecated mask_invert flag. Inverted mask registers (where a '1' bit enables an IRQ) can be described more directly as an unmask register. Signed-off-by: Aidan MacDonald --- drivers/mfd/atc260x-core.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/mfd/atc260x-core.c b/drivers/mfd/atc260x-core.c index 7148ff5b05b1..7c5de3ae776e 100644 --- a/drivers/mfd/atc260x-core.c +++ b/drivers/mfd/atc260x-core.c @@ -100,8 +100,7 @@ static const struct regmap_irq_chip atc2603c_regmap_irq_chip = { .num_irqs = ARRAY_SIZE(atc2603c_regmap_irqs), .num_regs = 1, .status_base = ATC2603C_INTS_PD, - .mask_base = ATC2603C_INTS_MSK, - .mask_invert = true, + .unmask_base = ATC2603C_INTS_MSK, }; static const struct regmap_irq_chip atc2609a_regmap_irq_chip = { @@ -110,8 +109,7 @@ static const struct regmap_irq_chip atc2609a_regmap_irq_chip = { .num_irqs = ARRAY_SIZE(atc2609a_regmap_irqs), .num_regs = 1, .status_base = ATC2609A_INTS_PD, - .mask_base = ATC2609A_INTS_MSK, - .mask_invert = true, + .unmask_base = ATC2609A_INTS_MSK, }; static const struct resource atc2603c_onkey_resources[] = { From patchwork Sat Nov 12 15:18:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aidan MacDonald X-Patchwork-Id: 19195 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1316806wru; Sat, 12 Nov 2022 07:20:43 -0800 (PST) X-Google-Smtp-Source: AA0mqf4NpZtUws72fqG+hV91H7kjparjl3uvAaMk7r74EEGM2ek/dhBwByQ/Hp/T7RPkhVvEDOr8 X-Received: by 2002:a17:906:6686:b0:7ad:ca55:20c6 with SMTP id z6-20020a170906668600b007adca5520c6mr5494506ejo.406.1668266443597; Sat, 12 Nov 2022 07:20:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668266443; cv=none; d=google.com; s=arc-20160816; b=fxj4z7hZNDKy4fLHjC2jK3HlixyZy1vgMJD1Mgi3BjM2BxQRTa05HL5M8sryp6Yysq fbF+uVQfuuD2+mX5HHd6ILdwJmRc9Oa0P8StY+iBQGlMrfbJsplwO5jYZKObrq0D+ROk LZ3ix/XSB7FwqzAF9Dz8d1Ql0Tdjm8zyBb2FwMof64NhTD2Cd9KUijPYd4ISi7Z9XLnn 2DAOLvYggKsoM0V89g1+wJCTLybImhaq0z8rfY86RooxKLWmvWiTFTm0jyo0MqFwoV2e ihrgtS/zgxtDsvjFNqGyhKIqjGeK71DXi6lsmIqmjaLMayqBcOx/mT2pVq2ERG7l+qB+ tqvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=nD6PwOw6vjJScTTxUIfc/0eVLXeaWOT/pR+rswb6rJg=; b=lG7R+wMIPPSeC2XYRThYim6uYAy5OEfvCBy6+L2dBssyI9hrPE+/kaKRjtdzSbgLwt UAbPGsUFFvjTtOuBVoU0vpGcbGJUKNgWOU2GmOfBeHQEvPDDV+6D1YHGzojzi3m8xods xFXvUvQ5HGjyGpdBb8s+98fqaRbXs2GKsTf5gCeN2SbvW7P/6eYtbe0DryRWh4w/DY9L rLe26Vt3CVURzT2uq22eNJ4YwdP4tAYa8IKWkpzwpfpuFHxbkNUShLEVnpPPT0SKXyOx 3cZT31sN5JQpJTp6f9czKkQjO1Vcjps3vANUI5xRjiAHBuEKKhzzva/ovjlw65FuRz7c ijXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Me8hdm6w; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mp41-20020a1709071b2900b0078cffe5dcdesi5820683ejc.451.2022.11.12.07.20.19; Sat, 12 Nov 2022 07:20:43 -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=@gmail.com header.s=20210112 header.b=Me8hdm6w; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234948AbiKLPTs (ORCPT + 99 others); Sat, 12 Nov 2022 10:19:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234864AbiKLPTm (ORCPT ); Sat, 12 Nov 2022 10:19:42 -0500 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 979F410040 for ; Sat, 12 Nov 2022 07:19:40 -0800 (PST) Received: by mail-wm1-x332.google.com with SMTP id a11-20020a05600c2d4b00b003cf6f5fd9f1so4884723wmg.2 for ; Sat, 12 Nov 2022 07:19:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=nD6PwOw6vjJScTTxUIfc/0eVLXeaWOT/pR+rswb6rJg=; b=Me8hdm6wyighrirkPUbw9VrQ6dfBl+1O/hpilRSfGYOHE72AVQF1TKd3bTlJ2uYUCB A3jEIRs9nskuxmEjbTdCZ4IXAS8k91jE+IJvKk8m7O2j8kPqCioC0v52kotBvRP/05FK 4MJHdWMZu+rJEwjGoER64r+1nbEQjA5NjwFzYXR4op07cj6uxqGMOmTgss32WdA2zDav VE9oVv8zRZt0pIq9jYYJraH1vTTkHWzdZc82mxm9De0lOZwNo5ZKmpq23gHRokZk5Od5 ccF1HaZbBLE+SYig33M2zUqa12pa4prerFA2OFXO63J2iYzV6gvOUyP1BF3Yem200QkB HtKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=nD6PwOw6vjJScTTxUIfc/0eVLXeaWOT/pR+rswb6rJg=; b=cjKQS8xywzkJvaTdiFKSs5hdgSJ5bJkykhtdgZYeFXVDELUjf5OcxC0ZydyORWnAGx Eh4O6IdN2ztOsCg3fRtszlfnVrDGXkWEpOvba5upRfD1J1B3GQ1y6dNICEdRaSMmJZI1 TsEfswFzt3ZfI8l9KnPKrwH0a/9AMw8bO9ptjdlxIGvcux2dlMq+qyzZVti3eDp/+NVT hcEd66u2Wp22mkVwV2oxd0bTuE11klt7eE7v5BWuV6CVfbNpFsLJj5IpwZQ/9+OYruHN r0F3DErNYs9FBUcc2f7atcIShTzqCMrQehmrITlrzrT5NZN1iYVWJKCWcAia+hjX+PJo g5iQ== X-Gm-Message-State: ANoB5pmLCP6YdRrDRoe+ZZ1p9sRFoLRTB8uB8BqxKg31QheR4iHvE4/9 81MBr5MCFgcJ7SotPy6Gu2g= X-Received: by 2002:a05:600c:3b08:b0:3cf:8e62:f748 with SMTP id m8-20020a05600c3b0800b003cf8e62f748mr4000740wms.175.1668266379182; Sat, 12 Nov 2022 07:19:39 -0800 (PST) Received: from localhost (94.197.38.186.threembb.co.uk. [94.197.38.186]) by smtp.gmail.com with ESMTPSA id x10-20020adff64a000000b00236883f2f5csm4644777wrp.94.2022.11.12.07.19.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Nov 2022 07:19:38 -0800 (PST) From: Aidan MacDonald To: lee@kernel.org Cc: mani@kernel.org, cristian.ciocaltea@gmail.com, wens@csie.org, tharvey@gateworks.com, cw00.choi@samsung.com, krzysztof.kozlowski@linaro.org, brgl@bgdev.pl, mazziesaccount@gmail.com, orsonzhai@gmail.com, baolin.wang@linux.alibaba.com, zhang.lyra@gmail.com, jernej.skrabec@gmail.com, samuel@sholland.org, linux-kernel@vger.kernel.org, linux-actions@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev Subject: [PATCH 03/18] mfd: axp20x: Replace irqchip mask_invert with unmask_base Date: Sat, 12 Nov 2022 15:18:20 +0000 Message-Id: <20221112151835.39059-4-aidanmacdonald.0x0@gmail.com> In-Reply-To: <20221112151835.39059-1-aidanmacdonald.0x0@gmail.com> References: <20221112151835.39059-1-aidanmacdonald.0x0@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749304154048714095?= X-GMAIL-MSGID: =?utf-8?q?1749304154048714095?= Remove use of the deprecated mask_invert flag. Inverted mask registers (where a '1' bit enables an IRQ) can be described more directly as an unmask register. Signed-off-by: Aidan MacDonald Reviewed-by: Samuel Holland Tested-by: Samuel Holland --- 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), From patchwork Sat Nov 12 15:18:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aidan MacDonald X-Patchwork-Id: 19197 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1316920wru; Sat, 12 Nov 2022 07:21:02 -0800 (PST) X-Google-Smtp-Source: AA0mqf6DX2jsPE4Xm2JmR3RLK5HinnGuvFJyuvMFXTejWoof1Xt9tbZapL4BIg8oLW88XfZeVp8x X-Received: by 2002:a05:6402:d64:b0:461:fe2b:3225 with SMTP id ec36-20020a0564020d6400b00461fe2b3225mr5724410edb.292.1668266461912; Sat, 12 Nov 2022 07:21:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668266461; cv=none; d=google.com; s=arc-20160816; b=lq0XZ6ZDyIYtUDAFfd9LI1MdI8IGVNwiGOCjq9jXvDaV0EcFDXjRziwqcicyugQGPX gkKnciZAE60oP01RRc7ljWgdsUPoHQ60KDw6S7UnKUhCUfC9WAPRosmuWidtumEbhjYf 3KOFfVLNAhOIw/Sj/wiwygbiwP3kQF0Ao3G3OAjLr9pkfw/9wR/Su3n2zWTpyk3/aNCc +I3bWJTedGUZW3jWDYO+ww5auKYfQphcaUqeHiwOxcJ2F1NCcvTMEW5Ij30GUGDGjfG4 1qMDbWQZzSeI3moKcWS/zITUqupJ5nsCjvZ0GXjEzNByl/x29TDSQzuNg9L4lI81j/Ur jG5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=SyNGlKcyBDF0YXtdVE2Mo7IFCo+00jQ8YxUzSjoXa50=; b=NXLAvJGucDxHbzLyMhfdY+EomBI/7z95J5sKvUVjtQ1UlROLd433rE85qjBrWqVv6/ WMpuaLz2tWvZimHWsLACbGSc7vzvw1n8nqJkjC5jihhRNP6n0459fTADf+uo2ft0kFrS JWkgI7eDgRgV1VUMZWpGx+o9bEYzHICOii7tUdWhtAlM3VWgqgoxuOsRSOCxMTk5NpwC k/PVXO3Kvq1wYWzb2HwCZ2lEt+BBSuXf9/06s/zQCRW6IeLEA4rafBbiYxhRzeVw97ro EzidNuBtsl9Oe//FtukEII8nri/MPCt2lmutvDk/jhtyNdnQN0tVFVYrrEIGhs0wpvKG Zt+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="bb8Q/XHU"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hb38-20020a170907162600b007ae670adb82si2993980ejc.902.2022.11.12.07.20.37; Sat, 12 Nov 2022 07:21:01 -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=@gmail.com header.s=20210112 header.b="bb8Q/XHU"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234996AbiKLPUK (ORCPT + 99 others); Sat, 12 Nov 2022 10:20:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234888AbiKLPTn (ORCPT ); Sat, 12 Nov 2022 10:19:43 -0500 Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A3832FAFD for ; Sat, 12 Nov 2022 07:19:41 -0800 (PST) Received: by mail-wm1-x330.google.com with SMTP id p16so4520778wmc.3 for ; Sat, 12 Nov 2022 07:19:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=SyNGlKcyBDF0YXtdVE2Mo7IFCo+00jQ8YxUzSjoXa50=; b=bb8Q/XHUIDCawlWjNkou8fyhAYQXwgoCWxuU2nSEBkYbxc11DdPvSJfIH4H9OT7Yzq G7taxhDewqonLeJPieV4nxA/eAMT1VL5uPvNHgnvZoZRnrl07bDXYySWDnx3CJtKtfhc c7WRNGwipiESSbwsKdnVpm+WRl7PmXWkjeJ1n/bfIzn1/So0onOpJuis1E4lW8cXf0Wi 0qEyQOe2qUhhHXi5y54DLwkW3Vwd1nyC491YlpyMxdWjUz9zNhVUjoDDPfXpRl4kpXY7 bajqLkBRLFMYAy2E9LzJ1AtRNAqvMEeneMKONHu40T1kqvMtUxubUnp9lNBOpZy0QWOU rJ9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=SyNGlKcyBDF0YXtdVE2Mo7IFCo+00jQ8YxUzSjoXa50=; b=FvdrgPE5KChDecXE69SZ67R5OKjY5D+NZPTvpf2wVVx6aFp46Hz9Bd0iYU61etGj0M wJpJoyGaDcgn84gEfgM1HLkVE8FVo32fcEJhSXRxP4FEGkMiP4lu1jiEXBz2JOvNCtmG n6qTBWlbSI4LjZcAzOhKKIZVYD+cVCWdl/enVc7FwgBJO59FCHGnLL79hTOvMIbEar4u LigT/XhN1BOTaOE9Z5wCvUnvwezVXXrqUOCmC8dNUsgTIjAuUohkdxLTR+62Su3n6aYv 85pzv+saRcrysV+71rRzOY93OWqeuE2EkDckYDd+vdMms/tiy2E6H6Q+bByJRbVnPI4d g67Q== X-Gm-Message-State: ANoB5pl+M4e8vdF41eZwT1lU7qzQPHYuB2sXyLd+aJts3zfSDDpZYevy CajUo9DhCONFJf1vjdvUrnU= X-Received: by 2002:a7b:cd0e:0:b0:3cf:ca45:3b19 with SMTP id f14-20020a7bcd0e000000b003cfca453b19mr3984095wmj.179.1668266380066; Sat, 12 Nov 2022 07:19:40 -0800 (PST) Received: from localhost (94.197.38.186.threembb.co.uk. [94.197.38.186]) by smtp.gmail.com with ESMTPSA id f7-20020adfe907000000b0023677081f3asm4543484wrm.42.2022.11.12.07.19.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Nov 2022 07:19:39 -0800 (PST) From: Aidan MacDonald To: lee@kernel.org Cc: mani@kernel.org, cristian.ciocaltea@gmail.com, wens@csie.org, tharvey@gateworks.com, cw00.choi@samsung.com, krzysztof.kozlowski@linaro.org, brgl@bgdev.pl, mazziesaccount@gmail.com, orsonzhai@gmail.com, baolin.wang@linux.alibaba.com, zhang.lyra@gmail.com, jernej.skrabec@gmail.com, samuel@sholland.org, linux-kernel@vger.kernel.org, linux-actions@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev Subject: [PATCH 04/18] mfd: gateworks-gsc: Replace irqchip mask_invert with unmask_base Date: Sat, 12 Nov 2022 15:18:21 +0000 Message-Id: <20221112151835.39059-5-aidanmacdonald.0x0@gmail.com> In-Reply-To: <20221112151835.39059-1-aidanmacdonald.0x0@gmail.com> References: <20221112151835.39059-1-aidanmacdonald.0x0@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749304173874894166?= X-GMAIL-MSGID: =?utf-8?q?1749304173874894166?= Remove use of the deprecated mask_invert flag. Inverted mask registers (where a '1' bit enables an IRQ) can be described more directly as an unmask register. Signed-off-by: Aidan MacDonald --- drivers/mfd/gateworks-gsc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/mfd/gateworks-gsc.c b/drivers/mfd/gateworks-gsc.c index 9d7d870c44a8..c954ed265de8 100644 --- a/drivers/mfd/gateworks-gsc.c +++ b/drivers/mfd/gateworks-gsc.c @@ -189,8 +189,7 @@ static const struct regmap_irq_chip gsc_irq_chip = { .num_irqs = ARRAY_SIZE(gsc_irqs), .num_regs = 1, .status_base = GSC_IRQ_STATUS, - .mask_base = GSC_IRQ_ENABLE, - .mask_invert = true, + .unmask_base = GSC_IRQ_ENABLE, .ack_base = GSC_IRQ_STATUS, .ack_invert = true, }; From patchwork Sat Nov 12 15:18:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aidan MacDonald X-Patchwork-Id: 19196 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1316863wru; Sat, 12 Nov 2022 07:20:51 -0800 (PST) X-Google-Smtp-Source: AA0mqf4r01mz5EFtX6Ket1Mwvus4D2yuXa98EC5r2JLrIvx1cfw0TMwaYyeMdzd0fmBSAZFcIBQa X-Received: by 2002:a17:906:b811:b0:7ae:1e53:8dd4 with SMTP id dv17-20020a170906b81100b007ae1e538dd4mr5361278ejb.42.1668266451261; Sat, 12 Nov 2022 07:20:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668266451; cv=none; d=google.com; s=arc-20160816; b=hyznoHjhKY9PE4i0DKveqX+2hkwUtAKCnVHiQrXN6T3U5Xg7YUMZ5WiEdRGYgEN7Lp ViaPcGXpmKRh/ibt4iWPvYGYlF6gUfgue2MTuUMnZtlPfSAkMOENqYKYenHN6HvlpFnl GTAtUqtsjcQICcM7R/r8t0iyPwcqWVo70KsEqBWDEnpbOCRiWJFINLhX/BpaL0zKmcxR tvkdqdl8zvkP4X3NTJvvYFBNw6qjAPAgNyf6COdOukTCpVc9Ew7IGPwePACuPttEAUhO DTDX8jLGKc4SIjmIFEodoxjNCqF3UaKNsUujWqY+Fxo+uHkH5S17/uCHaWBnD62ZHx7H 9K3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=KxohJD/xpDsC676BB7jqU0uKaQr0B+lL6dxaSbBb+MU=; b=XLXW5fY61SO1j95qSoepn1aCIw5hTx9wr5NXzDbxkhza8v4XbRzN3ncosE66oyTden /bASwe/H+lVIKbx1sHrz9zVj6bSsaGR5tHr5dVJ4tflNKGNHan2AnIpSGoqE3utxWd62 TU5zY4FP/4NrUWkZgoFVsdY6386qCOs9E3ibk2hQROWD/OwRPH2ZNHtH+gVVvW9K+4QB MWnQ85rGNNCOvUo+BTUTWpCy0tKnY13cCKN5fuerd59L1/j4LHqpgQgqVdP9slCu+2Qb J0mLWHdRxA9K/tWTKcr4XRZ8rDHFhd4Z4xsNr9JccKYohEPbd2PmxzHx1wK7kC8dFyer KJSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=WRL+QiFX; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o20-20020a170906975400b007aea6b2696fsi4921101ejy.454.2022.11.12.07.20.27; Sat, 12 Nov 2022 07:20:51 -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=@gmail.com header.s=20210112 header.b=WRL+QiFX; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234986AbiKLPT7 (ORCPT + 99 others); Sat, 12 Nov 2022 10:19:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234922AbiKLPTo (ORCPT ); Sat, 12 Nov 2022 10:19:44 -0500 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C4E0212091 for ; Sat, 12 Nov 2022 07:19:42 -0800 (PST) Received: by mail-wm1-x329.google.com with SMTP id l39-20020a05600c1d2700b003cf93c8156dso4867214wms.4 for ; Sat, 12 Nov 2022 07:19:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=KxohJD/xpDsC676BB7jqU0uKaQr0B+lL6dxaSbBb+MU=; b=WRL+QiFXRtmPO6z+zFrWu8XBr75MkufUpD/wJpxak0VoL2tzDKNSIr3LUanvVUjMEr kkO8RBOvGi7aKF/HrZmRJuxy+7tsjI9tIiSiwLjKoTN4BhQMR//wV2kyK8M9F7yTDPNq w4IaqNgweaCIgOcu2WSLdw7QSXEDrEhmwuRVF7BG9vYE6LfMQX1xdhifWsEcF71zNkmP q19Xnih69enBZPTfftVZmQ+C7EfB92JTC+RCFpVqmVijARTEI3es250UFPboRd6Wzq8V HmzMNeQTDqhuQH5LJ+pmFuOYSd6Wn+YfulWuSIoE8zYeSBN+MzZ3yIp/4B1JTAHqoWsY QtUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=KxohJD/xpDsC676BB7jqU0uKaQr0B+lL6dxaSbBb+MU=; b=m5YMrvPgkudiOKUF1shiBb1Wi6GPNLO9e4a0jFI7do+Qvdom5lVJcWuprfHm46zYYu lR2toeRRTsKoNwcjE85pRf6d5w8KDfWep3np9vUSUR7oGrbhEC15HWpSxr05OA+ANlqt EvoiWLOgzo3N3aWc5gcreNCsUJMkcdZPhtZ+YzTEW4n+KdGqm47Yj2csOJkFQsp77xOv BupQqGQBbmV59CidW7jkChTlY0bPSBftnsLbT0iDpVBzxP7WxntAgQafTjXlYdItBYoY IK8Jw7hiukn5xBNCHqH7wYogFjv6QhAYCJvQMHRDQ0CS/BS1UydiA0a5LwLfAvlDT6jL MKtg== X-Gm-Message-State: ANoB5pliySPtJtbL/YzhaRF72PzOYxHSCzHfCO9IlQgzLwQS2Lv0BCBO TVzeK6QeCnf/Wk7SABPp4iE= X-Received: by 2002:a05:600c:3d0e:b0:3cf:88cf:1f8e with SMTP id bh14-20020a05600c3d0e00b003cf88cf1f8emr4169880wmb.9.1668266381259; Sat, 12 Nov 2022 07:19:41 -0800 (PST) Received: from localhost (94.197.38.186.threembb.co.uk. [94.197.38.186]) by smtp.gmail.com with ESMTPSA id v11-20020a05600c444b00b003c70191f267sm13377450wmn.39.2022.11.12.07.19.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Nov 2022 07:19:41 -0800 (PST) From: Aidan MacDonald To: lee@kernel.org Cc: mani@kernel.org, cristian.ciocaltea@gmail.com, wens@csie.org, tharvey@gateworks.com, cw00.choi@samsung.com, krzysztof.kozlowski@linaro.org, brgl@bgdev.pl, mazziesaccount@gmail.com, orsonzhai@gmail.com, baolin.wang@linux.alibaba.com, zhang.lyra@gmail.com, jernej.skrabec@gmail.com, samuel@sholland.org, linux-kernel@vger.kernel.org, linux-actions@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev Subject: [PATCH 05/18] mfd: max14577: Replace irqchip mask_invert with unmask_base Date: Sat, 12 Nov 2022 15:18:22 +0000 Message-Id: <20221112151835.39059-6-aidanmacdonald.0x0@gmail.com> In-Reply-To: <20221112151835.39059-1-aidanmacdonald.0x0@gmail.com> References: <20221112151835.39059-1-aidanmacdonald.0x0@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749304162447250115?= X-GMAIL-MSGID: =?utf-8?q?1749304162447250115?= Remove use of the deprecated mask_invert flag. Inverted mask registers (where a '1' bit enables an IRQ) can be described more directly as an unmask register. Signed-off-by: Aidan MacDonald Acked-by: Krzysztof Kozlowski --- drivers/mfd/max14577.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/mfd/max14577.c b/drivers/mfd/max14577.c index d44ad6f33742..9c2d98d75a8e 100644 --- a/drivers/mfd/max14577.c +++ b/drivers/mfd/max14577.c @@ -209,8 +209,7 @@ static const struct regmap_irq max14577_irqs[] = { static const struct regmap_irq_chip max14577_irq_chip = { .name = "max14577", .status_base = MAX14577_REG_INT1, - .mask_base = MAX14577_REG_INTMASK1, - .mask_invert = true, + .unmask_base = MAX14577_REG_INTMASK1, .num_regs = 3, .irqs = max14577_irqs, .num_irqs = ARRAY_SIZE(max14577_irqs), @@ -239,8 +238,7 @@ static const struct regmap_irq max77836_muic_irqs[] = { static const struct regmap_irq_chip max77836_muic_irq_chip = { .name = "max77836-muic", .status_base = MAX14577_REG_INT1, - .mask_base = MAX14577_REG_INTMASK1, - .mask_invert = true, + .unmask_base = MAX14577_REG_INTMASK1, .num_regs = 3, .irqs = max77836_muic_irqs, .num_irqs = ARRAY_SIZE(max77836_muic_irqs), @@ -255,7 +253,6 @@ static const struct regmap_irq_chip max77836_pmic_irq_chip = { .name = "max77836-pmic", .status_base = MAX77836_PMIC_REG_TOPSYS_INT, .mask_base = MAX77836_PMIC_REG_TOPSYS_INT_MASK, - .mask_invert = false, .num_regs = 1, .irqs = max77836_pmic_irqs, .num_irqs = ARRAY_SIZE(max77836_pmic_irqs), From patchwork Sat Nov 12 15:18:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aidan MacDonald X-Patchwork-Id: 19198 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1316970wru; Sat, 12 Nov 2022 07:21:07 -0800 (PST) X-Google-Smtp-Source: AA0mqf6qztztqt3HYLGGuSxVJGCPWfjfR01kWbkT+BarjxCZYq3oO652X5L0J8qGq5N2xUZS2S7l X-Received: by 2002:a17:907:6d9d:b0:7ae:63b8:d688 with SMTP id sb29-20020a1709076d9d00b007ae63b8d688mr5544407ejc.222.1668266466895; Sat, 12 Nov 2022 07:21:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668266466; cv=none; d=google.com; s=arc-20160816; b=rZgSdYwfXpoiRqMvfcf9F0e+bALeZlTBiABUdYGcr/GXMOrm6HQvkKm5fNLC35OibO A6GMXRgZtg54l74mnKmkA7WOMk+HY0fErSMwhwRXFqkJP+rkcKbiH+LsaTBCjIXbydJH 5QQlPKMlWNemjHeKNKs0jNQE/HTG7oHCyhh4V6IZespMZUwjAxmQ6I3fBhv9ASGcEiQH BXVNA+v8luG146Uno4XxAmXVks6AwPowmFR3ZKSetmrcZowrQUJ75REr0msp2lONUXiq terih5tj5/2ct4FkUzxm9Fumz3ZsgJUBb6ZjTYpZMysL+LrbH4VZ5kZScJD6omxh/7Or WgKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=YaXPTSTfVAjT3RnVq8UtQeB7ybyxfMU88BI11sZ0ri4=; b=GwgxeiBINJ3rOfM4daI7W/MFKS/cFVu9AzEbxSYBoiMCv7HFwClR0iYAq2qJHrRoRx QSfR05NfdkkCIqP9msyqLpwHCGgP2Qj3HJ7tbZtFwB/ItW+kOYBuDICeMU5xtSgJp1Qd I6YCAfQAYff5cmQl/QR6wjrpzJ3+6OIj2Jl8Rewt/2KhElG1lWa1xszifEtnASespK0E 7Ne4+Ur2w6CVbJCqYA+bEbPPcXcQIEnD930qk9s+sJdmWwQOZuiavdZD1r0I/PjQ5Nil 5/PUaLrjw85qNnuwSSQX1M7E8CjW3j9BgyrGX2SL/pe+wqFOOhArdyoz4pPzV2GIu6/L wz8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=NuIqoadp; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gt42-20020a1709072daa00b007ae0596231esi5562551ejc.789.2022.11.12.07.20.43; Sat, 12 Nov 2022 07:21:06 -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=@gmail.com header.s=20210112 header.b=NuIqoadp; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235025AbiKLPUN (ORCPT + 99 others); Sat, 12 Nov 2022 10:20:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234909AbiKLPTz (ORCPT ); Sat, 12 Nov 2022 10:19:55 -0500 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EBE9112AAB for ; Sat, 12 Nov 2022 07:19:43 -0800 (PST) Received: by mail-wm1-x32e.google.com with SMTP id j5-20020a05600c410500b003cfa9c0ea76so4882061wmi.3 for ; Sat, 12 Nov 2022 07:19:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=YaXPTSTfVAjT3RnVq8UtQeB7ybyxfMU88BI11sZ0ri4=; b=NuIqoadpk7a6YuPwcL2jBzcSRnizeRBdvdMOwXhqv0QhYjXNBoZcWgQbSk4hxC25Jr VqQM+NpB3lsDhIe3ul6BOKcJE16jotTUbG4v7eHHlZN70s46tDMoI9bXlWW+l0lG4Qcz G1mFPUovYKpz8d7efaIHwFJtD7Qp1wDYLobfkDiQzwhuq35ltpXIZfKg7OOqEyGFyh5B oYcO1U4KbFR98+DQKRwMRqZAdItqqaYY7M4LkXXL1ZAHuaqPi4MWhTFn+4Ce0a4x9Sek HFIozN8h6Ti+uObJ9Ye5aKmHNUiE7oJ4dLgeKmYLrSbJmS1DWRH5jEZFi4XcVvaJI6bs T94w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=YaXPTSTfVAjT3RnVq8UtQeB7ybyxfMU88BI11sZ0ri4=; b=MKeG4kGpKX8Z/MuG+CCbHqctEh4DO1+P/946bGQnEHVZ2X+ADG9oof1j4o13zO+m3B hI/CsZXVYlbLNK3XebtH070zpQEnpmFLgo3LVHtQeHc7/MP5LqeUiLirMUjJC8OcJdaK 1TkTGG0epaOj5Il6BaoycAcDGTUE5wcXI1KYq+BS/M0VUggWBmf1TlCqT2oo1nBbeUh+ IiMTxzuMbrv/4cw3c2LX0sK6whpAhdspa8DiWjYtb/9HlSWQPMWQqURlYu3IFkg9nVaV mGy8qAgXn2C7Wr3ACzAKbDWm2XWlE8aUh9b5Vv5e2vDKQz1JSlY7RU7IuhapiH3G0H9T B92A== X-Gm-Message-State: ANoB5plcV6leXJGUjyfKeGQfzyCCPcu8NIBdtApHz7qSHxwet1h7A+Pm ue/ErlrT8SFuXcODWDLqHbs= X-Received: by 2002:a05:600c:54c3:b0:3cf:70a0:f689 with SMTP id iw3-20020a05600c54c300b003cf70a0f689mr4195425wmb.161.1668266382338; Sat, 12 Nov 2022 07:19:42 -0800 (PST) Received: from localhost (94.197.38.186.threembb.co.uk. [94.197.38.186]) by smtp.gmail.com with ESMTPSA id bg1-20020a05600c3c8100b003cfaae07f68sm13192790wmb.17.2022.11.12.07.19.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Nov 2022 07:19:42 -0800 (PST) From: Aidan MacDonald To: lee@kernel.org Cc: mani@kernel.org, cristian.ciocaltea@gmail.com, wens@csie.org, tharvey@gateworks.com, cw00.choi@samsung.com, krzysztof.kozlowski@linaro.org, brgl@bgdev.pl, mazziesaccount@gmail.com, orsonzhai@gmail.com, baolin.wang@linux.alibaba.com, zhang.lyra@gmail.com, jernej.skrabec@gmail.com, samuel@sholland.org, linux-kernel@vger.kernel.org, linux-actions@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev Subject: [PATCH 06/18] mfd: max77650: Remove useless type_invert flag Date: Sat, 12 Nov 2022 15:18:23 +0000 Message-Id: <20221112151835.39059-7-aidanmacdonald.0x0@gmail.com> In-Reply-To: <20221112151835.39059-1-aidanmacdonald.0x0@gmail.com> References: <20221112151835.39059-1-aidanmacdonald.0x0@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749304178795405205?= X-GMAIL-MSGID: =?utf-8?q?1749304178795405205?= The type_invert flag does nothing when type_in_mask is set, and it's part of deprecated functionality in regmap-irq. Remove it. Signed-off-by: Aidan MacDonald Acked-by: Bartosz Golaszewski --- drivers/mfd/max77650.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/mfd/max77650.c b/drivers/mfd/max77650.c index 777485a33bc0..3c07fcdd9d07 100644 --- a/drivers/mfd/max77650.c +++ b/drivers/mfd/max77650.c @@ -138,7 +138,6 @@ static const struct regmap_irq_chip max77650_irq_chip = { .status_base = MAX77650_REG_INT_GLBL, .mask_base = MAX77650_REG_INTM_GLBL, .type_in_mask = true, - .type_invert = true, .init_ack_masked = true, .clear_on_unmask = true, }; From patchwork Sat Nov 12 15:18:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aidan MacDonald X-Patchwork-Id: 19199 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1316987wru; Sat, 12 Nov 2022 07:21:09 -0800 (PST) X-Google-Smtp-Source: AA0mqf7GDWLY1OodmA5FrfdkSevJ+Npdd72bGHSXXaoxqaQLvNNPcvFeGOIbihviZvx6Ls0OoeWE X-Received: by 2002:aa7:c247:0:b0:466:1bfa:c39e with SMTP id y7-20020aa7c247000000b004661bfac39emr5597333edo.240.1668266469676; Sat, 12 Nov 2022 07:21:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668266469; cv=none; d=google.com; s=arc-20160816; b=BijfCXOFGsk3Ol5w01j0Wgxgk9nC24d2jPtGMk2V6851/E697z4WJUVd7DYT6NAOBb 7sruJcfBSuPhb5dOPXsLS7HDpXeRBz520twmUm/ewtx9bRtyrLN6XwUiIP+OWEzUAQ0j sy5rRBFkgu/8xMaf5JL5sfoEwlCG6BuDw+t/gPb/XtytMYT+Cph1ypbdqsipWvhvGEHz m9YVbJgxuvXhvKWmwfSNWg1Udf/CUmQ/byQMB714nOIbHfQ3BooSutgqV/N2RtKBwXmB Zyyr3P04Ch9YeDuImaj2abE/d35HOhVUmJE2/MDRQ5ZtA92TDhj3CHuEiUYQ9bjp6Q7E UTHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=RzfFarMWnyAPcL/j9BLrbh9/EDR9l6mYdqyx4d7GlDs=; b=epP5IxFWfaKwqoufl9Dv39zNAy24N+UDCVV9fRcp5h1FG2p5ZctFZuz19bZdmHokze OqoYJW0ojrLGzi22L1G3Yn37VUXnKpRmzss05pyCynHiJvskpR6YBgScnVtNwD4en/2S YisVMfxy8Jm1600yL9NWVoHYdkwz2mrQKtLvCc9tOjPYDEPExmqgySj2HdGxfqrgjhNo zurmGz0uov52KOy7+wAb7/ZoYIO19gjHUVe4PUNueJwquRR/tv1D9NCSD6gK1KoWFWhj p2rLeExJaORALrCBrJzk+Xx0csLi6VodMGpASsYmNJSLp6En4BiURd1RiaeeNbU9LAIh TBtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=i6Xha0IS; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b15-20020a056402350f00b0045945eed10asi6196611edd.5.2022.11.12.07.20.46; Sat, 12 Nov 2022 07:21:09 -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=@gmail.com header.s=20210112 header.b=i6Xha0IS; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235001AbiKLPUR (ORCPT + 99 others); Sat, 12 Nov 2022 10:20:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234864AbiKLPTz (ORCPT ); Sat, 12 Nov 2022 10:19:55 -0500 Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D186912AC1 for ; Sat, 12 Nov 2022 07:19:44 -0800 (PST) Received: by mail-wm1-x32d.google.com with SMTP id i82-20020a1c3b55000000b003cfd36eff5fso743220wma.3 for ; Sat, 12 Nov 2022 07:19:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=RzfFarMWnyAPcL/j9BLrbh9/EDR9l6mYdqyx4d7GlDs=; b=i6Xha0IS/gQNLKfoEiaGh+pMe0XQk2nRYv1lnAVGxx5a44I7wnJClCJgg4n4nnVKhm AIG+wpTP1h9KaH1JGqdy7Fl3I+iD+hTPYO54epiDta9+c5Vyd7YaH8wI5BhuRP7AyuMZ g7uf6cyj/+YuLWOJXwjcfV3ZNXbiX3ho7mWJcvCLOFn81+Ki3+H9MWHa77Ite+4AUUUu o0wD7mAPe+hgNsIO1fM1E7Lu5zNpOFAcwo31x6n1lXbvomSAqK8VcLANOOTf8i+bWXhf 89rF1XkweKVV11jgQZ6kyyLzRNbwp8UjBpoSF0dxk59UfCJdOObcbD0TOBMllXr5YXdX /mZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=RzfFarMWnyAPcL/j9BLrbh9/EDR9l6mYdqyx4d7GlDs=; b=6jOlQ6F/nXfGnAPZ0yY2g34XVjumyETkgLiTe84DzdHKyWtM+UINVOSp+zP61FGHqC 3nMOw4WuAN4FFfdRsiC7XOr8GtGMiQkSkGKMm89xiIxdTnIXqW4dIM+LQ/r92lu7aloX Y6uBAJZ3MsP9Eosh8pe2Fd8MUI1LQef0a34b6D7prON/SB15kEayrWQAm1ZKTprqHqYk Yde/qXWeK1c6ygu6ePidg5eEFtl/EZUhsPQFCLylFDtMmxvGyf1EA8aDwxuUwSpMFfWR Ae4jTm1+1bDfKqhoJajRuuVCydmAjbmbwY2RZcrPp+w8rUXoh3AXCn3PwiuVybLXhJ1m nwvw== X-Gm-Message-State: ANoB5pkNrmTSAwTIBcYFgh7U5B7iBvIGSMocLIpRpY4xpBXVL7kSATxi GKdCc9Tgs0vXk73icj04McY= X-Received: by 2002:a05:600c:2251:b0:3cf:a511:3217 with SMTP id a17-20020a05600c225100b003cfa5113217mr4098434wmm.205.1668266383299; Sat, 12 Nov 2022 07:19:43 -0800 (PST) Received: from localhost (94.197.38.186.threembb.co.uk. [94.197.38.186]) by smtp.gmail.com with ESMTPSA id z25-20020a05600c221900b003c6c5a5a651sm6568370wml.28.2022.11.12.07.19.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Nov 2022 07:19:43 -0800 (PST) From: Aidan MacDonald To: lee@kernel.org Cc: mani@kernel.org, cristian.ciocaltea@gmail.com, wens@csie.org, tharvey@gateworks.com, cw00.choi@samsung.com, krzysztof.kozlowski@linaro.org, brgl@bgdev.pl, mazziesaccount@gmail.com, orsonzhai@gmail.com, baolin.wang@linux.alibaba.com, zhang.lyra@gmail.com, jernej.skrabec@gmail.com, samuel@sholland.org, linux-kernel@vger.kernel.org, linux-actions@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev Subject: [PATCH 07/18] mfd: max77693: Replace irqchip mask_invert with unmask_base Date: Sat, 12 Nov 2022 15:18:24 +0000 Message-Id: <20221112151835.39059-8-aidanmacdonald.0x0@gmail.com> In-Reply-To: <20221112151835.39059-1-aidanmacdonald.0x0@gmail.com> References: <20221112151835.39059-1-aidanmacdonald.0x0@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749304181400731528?= X-GMAIL-MSGID: =?utf-8?q?1749304181400731528?= Remove use of the deprecated mask_invert flag. Inverted mask registers (where a '1' bit enables an IRQ) can be described more directly as an unmask register. Signed-off-by: Aidan MacDonald Acked-by: Krzysztof Kozlowski --- drivers/mfd/max77693.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/mfd/max77693.c b/drivers/mfd/max77693.c index 7088cb6f9174..7486acc84499 100644 --- a/drivers/mfd/max77693.c +++ b/drivers/mfd/max77693.c @@ -66,7 +66,6 @@ static const struct regmap_irq_chip max77693_led_irq_chip = { .name = "max77693-led", .status_base = MAX77693_LED_REG_FLASH_INT, .mask_base = MAX77693_LED_REG_FLASH_INT_MASK, - .mask_invert = false, .num_regs = 1, .irqs = max77693_led_irqs, .num_irqs = ARRAY_SIZE(max77693_led_irqs), @@ -82,7 +81,6 @@ static const struct regmap_irq_chip max77693_topsys_irq_chip = { .name = "max77693-topsys", .status_base = MAX77693_PMIC_REG_TOPSYS_INT, .mask_base = MAX77693_PMIC_REG_TOPSYS_INT_MASK, - .mask_invert = false, .num_regs = 1, .irqs = max77693_topsys_irqs, .num_irqs = ARRAY_SIZE(max77693_topsys_irqs), @@ -100,7 +98,6 @@ static const struct regmap_irq_chip max77693_charger_irq_chip = { .name = "max77693-charger", .status_base = MAX77693_CHG_REG_CHG_INT, .mask_base = MAX77693_CHG_REG_CHG_INT_MASK, - .mask_invert = false, .num_regs = 1, .irqs = max77693_charger_irqs, .num_irqs = ARRAY_SIZE(max77693_charger_irqs), @@ -136,8 +133,7 @@ static const struct regmap_irq max77693_muic_irqs[] = { static const struct regmap_irq_chip max77693_muic_irq_chip = { .name = "max77693-muic", .status_base = MAX77693_MUIC_REG_INT1, - .mask_base = MAX77693_MUIC_REG_INTMASK1, - .mask_invert = true, + .unmask_base = MAX77693_MUIC_REG_INTMASK1, .num_regs = 3, .irqs = max77693_muic_irqs, .num_irqs = ARRAY_SIZE(max77693_muic_irqs), From patchwork Sat Nov 12 15:18:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aidan MacDonald X-Patchwork-Id: 19203 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1317912wru; Sat, 12 Nov 2022 07:23:47 -0800 (PST) X-Google-Smtp-Source: AA0mqf7RePWHl2Qw2cd2MSJnME89YrbXhhLIm6bP+Y2JAWWKEtbBMBOcJaEYIqYRr7JNArJ1w/8G X-Received: by 2002:a17:906:141b:b0:78d:5176:c4d2 with SMTP id p27-20020a170906141b00b0078d5176c4d2mr5259498ejc.532.1668266626887; Sat, 12 Nov 2022 07:23:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668266626; cv=none; d=google.com; s=arc-20160816; b=m8vxKQGlk9Dv/egoxBjmG8+4EO5NYHu/+hDPNphVqPF1mRASC1cPcV09lXXRXGoXO4 unDGisINKGwEqRON+ASPNVWW9dj0IXyLryHBxZiKtCcXrIMjyjLbgFrdzSXe/Wb8U65Z aFCc/swKeaJp29EzHA9nqSG+/ke/KSzHv4kuhomIrPamOby8UCtX02IxCax6g0tkHeqd P3FqIt7DRcV10UMQG3tE+7YlBA5gRm2oGbwvRlE+jRQCaX5ANmzj7G9ybuuC6OZmBizH EU/kc+KP8fBS+d4wif/FMhSqRDeUkKQcTFbWegq4yMfGOHesmByaEB2LLFZx33cIc/lx mM6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Ok7HpRM+XtzDAgo3jwhMBdJyhpha2jg6F6Os6h21MVc=; b=OkM5uC58kha4cO5Dd3YzJMuYRloXSa4Vv+sIjAScm4/l+8y5ToldyxEMzFR4utaQFl boptLphV70ek1XbReYQumxkjxD1A5db8BmWw0WGnMyTxGUjOPT6DGXjPZFjMm94JrU1E 3DMXvGj6LCUsYtABchcVW3TNYaSohM3ZVV7myK6ZWRwPRJkpbTIEUFRmIf3BikmkuPF2 17XaZLMEOdt5lfNFfMHKs7TQWnVzHpOIRXK0pU8/iZ892iCbnC/L9gQcQqp04aFT+b4f 4gcsJmHuKmnial4hYJ0BEonBZlw0P1fIGe6DLGSXAjOTdTswyOZ3ysHOKd6HGj5dtCvc AZZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=gJ3Se3YJ; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hp11-20020a1709073e0b00b0078d2a99972fsi5212861ejc.316.2022.11.12.07.23.21; Sat, 12 Nov 2022 07:23:46 -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=@gmail.com header.s=20210112 header.b=gJ3Se3YJ; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234981AbiKLPUa (ORCPT + 99 others); Sat, 12 Nov 2022 10:20:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234963AbiKLPT5 (ORCPT ); Sat, 12 Nov 2022 10:19:57 -0500 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A15E213F94 for ; Sat, 12 Nov 2022 07:19:45 -0800 (PST) Received: by mail-wm1-x32e.google.com with SMTP id i82-20020a1c3b55000000b003cfd36eff5fso743246wma.3 for ; Sat, 12 Nov 2022 07:19:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Ok7HpRM+XtzDAgo3jwhMBdJyhpha2jg6F6Os6h21MVc=; b=gJ3Se3YJBcHCIsogJkRdhV9D/9OrVb/ee9dNAk80ZErZAgxIhhGkKsyEqbYPkiDw6D im3ckufSkCIrYHONHqeFAg8XvnQihlv6EQoPoDFCaHzjBEcsi8hWCpYRG7jvG1cW/l2J vngvQUhyY/Ay8hhc4RiXRT0utvvzlcwlcVjVbOGu74ht5cbnQq/6UBFKnPZb/bJacQ3Q GkZimPSbVGqigELup8lmT+Zo+3iQNuWQBTgkJm5hKwuTZZF5DAgRKXqpnOV6/2urK/Wc DMGVB6IlRxHNHChs7xR2eM/uxI7uvQmmqQq73ePH/+esLBbyPPxRWzVhppZwKZznxVA+ 71zQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Ok7HpRM+XtzDAgo3jwhMBdJyhpha2jg6F6Os6h21MVc=; b=ayC3OZvZ8tsGEhdGWFeraxjuS3sTc3P8q9sJyLyEJ+Q9WXKXAJum6YUmOORNQdo2oV UOcjbrMJKugjMcuv+46b8O3Lu5zOhMO5A+1vF+evCxrTV0FW4HHfpF+YWPHIgSKF4MSG 5GcOQtz49y6d++FR8NhmSu0FK5XW+4ch/RwadpBdD/e8iv0rEI1J9T+YK9gBJztUQ90q g59PfjX6ypbdtwcbpZ3S/3hD72FkjFNMarHELJmgdwnTqsHne8ubD2R1a2Ch+tWNuOfe cit+712xjsg3iaKyCufjjCyDjw/1KzLP1OTCjqVTPYdcDBfw1d6sbZ1bvndkA3De+/mk bWdQ== X-Gm-Message-State: ANoB5pnWi+bYyJ8ZkFetwpkjwQMVGDHHTWolvJ6bE4o9fMOgUnCpDVWT UgN6yQ+Pd6oKkDDqj6g9n3I= X-Received: by 2002:a05:600c:1e10:b0:3cf:8ebf:69b with SMTP id ay16-20020a05600c1e1000b003cf8ebf069bmr4226300wmb.86.1668266384285; Sat, 12 Nov 2022 07:19:44 -0800 (PST) Received: from localhost (94.197.38.186.threembb.co.uk. [94.197.38.186]) by smtp.gmail.com with ESMTPSA id r8-20020a05600c2f0800b003c701c12a17sm12005218wmn.12.2022.11.12.07.19.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Nov 2022 07:19:44 -0800 (PST) From: Aidan MacDonald To: lee@kernel.org Cc: mani@kernel.org, cristian.ciocaltea@gmail.com, wens@csie.org, tharvey@gateworks.com, cw00.choi@samsung.com, krzysztof.kozlowski@linaro.org, brgl@bgdev.pl, mazziesaccount@gmail.com, orsonzhai@gmail.com, baolin.wang@linux.alibaba.com, zhang.lyra@gmail.com, jernej.skrabec@gmail.com, samuel@sholland.org, linux-kernel@vger.kernel.org, linux-actions@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev Subject: [PATCH 08/18] mfd: max77843: Drop useless mask_invert flag on irqchip Date: Sat, 12 Nov 2022 15:18:25 +0000 Message-Id: <20221112151835.39059-9-aidanmacdonald.0x0@gmail.com> In-Reply-To: <20221112151835.39059-1-aidanmacdonald.0x0@gmail.com> References: <20221112151835.39059-1-aidanmacdonald.0x0@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749304346442052898?= X-GMAIL-MSGID: =?utf-8?q?1749304346442052898?= Setting mask_invert to false is pointless because that's the default. The flag is also deprecated, so drop it. Signed-off-by: Aidan MacDonald Acked-by: Krzysztof Kozlowski --- drivers/mfd/max77843.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/mfd/max77843.c b/drivers/mfd/max77843.c index 209ee24d9ce1..4da58eab1603 100644 --- a/drivers/mfd/max77843.c +++ b/drivers/mfd/max77843.c @@ -59,7 +59,6 @@ static const struct regmap_irq_chip max77843_irq_chip = { .name = "max77843", .status_base = MAX77843_SYS_REG_SYSINTSRC, .mask_base = MAX77843_SYS_REG_SYSINTMASK, - .mask_invert = false, .num_regs = 1, .irqs = max77843_irqs, .num_irqs = ARRAY_SIZE(max77843_irqs), From patchwork Sat Nov 12 15:18:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aidan MacDonald X-Patchwork-Id: 19200 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1317028wru; Sat, 12 Nov 2022 07:21:16 -0800 (PST) X-Google-Smtp-Source: AA0mqf4uT61q5nLRGDDDoflPAG7Eb+F4b+8rd9RBYFFaiLxQPc2wHjOYGq1rOv2ucxmSiowkys4H X-Received: by 2002:a05:6402:748:b0:461:9955:b54a with SMTP id p8-20020a056402074800b004619955b54amr5579592edy.159.1668266476858; Sat, 12 Nov 2022 07:21:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668266476; cv=none; d=google.com; s=arc-20160816; b=qUFJiwwu5idXC0vlNFlajgFc4GArtMZSdcR+i5z6YMzy/AjX6eA/569RE/auK9UjRd 5EylbdGm1eMKwo6hdLlDu3+To8QgHy56IdtQKO67tLw4/uvdLpqTX5Rc0iuy2ktLQN5H 7d88vML1st6O0AVt3zVO6BNqCRFZdVqlW7zQcH95J2bWR0tSqg4PxU5yOxz6uDh7/vGM GyJHOomWQaVU8+J7L8t5Vx7JztkxtJud3j0CmcqtWAyUnWlYFNQXDU7uTbtTqMrrbeZ5 LJJeZt5ohnbnkieYOAJ3NV3RdasMK/eH8XvMccje/bwtK/ZzjqtZwQsP4RR3a0a75dL3 18gQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=RUz+SizcgZSFJ75dUNQdXVQMx+0/9PCMdNqr8UxmHwU=; b=ggD9hnZp+AeaKQlCEjKX/zJTTiXN1D6bvMqymROaf9ZbWng9uO3WlYI/JIkOqGDBV/ zsCD3bi/yDyizhBeY1jMOxT2sdmbO+aPlNckJM9lGGJNDqslICWgbKeeNsWwfgZu7kIW cC3LQkDl32TWEMJ0nPhaFCLNg0JOUdrK4ztw+5k4xrKwKgA4qbuub9XtxbYUDTurNcBe iyPDOLkLLqk9eBnGDokzgUI3iBLxxCb+4BM5UyP3f0T4GKY/WTXjCfEv3xnDWhilenMw 72kBtURohNcVYDMkJapv2xKIdvH5G66Cj2/jNdYacIdgEVB/PAyGIlDInUCHyw+ebKOE VZtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=PdUigLla; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g20-20020a1709061c9400b007a7d22b9e0bsi3777269ejh.133.2022.11.12.07.20.52; Sat, 12 Nov 2022 07:21:16 -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=@gmail.com header.s=20210112 header.b=PdUigLla; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235055AbiKLPUV (ORCPT + 99 others); Sat, 12 Nov 2022 10:20:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234964AbiKLPT5 (ORCPT ); Sat, 12 Nov 2022 10:19:57 -0500 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A3AF017886 for ; Sat, 12 Nov 2022 07:19:46 -0800 (PST) Received: by mail-wm1-x329.google.com with SMTP id 5so4531722wmo.1 for ; Sat, 12 Nov 2022 07:19:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=RUz+SizcgZSFJ75dUNQdXVQMx+0/9PCMdNqr8UxmHwU=; b=PdUigLlaopBa7TLq4xZ6IjRqvdU6RJ04DQIEmZAuJWErRJFEI436ovC/fpZyn7on3j P4Yw0uYEgThh6Kg04Xo/eRvIA+6Y1N5X/tf2mz2K12XQInc6WoOveYQae7TFbicRADm7 0N0XWgg75I4ZRxZqGlHGFhPTU/kk+GJEO1zBeGnEmDGMfyWmxW+SKembCAu9nb3QG5Uo maW+Ou0n8RomHH1MZTmIwZBnq+e/iMv75WWrFDLyr436V2qAp13enst4BAQtK3RCW6S9 lt/L84huLhe70Vbi/4B8G+13RgnCNavMJ/MHuvITwEbxccp9Vc1DeFmtCHEiFKWCIO3n 16XQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=RUz+SizcgZSFJ75dUNQdXVQMx+0/9PCMdNqr8UxmHwU=; b=CmFrq5Zonu1LT5jT0IbHjHnLRJ1ScFqQv2fJAezlemnxIKtOJoqhN4eGNTpID4Pzom ahJ7Kz6k0m09gH8c6391kFJITXk2GKAEuOVUvVebR/oeWA/no736mqTAISoLf1mEXSJc 4m/Ra3rLNHjnAUwd566+HcWkbF3xSPJ7Z5t4Z4o2tCqwwhq0+NKoVKr8QnUAFw3fej+t 3SSSQBkw+oGPLpbFG2izrLZruzoTF5YBBVz7/ABYTh4VcYGxRYV7QC5uj1uX/0qO+wNX XkTPrjqBNaoWkSiKXsGz04FdOQkOepQFyVIbBQNmKFEZNwl8Ep+XL6WP5cibiCu1DtBd AXow== X-Gm-Message-State: ANoB5pmrINV0JSLXetGbk5QK9/t5oBDHczocNK+FaIRifN+KlPpuhETv s9nAofWBPSaagtkJmn7S+Wg= X-Received: by 2002:a05:600c:6003:b0:3cf:9c1a:2fd0 with SMTP id az3-20020a05600c600300b003cf9c1a2fd0mr4066694wmb.3.1668266385210; Sat, 12 Nov 2022 07:19:45 -0800 (PST) Received: from localhost (94.197.38.186.threembb.co.uk. [94.197.38.186]) by smtp.gmail.com with ESMTPSA id r2-20020a5d6942000000b0022e47b57735sm4638008wrw.97.2022.11.12.07.19.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Nov 2022 07:19:44 -0800 (PST) From: Aidan MacDonald To: lee@kernel.org Cc: mani@kernel.org, cristian.ciocaltea@gmail.com, wens@csie.org, tharvey@gateworks.com, cw00.choi@samsung.com, krzysztof.kozlowski@linaro.org, brgl@bgdev.pl, mazziesaccount@gmail.com, orsonzhai@gmail.com, baolin.wang@linux.alibaba.com, zhang.lyra@gmail.com, jernej.skrabec@gmail.com, samuel@sholland.org, linux-kernel@vger.kernel.org, linux-actions@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev Subject: [PATCH 09/18] mfd: rn5t618: Replace irqchip mask_invert with unmask_base Date: Sat, 12 Nov 2022 15:18:26 +0000 Message-Id: <20221112151835.39059-10-aidanmacdonald.0x0@gmail.com> In-Reply-To: <20221112151835.39059-1-aidanmacdonald.0x0@gmail.com> References: <20221112151835.39059-1-aidanmacdonald.0x0@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749304189091735090?= X-GMAIL-MSGID: =?utf-8?q?1749304189091735090?= Remove use of the deprecated mask_invert flag. Inverted mask registers (where a '1' bit enables an IRQ) can be described more directly as an unmask register. Signed-off-by: Aidan MacDonald --- drivers/mfd/rn5t618.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/mfd/rn5t618.c b/drivers/mfd/rn5t618.c index eb8005b4e58d..2f59230749cd 100644 --- a/drivers/mfd/rn5t618.c +++ b/drivers/mfd/rn5t618.c @@ -80,8 +80,7 @@ static const struct regmap_irq_chip rc5t619_irq_chip = { .num_irqs = ARRAY_SIZE(rc5t619_irqs), .num_regs = 1, .status_base = RN5T618_INTMON, - .mask_base = RN5T618_INTEN, - .mask_invert = true, + .unmask_base = RN5T618_INTEN, }; static struct i2c_client *rn5t618_pm_power_off; From patchwork Sat Nov 12 15:18:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aidan MacDonald X-Patchwork-Id: 19201 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1317058wru; Sat, 12 Nov 2022 07:21:22 -0800 (PST) X-Google-Smtp-Source: AA0mqf6itP6XbUh6QDIU5rapEaKUch/nfMqVcnvLo5Akzr6lfiX6KjZ8ZD1Yay5UWksQ/AD1nI8j X-Received: by 2002:a17:906:148c:b0:7ad:f0ae:bc88 with SMTP id x12-20020a170906148c00b007adf0aebc88mr5550533ejc.188.1668266482162; Sat, 12 Nov 2022 07:21:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668266482; cv=none; d=google.com; s=arc-20160816; b=XSyx5qVRsOuXyRjDR9fKeKJj/5bQK8aBsPjlSzt7EgPlh8eTK+qKgIEuyoccVQad+s HYmHrZ4nkkVVCaUM6Tci+b8KPUdSTjLHvGovjNtQUyQ8gSLM0s06HwAFeTxNuY1CE4WZ qXo3U04v27ci6O2sLdsHAg4AtufYfaG21sNt8M+hbO+dw5rBATWPnOAZf81IqTPqPrWB 9Xr2d6tmbeA7BpeTIbHk5wwC0h0Xfhxh0FE+3PzhWgsnhIphwUtc9+hTOBscTcx4VEEM lBMckRIFHz871OtCmQT/o7GU6WW67BRJOZ+BpSZL/a9lbODNgDjJumCTy58p7WzQDjZt XC6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=rYG0lELIkcRCGP8jsgHL4HQoIjFGIvh4hrSttLYXXSA=; b=wy8m4dugIeK26uHMhN978VLrGaZy7hrzVrs4ylTO7VdhyaVm9u/HgkBd6r4CI4aWN1 l193n6+l1yJEBOcQWhkAkjSlhM5/AEF6rFOKzkRNVBC1NJ2q63KjQvdrAKISyYL1o8Gn vIQQPHrYCrVeNQrmIx3/++9bWqoKsslMg1sfHc+PAIZtcNmjoM5G2ll81bPIdSTcJShr moEQvMrUWkDqHzXeYPWtUBZt9cdBFgGdJQ+ekFmlunSlGS8f2dA+wG0LiqJvXIRm0ZwB JDjF23N6r5+Awh8xe7NCOoxbpSfTgW8v5wpjFOPglsI/3DN07pO/v5ImKKny7tBk8IIk XrxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=eWLIQMsy; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cw12-20020a170906478c00b00730aa841c5bsi4978428ejc.964.2022.11.12.07.20.58; Sat, 12 Nov 2022 07:21:22 -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=@gmail.com header.s=20210112 header.b=eWLIQMsy; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235059AbiKLPUZ (ORCPT + 99 others); Sat, 12 Nov 2022 10:20:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234969AbiKLPT5 (ORCPT ); Sat, 12 Nov 2022 10:19:57 -0500 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7893C18E22 for ; Sat, 12 Nov 2022 07:19:47 -0800 (PST) Received: by mail-wm1-x331.google.com with SMTP id t4so4525247wmj.5 for ; Sat, 12 Nov 2022 07:19:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=rYG0lELIkcRCGP8jsgHL4HQoIjFGIvh4hrSttLYXXSA=; b=eWLIQMsyzKlZKoLwyJYvo9XYbHuX9uT7yE0YZ+4Z7WOpbke8Up9yi/V2ZrY7P8yH0G t57zawvnFxzUA22VM0ORJC5vwC8SMdRfdJSDVnckgh0RiNPh92Of50bx0cQ25CEqkLtH nCgZ6/Um7+wVRZZ8DJcJaqyG7WMSyUkYqJekvswfC/p4Nnmy/RoHuLcTIKPEiCwrJONt 2i53XZjfQND1gJLxyc0gHZ6vg6Wk5Cq1HykLJzLz4bRO+WpDtPxlxL74xNs8nSxdZWv+ x3QS4cefmujEW/XmHabAmy79aWC/NYFtZP8adgDqVOzqAjH/7vLXbl0GlcJp+Bk/NhBR WssA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=rYG0lELIkcRCGP8jsgHL4HQoIjFGIvh4hrSttLYXXSA=; b=0Cr2f0bMN4vbbsxMYKZi1lbWEvSdTGjHCgHnEKHdpnzh4WHwK2+g23at3PWCIfAVjP lSV7HJrPR4XV8VMxDIEkmXrYM0Z56LEIYDPHBHildgHTEEAA0JNt+nBTYXc+b6MZvlS8 Ng6RBYbcW2qdaIHVW8dtBfIjDpNDyfXsHmRdnbiCg/IDABfSgnja3MZZiw2USVCtUd7J ntGHbOssM+ZIp1DGVsAo9Luxlf7zwapt5uhoScayqLRSBtdip1TA5dAI8L5a+EHEGZg5 jea+iQgRkg0zRD5jqnOsU+ki7WuK31IYTf6xIWWiyteDABi6CVGG1hlyajO2b68qUYWQ PtcQ== X-Gm-Message-State: ANoB5plqsnsPwROK+O3VnuHvwMZkXn/PY1P1IOH/cy3fYZrSUmAcCW23 lPcZ0c3izC+Ygqncoq7nC10= X-Received: by 2002:a05:600c:4fd0:b0:3cf:5bd9:68a1 with SMTP id o16-20020a05600c4fd000b003cf5bd968a1mr4325795wmq.113.1668266386084; Sat, 12 Nov 2022 07:19:46 -0800 (PST) Received: from localhost (94.197.38.186.threembb.co.uk. [94.197.38.186]) by smtp.gmail.com with ESMTPSA id bx32-20020a5d5b20000000b0023bb7e4b8b1sm4658536wrb.82.2022.11.12.07.19.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Nov 2022 07:19:45 -0800 (PST) From: Aidan MacDonald To: lee@kernel.org Cc: mani@kernel.org, cristian.ciocaltea@gmail.com, wens@csie.org, tharvey@gateworks.com, cw00.choi@samsung.com, krzysztof.kozlowski@linaro.org, brgl@bgdev.pl, mazziesaccount@gmail.com, orsonzhai@gmail.com, baolin.wang@linux.alibaba.com, zhang.lyra@gmail.com, jernej.skrabec@gmail.com, samuel@sholland.org, linux-kernel@vger.kernel.org, linux-actions@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev Subject: [PATCH 10/18] mfd: rohm-bd71828: Replace irqchip mask_invert with unmask_base Date: Sat, 12 Nov 2022 15:18:27 +0000 Message-Id: <20221112151835.39059-11-aidanmacdonald.0x0@gmail.com> In-Reply-To: <20221112151835.39059-1-aidanmacdonald.0x0@gmail.com> References: <20221112151835.39059-1-aidanmacdonald.0x0@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749304194673017024?= X-GMAIL-MSGID: =?utf-8?q?1749304194673017024?= Remove use of the deprecated mask_invert flag. Inverted mask registers (where a '1' bit enables an IRQ) can be described more directly as an unmask register. Signed-off-by: Aidan MacDonald Reviewed-by: Matti Vaittinen --- drivers/mfd/rohm-bd71828.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/mfd/rohm-bd71828.c b/drivers/mfd/rohm-bd71828.c index 714d9fcbf07b..3c5c6c393650 100644 --- a/drivers/mfd/rohm-bd71828.c +++ b/drivers/mfd/rohm-bd71828.c @@ -413,9 +413,8 @@ static struct regmap_irq_chip bd71828_irq_chip = { .irqs = &bd71828_irqs[0], .num_irqs = ARRAY_SIZE(bd71828_irqs), .status_base = BD71828_REG_INT_BUCK, - .mask_base = BD71828_REG_INT_MASK_BUCK, + .unmask_base = BD71828_REG_INT_MASK_BUCK, .ack_base = BD71828_REG_INT_BUCK, - .mask_invert = true, .init_ack_masked = true, .num_regs = 12, .num_main_regs = 1, @@ -430,9 +429,8 @@ static struct regmap_irq_chip bd71815_irq_chip = { .irqs = &bd71815_irqs[0], .num_irqs = ARRAY_SIZE(bd71815_irqs), .status_base = BD71815_REG_INT_STAT_01, - .mask_base = BD71815_REG_INT_EN_01, + .unmask_base = BD71815_REG_INT_EN_01, .ack_base = BD71815_REG_INT_STAT_01, - .mask_invert = true, .init_ack_masked = true, .num_regs = 12, .num_main_regs = 1, From patchwork Sat Nov 12 15:18:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aidan MacDonald X-Patchwork-Id: 19204 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1318208wru; Sat, 12 Nov 2022 07:24:38 -0800 (PST) X-Google-Smtp-Source: AA0mqf6b1q8atfLHZ+RuxyvLDwf+2i3NI6Xl5ziMOPToHAcHmWKhRM69rM38HKd11C9q0JXsOMAt X-Received: by 2002:a05:6402:3458:b0:458:b9f9:9fba with SMTP id l24-20020a056402345800b00458b9f99fbamr5765965edc.305.1668266678470; Sat, 12 Nov 2022 07:24:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668266678; cv=none; d=google.com; s=arc-20160816; b=ssR015og4LB5Ku1XuKQYQ7Lmz+iFR0Y9hVkSRfMnzAgLtcZ4HJigf8Dfwad2Xcli0j u2ol3BIsYWesYlBtPvaFDjkV8r6tiK38OoNzy5+DGXg4u9CeDSjwQ8W0XpqjJjzQN5b6 S8KeokRc2xIxZIJXzHuIrae6Woeicn00xVlmjoB4ir8B+3uXrlu6qa5Z5L9us7ZEE4il 2BzhaCwSKwUFcjT589yDZW9E8UzLlrnEbXAEh64DTGmI9SNbcGIu87gouB7kCEl5XlbN /JM7dejxt09My0hspIH9stpfg8h8Wgj2hgjK9PXZ//F1ypG6pjSP7FefnY7x/IwLBbK7 CSAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=acztsJdrOe0moyQxGDWG+rNoagLS7dO0IEh5xXE8Q3w=; b=KyydxMhW0qi6UWYb9gaHb2wz4CpqVg0zxSMyqqmPlxS/6d86PNpgRpo/yUk/M4feTy bfmvVuTRfNecaoNBusehuWw0XX1XYvIRIkSHXmMu436AVPbtlR0flUT8f7TTRpsjjwHL L8T2oga4vCSjdZpqwCHINDjGu1UNv82EDMYlTS8loBxNhdhjUwS2c48TNY2me5kDI1Q1 JrzS0qoUEa1Xb+djcrJRi0Qna+AR++pdfCPdOvguidrzSfE9+9OJCtc5nn2bS2SgK7ff 9O8JBmXODBsufBcM83sPa783TD0AY91r96Gcy9BfkULHuypnf4n2PXGzJzeSdxAoqXnI t/yQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="B72ZIoy/"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f15-20020a0564021e8f00b0045217702054si5999605edf.501.2022.11.12.07.24.14; Sat, 12 Nov 2022 07:24:38 -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=@gmail.com header.s=20210112 header.b="B72ZIoy/"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235005AbiKLPUg (ORCPT + 99 others); Sat, 12 Nov 2022 10:20:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234927AbiKLPT5 (ORCPT ); Sat, 12 Nov 2022 10:19:57 -0500 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C333178B9 for ; Sat, 12 Nov 2022 07:19:48 -0800 (PST) Received: by mail-wm1-x331.google.com with SMTP id r186-20020a1c44c3000000b003cfa97c05cdso1514382wma.4 for ; Sat, 12 Nov 2022 07:19:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=acztsJdrOe0moyQxGDWG+rNoagLS7dO0IEh5xXE8Q3w=; b=B72ZIoy/C8w6XAkRuWh0adz9TJE3c/ksIlbW6Oj7U4AMK8NTxd+7Wn3vOEY/mzQOLG +ynv2pC0M3mwdkgN/rmckB2dKlKo7UCGqFYjOvQ4HoC4bFXxECE0IinFVmBQH0gluraN P7rvFxWyVijo83yXcpNAV0LBv5SbD/gajjihlbTUevyQEG/fG6KtTXVuDCJZ36zzLq5T i+Ada1YLdg0QdX2GtWxxS5iI4VCErbN1lcCUEo/KtH2sYUXo2rTRuzU0peN3w5VA7iu2 oAfEO+RGrzlQFwuUZsZgOihfqwdomcUDimOBHHJlTRj+02yYq2tlWO+E8ectt9p9csrb gZYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=acztsJdrOe0moyQxGDWG+rNoagLS7dO0IEh5xXE8Q3w=; b=2QlOZ2RiU1re0Es/PXD0ygjfRqD+GceX9itC8Sw3P2Z+MWfFmMDb5OHhsGP+wqUEd3 aQDQ4LlIHNJD/oocvEVYwDLbiOeIqvfn2XotOxiDMnX6gl+2AHC6kiBTGvbBdH+PLdTv s72/SB2Gn2bvPEUzM8jeIXiCtuaPynPgbPqxwqWtbaizV3R9nESVY+NVC85GYs7lx9Uq Hzn6DDk3r1baxRqh7u8WoWg9zcX5EhvaL3YLT7Eqb3eGLRajMDvR7xOXTDvBkdfhaqcL 40V5f3th3O4gD9zQy+RUynKMXYniah5dKjSfCo520fBHH8uQKM6/aSckKySODlEK9bjk 432Q== X-Gm-Message-State: ANoB5plIy0HAbAF/hcxUZu9/X0QAF44PybPdP9mxkg5TCWjZC7My81iE ZHLpjFk+6HTPWnVXysFEzAg= X-Received: by 2002:a05:600c:354d:b0:3cf:7514:a806 with SMTP id i13-20020a05600c354d00b003cf7514a806mr4190170wmq.116.1668266387219; Sat, 12 Nov 2022 07:19:47 -0800 (PST) Received: from localhost (94.197.38.186.threembb.co.uk. [94.197.38.186]) by smtp.gmail.com with ESMTPSA id z15-20020a056000110f00b0022a3a887ceasm4578267wrw.49.2022.11.12.07.19.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Nov 2022 07:19:46 -0800 (PST) From: Aidan MacDonald To: lee@kernel.org Cc: mani@kernel.org, cristian.ciocaltea@gmail.com, wens@csie.org, tharvey@gateworks.com, cw00.choi@samsung.com, krzysztof.kozlowski@linaro.org, brgl@bgdev.pl, mazziesaccount@gmail.com, orsonzhai@gmail.com, baolin.wang@linux.alibaba.com, zhang.lyra@gmail.com, jernej.skrabec@gmail.com, samuel@sholland.org, linux-kernel@vger.kernel.org, linux-actions@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev Subject: [PATCH 11/18] mfd: rohm-bd718x7: Drop useless mask_invert flag on irqchip Date: Sat, 12 Nov 2022 15:18:28 +0000 Message-Id: <20221112151835.39059-12-aidanmacdonald.0x0@gmail.com> In-Reply-To: <20221112151835.39059-1-aidanmacdonald.0x0@gmail.com> References: <20221112151835.39059-1-aidanmacdonald.0x0@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749304400629218789?= X-GMAIL-MSGID: =?utf-8?q?1749304400629218789?= Setting mask_invert to false is pointless because that's the default. The flag is also deprecated, so drop it. Signed-off-by: Aidan MacDonald Reviewed-by: Matti Vaittinen --- drivers/mfd/rohm-bd718x7.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/mfd/rohm-bd718x7.c b/drivers/mfd/rohm-bd718x7.c index bfd81f78beae..ad6c0971a997 100644 --- a/drivers/mfd/rohm-bd718x7.c +++ b/drivers/mfd/rohm-bd718x7.c @@ -70,7 +70,6 @@ static struct regmap_irq_chip bd718xx_irq_chip = { .mask_base = BD718XX_REG_MIRQ, .ack_base = BD718XX_REG_IRQ, .init_ack_masked = true, - .mask_invert = false, }; static const struct regmap_range pmic_status_range = { From patchwork Sat Nov 12 15:18:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aidan MacDonald X-Patchwork-Id: 19208 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1322651wru; Sat, 12 Nov 2022 07:37:44 -0800 (PST) X-Google-Smtp-Source: AA0mqf4L1NIpDxQi6wqBcLtLNIKHu/qZO3JzhozSLmbdJbNTN7mi91HFamhlKLeGH1uex+SyjL7I X-Received: by 2002:aa7:d64a:0:b0:45b:cb6b:c342 with SMTP id v10-20020aa7d64a000000b0045bcb6bc342mr5647466edr.282.1668267464401; Sat, 12 Nov 2022 07:37:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668267464; cv=none; d=google.com; s=arc-20160816; b=psx9f8lIN5mQS7tjfXEei2mW4R795IZ0xeBJqAsIkxTkVK4BepndRLpLcvZL3AJlDO gJdHw7vHO1KD+JSBsvZ4LLCog8BtfEs6VAolTU0F8dAgOiY26WiJFpmZpW7FbOLkpI6e wtb78YLw5upkTQ3AbI1yHE1mRnYCcxgSpCN+2zyjfOn+xFEsB9xZsYgCbrc2AvwOl0d8 5PmWAMv1Kze+DCChLoLyKwNldYgJxkMZk1hO1NVkehEcbzDJhdRXBFjzDfuGIEMtAQ/X JIuMjDFnYmhb9udqmSPIPBCB4rqFyk3s8TXxKwDFE8pN4NnPBg2EqGwY0JWS/HcBQPYH lWFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=rX7cCKuVYb8T0bIdtXYMmu42sGmoqadgzkdHQD0y+QY=; b=C28Yk1Rtn+yNAekv8vdckeumFNhQkhm5SjsB3oBHhVBWWGABG2kJeueDeoGfK7Rq7h oLr+SlLZz2d+X68S+zeCBFumjMWdEWdGQ7XKJHSAWanUPe2p7qVQe+T36UvyAWAe7Vh3 p8vP8jKr+2SbP+kLvENBP4wohC9YKuQ9EqLVBu332PcOHvvYfPkfQ+yzSGJpfcVgeh95 36SP7UgX7XZ9Ao8fZMl921KFcBKxqX3TSlcJs7H+SoCkyWoYCPdCtY/7EABpmX8tUMGd rlRMU36jFHfNAoxRejk5fl/ExB7Drtt+pSBIYLQdXr2e779e4/JVcRKnc8VdkvlktmuJ dwWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=eMyqe5Ay; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hr20-20020a1709073f9400b007ad4a555cb6si5816306ejc.878.2022.11.12.07.37.20; Sat, 12 Nov 2022 07:37:44 -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=@gmail.com header.s=20210112 header.b=eMyqe5Ay; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235106AbiKLPUt (ORCPT + 99 others); Sat, 12 Nov 2022 10:20:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234925AbiKLPT7 (ORCPT ); Sat, 12 Nov 2022 10:19:59 -0500 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 BEBA91A39A for ; Sat, 12 Nov 2022 07:19:49 -0800 (PST) Received: by mail-wr1-x435.google.com with SMTP id o4so10060774wrq.6 for ; Sat, 12 Nov 2022 07:19:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=rX7cCKuVYb8T0bIdtXYMmu42sGmoqadgzkdHQD0y+QY=; b=eMyqe5Ay3U0wx77cQ/2gz16NxyYV5gWp8dMGPLYd9UsNDB518c0JqQ/QtTZpKnI31X IoAI34NvLVvN0KI1CfpoSXv6729k7RN2VeXlJL13E7LN/6svqM5aclRuyq//KTwFH2CD aS9bLX11utnhq6bBz61ASU9LGuLxhL9cDNEh6l0Yfu/03oaJ6wV6UYXq23xZ3kYBw6va a79VzdA/bVZ0+2iBTrrm9Sb2suzAVwbzMTup7FNFaDNuZTqIBI6mKHUarjKm/zbgJIBQ GxNlxqo0BmWEyZ/VrBOgGGrBVigZ730ESoor8AKfy9uZCGziypR5dRZXXOCS7P6LawR1 vTSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=rX7cCKuVYb8T0bIdtXYMmu42sGmoqadgzkdHQD0y+QY=; b=J06Z0P6E+mvGHfTVdXV6LvQhh+02k3Dd4mWVZQUctupLI5vKkiId7f9zBu1VJRSyUG iaK3nhFEZNOa+iWhl+anv6HBJkJM9N1ENg6MUnAkzB8Py0eM5lJgBFtQz3HUOqhWvduJ 9A1gSN7QEdAeIDfsgrLgqMlsHBno7CqNUtuWcv2leYnewuuOu3Vxd+wsU5Dx7j1kz6Kq YIWYnBgby+lJ5ZOtiSkN9Ujj5PKNWbUANAjXOZOPHuzfc93vx6PdAqSegHZaInUVFdDQ KhZzQjiBgwBv9Sy7US4zDbDJSozBWNiQ+QeR7zo4RdMAAhHutP6k8q5Vb8MEYNUc+f0e Uvng== X-Gm-Message-State: ANoB5pmfsetfzcINvANx33DYMe3nFpg/YpD/HFzTyXgtZViETciqlMFz sn9L0a9q/JgvwrHesiSFT94= X-Received: by 2002:adf:fd41:0:b0:236:6de4:27b6 with SMTP id h1-20020adffd41000000b002366de427b6mr3453371wrs.601.1668266388127; Sat, 12 Nov 2022 07:19:48 -0800 (PST) Received: from localhost (94.197.38.186.threembb.co.uk. [94.197.38.186]) by smtp.gmail.com with ESMTPSA id co19-20020a0560000a1300b0022e66749437sm4675867wrb.93.2022.11.12.07.19.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Nov 2022 07:19:47 -0800 (PST) From: Aidan MacDonald To: lee@kernel.org Cc: mani@kernel.org, cristian.ciocaltea@gmail.com, wens@csie.org, tharvey@gateworks.com, cw00.choi@samsung.com, krzysztof.kozlowski@linaro.org, brgl@bgdev.pl, mazziesaccount@gmail.com, orsonzhai@gmail.com, baolin.wang@linux.alibaba.com, zhang.lyra@gmail.com, jernej.skrabec@gmail.com, samuel@sholland.org, linux-kernel@vger.kernel.org, linux-actions@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev Subject: [PATCH 12/18] mfd: rt5033: Replace irqchip mask_invert with unmask_base Date: Sat, 12 Nov 2022 15:18:29 +0000 Message-Id: <20221112151835.39059-13-aidanmacdonald.0x0@gmail.com> In-Reply-To: <20221112151835.39059-1-aidanmacdonald.0x0@gmail.com> References: <20221112151835.39059-1-aidanmacdonald.0x0@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749305224627006895?= X-GMAIL-MSGID: =?utf-8?q?1749305224627006895?= Remove use of the deprecated mask_invert flag. Inverted mask registers (where a '1' bit enables an IRQ) can be described more directly as an unmask register. Signed-off-by: Aidan MacDonald --- drivers/mfd/rt5033.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/mfd/rt5033.c b/drivers/mfd/rt5033.c index f1236a9acf30..dc9bf4057a09 100644 --- a/drivers/mfd/rt5033.c +++ b/drivers/mfd/rt5033.c @@ -29,8 +29,7 @@ static const struct regmap_irq rt5033_irqs[] = { static const struct regmap_irq_chip rt5033_irq_chip = { .name = "rt5033", .status_base = RT5033_REG_PMIC_IRQ_STAT, - .mask_base = RT5033_REG_PMIC_IRQ_CTRL, - .mask_invert = true, + .unmask_base = RT5033_REG_PMIC_IRQ_CTRL, .num_regs = 1, .irqs = rt5033_irqs, .num_irqs = ARRAY_SIZE(rt5033_irqs), From patchwork Sat Nov 12 15:18:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aidan MacDonald X-Patchwork-Id: 19211 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1324152wru; Sat, 12 Nov 2022 07:41:54 -0800 (PST) X-Google-Smtp-Source: AA0mqf6eirnOcBbiZulAC0VxSNhUDLVTttuDUys6qWIztFrDX11nGyMVlIM2khuInQiMKHJGm2vY X-Received: by 2002:a05:6a00:ac3:b0:562:69d4:f9f3 with SMTP id c3-20020a056a000ac300b0056269d4f9f3mr7487987pfl.5.1668267713673; Sat, 12 Nov 2022 07:41:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668267713; cv=none; d=google.com; s=arc-20160816; b=Oc3JdA1qVWDqSrLh3LP/aYFwF7H/5h0QQ2VGcuyGcPlol0zvEWcCwRQmCLsDcmM8gk kYlRdyiqyrLqxBITN/sgnKoP9XGjI1tSPzKOSzTeLxpMbLN38gWiI2YaHU0rDElzJMsy NAbpAnpvKKRur6cqq4Epa4c6zIFwGkezI8AeBAVvu+QJRal2m772Iv+rEQivxRbDy38z a0SLYGLEbqo1C8ry0PPCxKAQ9PD5G8Z+QL2jmXlgyjhFNko3QtKlVHKxOeUqUa80a1ip 3eruuY0A2T3tmBuaWFogr1NGe+VE5fP5D1kCynyBYm4hZ8W36sMDRSu8fW2P8oO9kAvY REJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=74Exg7KddVXNG5OACBQCL3D7rKH5H5jEWAAQZrjSUes=; b=I1+1ZWDl0Oi6kEZ6xu7h4DeAWES1hMJCKQBPT609i5r+TX5cEoHKOnLX6cYpFHovjh RG2aawE2MBgAiO0VP68T4rtv2VFs7rls/B+TqTJacB7a0k4JRplCHyyADMBKgA9emlrO L+ByG4YJLXPndV/WDeHOQXzUI1GVW3MQqd4iA0bVlh3y6mQaP3G6c7nljbedN39FEtEu PB7xviXLzOiSw0i+nzc/Y5JvejHwGzcsGr7AY8BzenBmYkglLZHT5XBy8L73w1XMkZim 26F6B8mi01Rzd3M3TXq1K1EMUBJS396sJj5+vwx3GsK3eM6QoZaqvaq7tIm7xKuYoXZ4 RGnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=MEr0VMdo; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g7-20020a655807000000b00462f77bcd1esi5499644pgr.90.2022.11.12.07.41.41; Sat, 12 Nov 2022 07:41:53 -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=@gmail.com header.s=20210112 header.b=MEr0VMdo; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235101AbiKLPUq (ORCPT + 99 others); Sat, 12 Nov 2022 10:20:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234989AbiKLPUD (ORCPT ); Sat, 12 Nov 2022 10:20:03 -0500 Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0AD991A829 for ; Sat, 12 Nov 2022 07:19:50 -0800 (PST) Received: by mail-wr1-x431.google.com with SMTP id j15so10073019wrq.3 for ; Sat, 12 Nov 2022 07:19:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=74Exg7KddVXNG5OACBQCL3D7rKH5H5jEWAAQZrjSUes=; b=MEr0VMdo6LgqF2/UDeLPFeAhgBlaXGqOPj834RwpMRcd4AsPgXmzqVuVXdR0ccUDPl FEyfsOVcNhLCQ94HNdDVIzgPzDR72MpKXekWEDea1c0vAE18hqsjV7Df+U/O5ksph6/q aRVnA8FBfLy/Fb6RMKO0PbNVSINKQjS8lVK9z0nfKGA6T04oQO3XsKS+wu92U0IBMHSh inBINSnDaMEXhk6Zv9qmFq/D5M1hqjavWXbApmGAUH4eIw1HaVONH0venv5/3mSvlwox UTbCtTDgH3uIxUPK29RAsUmColKnkj6TXrSAJbAGZx3tM0riILitMyTNpNruXR2opl+7 iBMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=74Exg7KddVXNG5OACBQCL3D7rKH5H5jEWAAQZrjSUes=; b=czROQByPbTB10Ma3JfoyoCSzKznKbw+q+9VPoFavzemFHccL64AHZ+eCzLLre+XcQu NC2A7UwVkGYSE+Ry/7xnweDmpAgIEHfVJBZMvBczns7KCyM2cfGHUZ+0wNwIjaydI22p xgX5tXTCcWz1Bgt7IQozBNwo6sijN3RieY/x9HrZuGsALB0rVGtACi3IRh8agMTjs60F qfQq7646QtehGmnVZUKwXXIhGWMLVYzMToK3kh/doGVu8Q6Wdbji/023tM0kk85FYo8e dZsW+7DRSQoyxJp7WFsB6dgcltWSwcCqkdJ4o/pBLI2pW0M/Tn2tLiH6wNjjrhp3DzCM GKag== X-Gm-Message-State: ANoB5plATGvrb27odY5qqElzt8znR6gIuM5GpJdCYDZO8xM+LSdHpXNw o4ycvyixPW5/0D4umGeHSzw= X-Received: by 2002:adf:f14a:0:b0:22e:3c66:bda1 with SMTP id y10-20020adff14a000000b0022e3c66bda1mr3740739wro.139.1668266389050; Sat, 12 Nov 2022 07:19:49 -0800 (PST) Received: from localhost (94.197.38.186.threembb.co.uk. [94.197.38.186]) by smtp.gmail.com with ESMTPSA id h11-20020a05600c314b00b003b4fe03c881sm13404048wmo.48.2022.11.12.07.19.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Nov 2022 07:19:48 -0800 (PST) From: Aidan MacDonald To: lee@kernel.org Cc: mani@kernel.org, cristian.ciocaltea@gmail.com, wens@csie.org, tharvey@gateworks.com, cw00.choi@samsung.com, krzysztof.kozlowski@linaro.org, brgl@bgdev.pl, mazziesaccount@gmail.com, orsonzhai@gmail.com, baolin.wang@linux.alibaba.com, zhang.lyra@gmail.com, jernej.skrabec@gmail.com, samuel@sholland.org, linux-kernel@vger.kernel.org, linux-actions@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev Subject: [PATCH 13/18] mfd: rt5120: Replace irqchip mask_invert with unmask_base Date: Sat, 12 Nov 2022 15:18:30 +0000 Message-Id: <20221112151835.39059-14-aidanmacdonald.0x0@gmail.com> In-Reply-To: <20221112151835.39059-1-aidanmacdonald.0x0@gmail.com> References: <20221112151835.39059-1-aidanmacdonald.0x0@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749305486457016841?= X-GMAIL-MSGID: =?utf-8?q?1749305486457016841?= Remove use of the deprecated mask_invert flag. Inverted mask registers (where a '1' bit enables an IRQ) can be described more directly as an unmask register. Signed-off-by: Aidan MacDonald --- drivers/mfd/rt5120.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/mfd/rt5120.c b/drivers/mfd/rt5120.c index 8046e383bc92..829b7a0a0781 100644 --- a/drivers/mfd/rt5120.c +++ b/drivers/mfd/rt5120.c @@ -59,9 +59,8 @@ static const struct regmap_irq rt5120_irqs[] = { static const struct regmap_irq_chip rt5120_irq_chip = { .name = "rt5120-pmic", .status_base = RT5120_REG_INTSTAT, - .mask_base = RT5120_REG_INTENABLE, + .unmask_base = RT5120_REG_INTENABLE, .ack_base = RT5120_REG_INTSTAT, - .mask_invert = true, .use_ack = true, .num_regs = 1, .irqs = rt5120_irqs, From patchwork Sat Nov 12 15:18:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aidan MacDonald X-Patchwork-Id: 19202 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1317763wru; Sat, 12 Nov 2022 07:23:21 -0800 (PST) X-Google-Smtp-Source: AA0mqf5dEBd9z2HC6tsmMedZwQ20C3O1sNxlPHr+4E03iUzKgbntq2qh5R1+3+9qSnH+N48Wy69x X-Received: by 2002:a05:6402:1758:b0:461:b6a9:c5cb with SMTP id v24-20020a056402175800b00461b6a9c5cbmr5736690edx.148.1668266601778; Sat, 12 Nov 2022 07:23:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668266601; cv=none; d=google.com; s=arc-20160816; b=F8pYBP5OI91V0JofsG96Le7U0oMilTcP1OMGwyPrSQq+t9xzfscUlzm/vuOTfL++IS Q5L8oQ+tbdlWwIRIAOq8nSpBlqH1TIZZ494r2rgMX83EE8kNhlDLBNsCsctznbAH4JQ4 D72dFI9YXjaVcl/9HIImmcIY+uunuaKmCSNfaHV64E8ymf1Xk1bqceuVBla+mUQwPAjT EzpJLrNePqWFjs/rCbNX6b4oxDsRthXRPmsj6RhqloFw2ORUTeWBnH09pVP6oo6Jv/s2 Y8m3DiV2CWqowEEaIPkL1mNVFOcaTCgG9qX87SAgdAaiohuCLAKGT0OmTgS48gsr3u3t EvNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ap2jtLcVXjGUxCK1ExvNFdVQ5+yTHfCLRbLs7VE5qzs=; b=hfb4eEHv0+RtcEGl2aK4gtVpx62lT3c8x3Jb8z7WH6MAVlNc9F95NWYtUG9mrVKMsr jPQwR4FhmX9g8f1Mb17w14tx1HzvbrxHs74Fd/LKnPO9Ihyp4h9Q2m/9IES790CoQndN MZuGI1I+kb66d7T9PKw5QhYqz/FMVxh3E5hguJITdEHds9VTCZM6bEQddOVEz7hPm4y1 u5F+AL86L0e1Asr5CW+OFxT+d7KgDOfm0DxHZXCnAKEtQuhadOcXQ0Z98zF56jHOR7Mz KfcMtHB/bIfDxop/qO+UQr/6T5h9sdtJAsnEOkd1DZ2afc4mIw7eyc7KYHlVs9yRK2Y+ n/kg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Wa8gR8dx; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hp36-20020a1709073e2400b007ada3808562si5721669ejc.737.2022.11.12.07.22.57; Sat, 12 Nov 2022 07:23:21 -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=@gmail.com header.s=20210112 header.b=Wa8gR8dx; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235091AbiKLPUk (ORCPT + 99 others); Sat, 12 Nov 2022 10:20:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234985AbiKLPT7 (ORCPT ); Sat, 12 Nov 2022 10:19:59 -0500 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0AEB01A82A for ; Sat, 12 Nov 2022 07:19:50 -0800 (PST) Received: by mail-wm1-x332.google.com with SMTP id a11-20020a05600c2d4b00b003cf6f5fd9f1so4884939wmg.2 for ; Sat, 12 Nov 2022 07:19:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ap2jtLcVXjGUxCK1ExvNFdVQ5+yTHfCLRbLs7VE5qzs=; b=Wa8gR8dxTsB9aBeo9EOvBSB5wnOpwbFnbNSss0twylMwCRJaAwPuJ1R3wlev5GGayg uEscH1BofmP9pBKc8TpaqOpzhH9s6WaboIaDyo39go3TA/YxQX3QYOIhfi9Eelbiczjk aY0n1WJsAClc815GTEMdEwcXcqvx/jvK1qIvugA3z4G5qMFm62qnRFfivfxeyPiPr7uq iwSkSCVMZ2Ur7eOUgAwEA7XJFp8OnIKSnhbryoOwwUjXhFQIU8ZvOVY6BR8zQ0Xgs0mH aDQzSImPREnYZrdAl//hKp+fDv80EIxl+PpC/+BY/BgKB2YzqMLhaVhlfIAmMCtqLqXL gXpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ap2jtLcVXjGUxCK1ExvNFdVQ5+yTHfCLRbLs7VE5qzs=; b=H+VMJi/MWD6bPI4xYws4CgV781n0uKKNWeLa6Dp9pwADETNmn1wMottqEz3rHMytl3 mNMNGswwhu/23eWkscYqxSc5jfZaLpohlNYX2MeMzqbgu94L39N8KQDFVHMoCeN2XjSD Bk0oi/tdXFWvhPXTCdPVkMpm46IPR1IooFYLMzu8XT8xXsXdHfHMsQf0yMsODKbeY7fn 7hvj2Sut6Rj52wGMxuEESrRGKaAE+i3s0HH94ae2WnTSngNbztRzPtkhDBumocEiYKgo FBJakoglZ1zmKgydHHdIHf6y269AW1Wy8sGLqk4Hi6y2Q0BfWX4yGrui0lCL/QoQTUWi 3TCA== X-Gm-Message-State: ANoB5pkS5h5LyS+uiWaSHUtcA94k1NtirB51akhWFOqUslsGA2WDjD2C CP5r3YJVXBKowPDPe4MAILM= X-Received: by 2002:a05:600c:44ca:b0:3cf:89c5:c241 with SMTP id f10-20020a05600c44ca00b003cf89c5c241mr3954405wmo.204.1668266390188; Sat, 12 Nov 2022 07:19:50 -0800 (PST) Received: from localhost (94.197.38.186.threembb.co.uk. [94.197.38.186]) by smtp.gmail.com with ESMTPSA id n10-20020adff08a000000b002368f6b56desm5460994wro.18.2022.11.12.07.19.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Nov 2022 07:19:49 -0800 (PST) From: Aidan MacDonald To: lee@kernel.org Cc: mani@kernel.org, cristian.ciocaltea@gmail.com, wens@csie.org, tharvey@gateworks.com, cw00.choi@samsung.com, krzysztof.kozlowski@linaro.org, brgl@bgdev.pl, mazziesaccount@gmail.com, orsonzhai@gmail.com, baolin.wang@linux.alibaba.com, zhang.lyra@gmail.com, jernej.skrabec@gmail.com, samuel@sholland.org, linux-kernel@vger.kernel.org, linux-actions@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev Subject: [PATCH 14/18] mfd: sprd-sc27xx-spi: Replace irqchip mask_invert with unmask_base Date: Sat, 12 Nov 2022 15:18:31 +0000 Message-Id: <20221112151835.39059-15-aidanmacdonald.0x0@gmail.com> In-Reply-To: <20221112151835.39059-1-aidanmacdonald.0x0@gmail.com> References: <20221112151835.39059-1-aidanmacdonald.0x0@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749304320273764134?= X-GMAIL-MSGID: =?utf-8?q?1749304320273764134?= Remove use of the deprecated mask_invert flag. Inverted mask registers (where a '1' bit enables an IRQ) can be described more directly as an unmask register. Signed-off-by: Aidan MacDonald Reviewed-by: Baolin Wang --- drivers/mfd/sprd-sc27xx-spi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/mfd/sprd-sc27xx-spi.c b/drivers/mfd/sprd-sc27xx-spi.c index d05a47c5187f..a4a9b81a952b 100644 --- a/drivers/mfd/sprd-sc27xx-spi.c +++ b/drivers/mfd/sprd-sc27xx-spi.c @@ -181,11 +181,10 @@ static int sprd_pmic_probe(struct spi_device *spi) ddata->irq_chip.name = dev_name(&spi->dev); ddata->irq_chip.status_base = pdata->irq_base + SPRD_PMIC_INT_MASK_STATUS; - ddata->irq_chip.mask_base = pdata->irq_base + SPRD_PMIC_INT_EN; + ddata->irq_chip.unmask_base = pdata->irq_base + SPRD_PMIC_INT_EN; ddata->irq_chip.ack_base = 0; ddata->irq_chip.num_regs = 1; ddata->irq_chip.num_irqs = pdata->num_irqs; - ddata->irq_chip.mask_invert = true; ddata->irqs = devm_kcalloc(&spi->dev, pdata->num_irqs, sizeof(struct regmap_irq), From patchwork Sat Nov 12 15:18:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aidan MacDonald X-Patchwork-Id: 19209 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1322652wru; Sat, 12 Nov 2022 07:37:44 -0800 (PST) X-Google-Smtp-Source: AA0mqf5kVMuSZyiLrYeZiOySbgasrrns9f4uDsPFvLpoXjXKu4NG09T1W0zHCgd3NFcpNYNU9Vs8 X-Received: by 2002:a17:907:20ab:b0:78d:a632:59d2 with SMTP id pw11-20020a17090720ab00b0078da63259d2mr5386312ejb.459.1668267464434; Sat, 12 Nov 2022 07:37:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668267464; cv=none; d=google.com; s=arc-20160816; b=TQ8jOJ5n68ytCdytNYe8dVVj2jW2yBq1g6lcpD1IhSisGP3cEMBRjoN0BZOodDbQfq rZfOv9KeILC69PS7HY2JHQF4Xm8LzMSFaZpg2mxRUcL7REa6AWAJ3J5H9866dCaRahlt ZaTF2GIw6ZrSuZh61uxjpIcb2XiRyHLEkztto4rC+yplFDxvb//QHqaw8Bd5rPqDIzD1 z9h5bqSWoNAjY4SUhJprOHARqB5/AytQp02DV4j6L9a6DZvB1xt8b6g1bZtO18vcWUk7 SRLZ9/vsqW0d2yqy7l7wokNwokRVNPWWgo7yV/dRfv2f3f9VGNBxK2aJ3Qwt7w12Cr+l iO3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=lQfO9aSpyZwa7Ernl6ZzSUxBAyKCA7qTGVn6Uz2Hc38=; b=kGkFjF/Z1s7yz6nUEOUAeZ3+L4gmJcONcrYHsFEJBfnbSls+4hgoKSEoB0GMVQHjVj 1fxp7rRg/F3C9h+hXy7y27NyIU9GmiQO3RLIe2Av3Qh+99wTXw1DMtTfFrGvnhju7AMQ lMSpivpg49P78eaF+GYYnM8LKEMYwJEPvFb9y9pvEXfUDABOLrRbzdDcy2edXIfJqK/S 0LoVVP06vsvmiSN5ND1N/sUKwmLf+CpArfllGAuW8vqZgeVzzV8MFOPTDNF/tkMSx+vG GgYV+h9+FGAq0WuZZpEdJyrmsYFBd0maIoKyKjzdkR6KCLiw8VLfT5EMFPXHKXj+Wdxi Rs1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=dkbbqtnq; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qb5-20020a1709077e8500b0078b96068bc0si315465ejc.79.2022.11.12.07.37.20; Sat, 12 Nov 2022 07:37:44 -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=@gmail.com header.s=20210112 header.b=dkbbqtnq; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235029AbiKLPUo (ORCPT + 99 others); Sat, 12 Nov 2022 10:20:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54216 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234998AbiKLPUD (ORCPT ); Sat, 12 Nov 2022 10:20:03 -0500 Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0537019281 for ; Sat, 12 Nov 2022 07:19:52 -0800 (PST) Received: by mail-wr1-x436.google.com with SMTP id w14so10030458wru.8 for ; Sat, 12 Nov 2022 07:19:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=lQfO9aSpyZwa7Ernl6ZzSUxBAyKCA7qTGVn6Uz2Hc38=; b=dkbbqtnqh33JkWn3vU4tGurrQNHv5Vn4+vFX207hgLEVq8Q3Zobjjdb/2kXhILQfSc PAbXN+1QwkaAntcWkzAvwynmfttmz07onNAzZmdZUdpVV/O3lyY7ru09rYF5bHh1WLSW NVxValVxzw3Ss9KAyhtlixhHJbil9fgyvuysEtG7K/CHaAwG4qrML3mpSDPkj4H/sJ3r Wo6WmsE8L3u75t0tnp8ULrPSuDwAiY7DPygcKa4bvbyfsCAiXazoZ8Spuz3J/yEB1X5E fDx81WH98jgf0ckE8S8DrtCEm1eDFswHQQIkNyifLHMK5r/oeQSCfBaE4YlwjR9R87b6 i4+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=lQfO9aSpyZwa7Ernl6ZzSUxBAyKCA7qTGVn6Uz2Hc38=; b=btdjc3h+QIJ6t4eravC5c1l4o2e3MheyLK+aTO/Q6IqlZ4+iPqcbK0God8VAvqV0CJ +gi7ZwNkHiXLrvc0bKOSt+bvKAEitVPCPV8m23hqltuWQVThwvYm8WVtzNQU+oVIA/h4 iDOb5XCZlshQEHxniI0UuSuBu4U55MgPCp4plgJNN5HrqIzteIWbEYaqOlbIkUXLJzFV bUJxgq+5dwUmhWSJSYIv9SFpD6N7ekML+ZLGRiJ6wvEoAqmYNoFJeENLM3+sP2cPCZzS /jZvuTa6gr8fey9VuhcRO/83CWBzehamkDHQDCrxZX/RkZHv76CAC/J1ahD9mbYcn1Of 2l4Q== X-Gm-Message-State: ANoB5pkbZmEVwK6mpvONtBPvDHogxwZTchozwrw4cINLDYrb5j5Lb/rX X3kOaIxut/WnqkvNHPl/tEs= X-Received: by 2002:a5d:4ecf:0:b0:236:5655:1393 with SMTP id s15-20020a5d4ecf000000b0023656551393mr3666679wrv.626.1668266391110; Sat, 12 Nov 2022 07:19:51 -0800 (PST) Received: from localhost (94.197.38.186.threembb.co.uk. [94.197.38.186]) by smtp.gmail.com with ESMTPSA id g11-20020a5d540b000000b0022cdeba3f83sm4567636wrv.84.2022.11.12.07.19.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Nov 2022 07:19:50 -0800 (PST) From: Aidan MacDonald To: lee@kernel.org Cc: mani@kernel.org, cristian.ciocaltea@gmail.com, wens@csie.org, tharvey@gateworks.com, cw00.choi@samsung.com, krzysztof.kozlowski@linaro.org, brgl@bgdev.pl, mazziesaccount@gmail.com, orsonzhai@gmail.com, baolin.wang@linux.alibaba.com, zhang.lyra@gmail.com, jernej.skrabec@gmail.com, samuel@sholland.org, linux-kernel@vger.kernel.org, linux-actions@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev Subject: [PATCH 15/18] mfd: stpmic1: Fix swapped mask/unmask in irq chip Date: Sat, 12 Nov 2022 15:18:32 +0000 Message-Id: <20221112151835.39059-16-aidanmacdonald.0x0@gmail.com> In-Reply-To: <20221112151835.39059-1-aidanmacdonald.0x0@gmail.com> References: <20221112151835.39059-1-aidanmacdonald.0x0@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749305224794878311?= X-GMAIL-MSGID: =?utf-8?q?1749305224794878311?= The usual behavior of mask registers is writing a '1' bit to disable (mask) an interrupt; similarly, writing a '1' bit to an unmask register enables (unmasks) an interrupt. Due to a longstanding issue in regmap-irq, mask and unmask registers were inverted when both kinds of registers were present on the same chip, ie. regmap-irq actually wrote '1's to the mask register to enable an IRQ and '1's to the unmask register to disable an IRQ. This was fixed by commit e8ffb12e7f06 ("regmap-irq: Fix inverted handling of unmask registers") but the fix is opt-in via mask_unmask_non_inverted = true because it requires manual changes for each affected driver. The new behavior will become the default once all drivers have been updated. The STPMIC1 has a normal mask register with separate set and clear registers. The driver intends to use the set & clear registers with regmap-irq and has compensated for regmap-irq's inverted behavior, and should currently be working properly. Thus, swap mask_base and unmask_base, and opt in to the new non-inverted behavior. Signed-off-by: Aidan MacDonald --- drivers/mfd/stpmic1.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/stpmic1.c b/drivers/mfd/stpmic1.c index eb3da558c3fb..ee0469d5d435 100644 --- a/drivers/mfd/stpmic1.c +++ b/drivers/mfd/stpmic1.c @@ -108,8 +108,9 @@ static const struct regmap_irq stpmic1_irqs[] = { static const struct regmap_irq_chip stpmic1_regmap_irq_chip = { .name = "pmic_irq", .status_base = INT_PENDING_R1, - .mask_base = INT_CLEAR_MASK_R1, - .unmask_base = INT_SET_MASK_R1, + .mask_base = INT_SET_MASK_R1, + .unmask_base = INT_CLEAR_MASK_R1, + .mask_unmask_non_inverted = true, .ack_base = INT_CLEAR_R1, .num_regs = STPMIC1_PMIC_NUM_IRQ_REGS, .irqs = stpmic1_irqs, From patchwork Sat Nov 12 15:18:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aidan MacDonald X-Patchwork-Id: 19207 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1320013wru; Sat, 12 Nov 2022 07:30:11 -0800 (PST) X-Google-Smtp-Source: AA0mqf4ea//X9mBmWZaAorCvSWS+EOyHlYRjG9GjhmN6LElsJS3Gc0hvPUcsrdWvrEHD/oVSDCvo X-Received: by 2002:a62:6484:0:b0:56b:b838:a4de with SMTP id y126-20020a626484000000b0056bb838a4demr7212238pfb.73.1668267010865; Sat, 12 Nov 2022 07:30:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668267010; cv=none; d=google.com; s=arc-20160816; b=rxUMMQQ8hpsEsHB5kyMAR+y3W7PkvGnna4xTH+1aK+8fYCn4gWREWjf8DDWILL4yyU 5WZILXPKcHQpvziu/6c/a2lbHWLk6jOVxEbgehUw5s03SlD5LC088+TDIiNz+ugPQZEQ V7hsyKAi5NwGieM0iL42C/k64X6VIo0xHwYetUJMR6jRU+R56BjUQJ2tlVmzdW2Yosmo 6JibblZ6+QeybK7/DLk69WxMF8Lg2CAxk4+CU8vXJtvu/phCNmV7GNstoPUh4P2upSc6 IDF6rbESRZbD/x+IhQYkQjvvHce8Iez83pnE+j7WWTfZQ06aQajzGx2BPvJGxJYiAjXN 2LUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=9vv/3HAucSDWmO8xwnh5HST4ssDGqCVQOTNcS90+6lU=; b=r63a6a+r7oO7YMhEpgKzUmIjoPWUkT/GZsoqNKkWzX31N2kZ5MO4OLCLKluS2Lb+HM N66AOcHHwslcc+6QkgoDfHgkpg7urUu5LrP7nWO9v0qOYepoo2W5pY1mGA+Tk1Q/7R98 lQ6Ng7O0bbAbT7+GTk66Or1kuWXJAxTwoZg+3X9Ny3UZ5ucXJANDpZY1UKIwsHEQJuup u25QKaI6ZprsZlJm/pRd0j6YBxhboQTFZNRtBMNTmkdpIKAGQCrKjdorvNb8TvGXwbNF ecDW8ODZfuHB8QYqjVtGHoZ2+AliSUB4ez1Tr4G1nTOdwzZTo7doK2TLlz3gU0Bs39rL 1W2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=jpc9tN4K; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y18-20020a170902ed5200b0017e4b8a8289si4954152plb.605.2022.11.12.07.29.57; Sat, 12 Nov 2022 07:30:10 -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=@gmail.com header.s=20210112 header.b=jpc9tN4K; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235010AbiKLPUw (ORCPT + 99 others); Sat, 12 Nov 2022 10:20:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54372 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234960AbiKLPUD (ORCPT ); Sat, 12 Nov 2022 10:20:03 -0500 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 A47061AD92 for ; Sat, 12 Nov 2022 07:19:52 -0800 (PST) Received: by mail-wr1-x435.google.com with SMTP id o4so10060938wrq.6 for ; Sat, 12 Nov 2022 07:19:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=9vv/3HAucSDWmO8xwnh5HST4ssDGqCVQOTNcS90+6lU=; b=jpc9tN4KxBsfE2iBF/Kx5UM/PYB3RbWC0UUz8Pk77cr5NPWSGRNhLeCxpFdjsx6q0O o6n/eE8O5Whvr3WT+nUgB11/duZcUld4r/ERwLQLRKqmjHhEMP/znOH3x9ZRZ+3Sadyd DC09KWR7sCa7JNG+1duiRePnGOp4KbHUUVn4J+ttGNAODo2Cx3fOjbUSRBTBOGLu2Ym8 6CWoYnn2kIsKd8U3/Yc60PH/zfe8I37piGYwWMbdm4FHS8y3D1z4gTKp9XShRQ211dEV QdEhxpfjBzjvu01ECYnHIZutt3SX38/KsAtylLD7FF2JiSlOOE1JEWLkiyMP1Z7JA/tC pL3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9vv/3HAucSDWmO8xwnh5HST4ssDGqCVQOTNcS90+6lU=; b=f7rSwKIz7jGttS93yI62beoUqNdFex6CUuSlnZ/NYg77Ns5389fIXBltD2XynIsrmQ SKRvFJnhOokqWFm5ExPKXfR1i8xQsr5wPbBy2Vr9K0hp7iO55uodzxVujMjM3BIrUzb0 q2ntYgzA8mGTPw3BD2B1NsbKcHSY592VDWMjU81Fc38sumClz++QSsfFSJ4x9nifzpn+ Zi0J6nNspki7Q7u5gcQBNWH+JrHOHPewCMHGXCmQjHjCCUwIYqdHb3Im0kfcsYReBaBX 7qBf8k7YJRzjCPz/JZuupT2WsfajhMNl9MOHuxe1o1lf/BkpaP639yHDvMAmWxP4EG4c C9BA== X-Gm-Message-State: ANoB5pnmlZDeaX3HvNRowxEKEs9rLnmWQjNeGi28EkrsDovpOBNqMx4R GtftFKUQlVD7Kod2XRadH3s= X-Received: by 2002:a05:6000:511:b0:236:64ce:2c0a with SMTP id a17-20020a056000051100b0023664ce2c0amr3671606wrf.230.1668266392072; Sat, 12 Nov 2022 07:19:52 -0800 (PST) Received: from localhost (94.197.38.186.threembb.co.uk. [94.197.38.186]) by smtp.gmail.com with ESMTPSA id h5-20020a1ccc05000000b003cf7292c553sm6509053wmb.13.2022.11.12.07.19.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Nov 2022 07:19:51 -0800 (PST) From: Aidan MacDonald To: lee@kernel.org Cc: mani@kernel.org, cristian.ciocaltea@gmail.com, wens@csie.org, tharvey@gateworks.com, cw00.choi@samsung.com, krzysztof.kozlowski@linaro.org, brgl@bgdev.pl, mazziesaccount@gmail.com, orsonzhai@gmail.com, baolin.wang@linux.alibaba.com, zhang.lyra@gmail.com, jernej.skrabec@gmail.com, samuel@sholland.org, linux-kernel@vger.kernel.org, linux-actions@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev Subject: [PATCH 16/18] mfd: sun4i-gpadc: Replace irqchip mask_invert with unmask_base Date: Sat, 12 Nov 2022 15:18:33 +0000 Message-Id: <20221112151835.39059-17-aidanmacdonald.0x0@gmail.com> In-Reply-To: <20221112151835.39059-1-aidanmacdonald.0x0@gmail.com> References: <20221112151835.39059-1-aidanmacdonald.0x0@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749304749206847798?= X-GMAIL-MSGID: =?utf-8?q?1749304749206847798?= Remove use of the deprecated mask_invert flag. Inverted mask registers (where a '1' bit enables an IRQ) can be described more directly as an unmask register. Signed-off-by: Aidan MacDonald Reviewed-by: Samuel Holland --- drivers/mfd/sun4i-gpadc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/mfd/sun4i-gpadc.c b/drivers/mfd/sun4i-gpadc.c index cfe14d9bf6dc..edc180d83a4b 100644 --- a/drivers/mfd/sun4i-gpadc.c +++ b/drivers/mfd/sun4i-gpadc.c @@ -34,9 +34,8 @@ static const struct regmap_irq_chip sun4i_gpadc_regmap_irq_chip = { .name = "sun4i_gpadc_irq_chip", .status_base = SUN4I_GPADC_INT_FIFOS, .ack_base = SUN4I_GPADC_INT_FIFOS, - .mask_base = SUN4I_GPADC_INT_FIFOC, + .unmask_base = SUN4I_GPADC_INT_FIFOC, .init_ack_masked = true, - .mask_invert = true, .irqs = sun4i_gpadc_regmap_irq, .num_irqs = ARRAY_SIZE(sun4i_gpadc_regmap_irq), .num_regs = 1, From patchwork Sat Nov 12 15:18:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aidan MacDonald X-Patchwork-Id: 19213 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1325174wru; Sat, 12 Nov 2022 07:44:21 -0800 (PST) X-Google-Smtp-Source: AA0mqf544cX1Adn/J1dnwxuulDNtLOfP0S1mMaiIVxG9VWTWaQhFn90ljv2qnzekc6aqwQ3Dh3iv X-Received: by 2002:a17:907:6a15:b0:78d:f308:1cd with SMTP id rf21-20020a1709076a1500b0078df30801cdmr5359471ejc.754.1668267861486; Sat, 12 Nov 2022 07:44:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668267861; cv=none; d=google.com; s=arc-20160816; b=YBBkZETErOAUBxTVjtijE150r5uArHRzWBPOOTkWRpO+TSRo8tDVI4KgFaxCKIHeKn 51fq1vfSbPqLP/azjXx5f0AwrQYG1rB3Kih1IKd6B0bJ2afAocTQBb7X7fo3GFYRiNuW jbhFOlj/UeRTvm0gXORgc3nxhNsiHmctAT5zBPV7q9XyN1bwSQ3fy73bEZk2kOBYJgcp h6qTLejnu3wG18ph5lAtroyAgWRYsRSDIUt4xhvAXu+iWc4Ym6BGlamxpOzAmIOwnwi0 uzyAMQq6cjOGfcciuWOARpFKK3Dr2qnois/6ge7dO5ScTLW47j3GbHAlAbwYAYPS07C+ MChA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=T8JtmDVGUNZLueBXNVQdf6legj2BoWLl/9Iq8NNieS4=; b=foqT/peERR6eFx2qWLzKslPWrD/yu0cwDR8J7ZjxwBKtkg61zXBupL6m/e47IedxBm QSlRxpo/U+wUrLn3FOjpm1lc90e28OWcJLCxOi7aPc9moeZJ+qBU/Kf8XHLSWHTAtRLw vKpxq8edJAVkx5ECoWarwLbRpIQH4va8MydNzQFloVjxaYK0lY+a4dFHtZMVyQ+A7M8U LmJsQ9J7YO8dpMNqlqEWP8ZQG1wCVo34aheapZX1ZYDSYYLe1RJhnnaLdw2rmMcyuOfu y0MAhL1smogpIF5DAGkws+SO1z4puGtahwSAzz90mxneUoTRVMt21tAZDAUtCX5pfOOZ LFKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="KgVCH/IF"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id js15-20020a17090797cf00b007ae6869f9d9si5450094ejc.419.2022.11.12.07.43.57; Sat, 12 Nov 2022 07:44:21 -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=@gmail.com header.s=20210112 header.b="KgVCH/IF"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232659AbiKLPUz (ORCPT + 99 others); Sat, 12 Nov 2022 10:20:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235016AbiKLPUJ (ORCPT ); Sat, 12 Nov 2022 10:20:09 -0500 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD16F1B1C6 for ; Sat, 12 Nov 2022 07:19:54 -0800 (PST) Received: by mail-wr1-x430.google.com with SMTP id l14so10067696wrw.2 for ; Sat, 12 Nov 2022 07:19:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=T8JtmDVGUNZLueBXNVQdf6legj2BoWLl/9Iq8NNieS4=; b=KgVCH/IFzLTIzv2PmfoezQS90DP/PkehCN9B1h+H4iFdbdWIoTM/r7Cwa50poXtFWw NGobU9+5fCU93t7rWyMWBVeXP3BWGb4qVZXku5GvCOk8CbtvwNjcx7znBvqXHjZZCuYi mzyflMozHYpDKR+R2CMCtOyvlK/HLu6kYLbfm3MKtJOadtucpLfIdjb7pjU81gWgNLD9 ao6sjM22ue0h5CXip8Fs/1x/U3Zceh0J0m598S55uOJ+iMIhlHXZxNngz1rfNFU3FoVa FG1E9X+nZE89AU1VFg2MIojBWjLFwLgXY1jfRpe0KGf4JWDbghj/yF7kWMFERb9a957p +JlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=T8JtmDVGUNZLueBXNVQdf6legj2BoWLl/9Iq8NNieS4=; b=G3MlULvRL4jiwNuJ9mLt38f1lviDbCuzt3f/xxZ8+uSenlhqO+nmtBLYRYQ+WUvpX8 vE9qQlYt7tN0bBCBsyp+NOb5XMe+ALYb9Gopdu1AujBapabVlngn+3YZbdhtimHDQEZH xsVZEHRSYTF3F67svioK1UDLu53qnDrMgTxvpbgB9ToweftcfI5OFNUEiQut5r9jFREm eYYwzybE3V4mAPi26ZZCZn7M+9GkTIJDpEwaN4BsQhsVpwXaeDfyeP2uUz3a3+GL/ea3 Ln4H+y7RzAbyUsQxApED+desN1GVlemsxmrmtTOm3noVcQKyElLBfTdx2clXJ5tZf1Ex ExIg== X-Gm-Message-State: ANoB5pn3to82MbqvRwKbSN4PwOS1+byRLZpxBpsubg8ONenym6A2+Xj1 v0U3TNtjDsIN/KyHpqzxa2Y= X-Received: by 2002:adf:f5c5:0:b0:22e:597:8541 with SMTP id k5-20020adff5c5000000b0022e05978541mr3792906wrp.612.1668266393046; Sat, 12 Nov 2022 07:19:53 -0800 (PST) Received: from localhost (94.197.38.186.threembb.co.uk. [94.197.38.186]) by smtp.gmail.com with ESMTPSA id x11-20020a5d54cb000000b002415dd45320sm4584152wrv.112.2022.11.12.07.19.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Nov 2022 07:19:52 -0800 (PST) From: Aidan MacDonald To: lee@kernel.org Cc: mani@kernel.org, cristian.ciocaltea@gmail.com, wens@csie.org, tharvey@gateworks.com, cw00.choi@samsung.com, krzysztof.kozlowski@linaro.org, brgl@bgdev.pl, mazziesaccount@gmail.com, orsonzhai@gmail.com, baolin.wang@linux.alibaba.com, zhang.lyra@gmail.com, jernej.skrabec@gmail.com, samuel@sholland.org, linux-kernel@vger.kernel.org, linux-actions@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev Subject: [PATCH 17/18] mfd: tps65090: Replace irqchip mask_invert with unmask_base Date: Sat, 12 Nov 2022 15:18:34 +0000 Message-Id: <20221112151835.39059-18-aidanmacdonald.0x0@gmail.com> In-Reply-To: <20221112151835.39059-1-aidanmacdonald.0x0@gmail.com> References: <20221112151835.39059-1-aidanmacdonald.0x0@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749305640933372247?= X-GMAIL-MSGID: =?utf-8?q?1749305640933372247?= Remove use of the deprecated mask_invert flag. Inverted mask registers (where a '1' bit enables an IRQ) can be described more directly as an unmask register. Signed-off-by: Aidan MacDonald --- drivers/mfd/tps65090.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/mfd/tps65090.c b/drivers/mfd/tps65090.c index bd6235308c6b..e474e1ca253a 100644 --- a/drivers/mfd/tps65090.c +++ b/drivers/mfd/tps65090.c @@ -127,8 +127,7 @@ static struct regmap_irq_chip tps65090_irq_chip = { .num_irqs = ARRAY_SIZE(tps65090_irqs), .num_regs = NUM_INT_REG, .status_base = TPS65090_REG_INTR_STS, - .mask_base = TPS65090_REG_INTR_MASK, - .mask_invert = true, + .unmask_base = TPS65090_REG_INTR_MASK, }; static bool is_volatile_reg(struct device *dev, unsigned int reg) From patchwork Sat Nov 12 15:18:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aidan MacDonald X-Patchwork-Id: 19205 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1319392wru; Sat, 12 Nov 2022 07:28:14 -0800 (PST) X-Google-Smtp-Source: AA0mqf5n01S4pKCRIVK09AEdiA0eG6mVwfutqv5FE6dJybYONeZmwHeRFNNRiyD9WqAisNCrkEz0 X-Received: by 2002:a17:90a:4d85:b0:212:8210:a61e with SMTP id m5-20020a17090a4d8500b002128210a61emr6676032pjh.135.1668266894645; Sat, 12 Nov 2022 07:28:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668266894; cv=none; d=google.com; s=arc-20160816; b=d5rcD1OSdcqa43sSJZHbWlkvee0KzBAGwMe6Hm3VI76V0Fl+iNe2GXNoN4pO+q+Ebn cccrKRL9Mii+kq5NCknlDYKreINw+ZGI/15IRuxG8Supys4jiaD/hM9akDNkHi+rYVRl ANI6I1gZgfI5RnTIDk0hS+FdhOxEaGSJoTj8s34Q9fPQdbXt/E2ozetLsSIYa4oxQ1Dr uXevZC0IIfOygufBG1b+pU8NxJfbztRrw0jdvK2LXwNd6wYSpkyyIZuC/kRqgaVb7W/R uz9gixGPZLnR06g+i1AIckB3hhNXq9ZNt9c43Rz2rE5ussy8gf/motE4XWVPbGjCSlYF louA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=+keRvM59J/ih6ioqd6X30y/hoD2Rt/b5OT/Ve+w9Ocs=; b=cFiOvSQL4YRJlcAx8NdHC2dYSHKdUx5R6WLYHhEUkOrP2hg6qcoMdc8zgE3iinw3KQ WFhJwp7dRITpJH6Rw5Y/Iq9deDctd5g2IyvjcnvQALpzJ401KO6L76uk8plP1V9cvUzQ hKkxX09y8iRmo2em7ius4FEeo39LrkejF2m3RDuYgBT4Rv0tKx9Er4k3sNap1SVbUl24 DZ/Ye67RK1OdtZSEV0hkf0APjOnDkQcJIZrWKRBzKnt4dafJB0Z+JkNYuRm6xzkad0jU YoQxIU9jVX/RKgvRHpBE7YzL/34RpB+jRJ7VyfT9yAsHjTcWMSYNrGvkfZ2RZnoFvOk7 aVMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=hFKO8FAK; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w8-20020a17090aad4800b001fe280041e8si5006720pjv.37.2022.11.12.07.27.59; Sat, 12 Nov 2022 07:28:14 -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=@gmail.com header.s=20210112 header.b=hFKO8FAK; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235016AbiKLPU6 (ORCPT + 99 others); Sat, 12 Nov 2022 10:20:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234995AbiKLPUK (ORCPT ); Sat, 12 Nov 2022 10:20:10 -0500 Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD1111B1C3 for ; Sat, 12 Nov 2022 07:19:54 -0800 (PST) Received: by mail-wr1-x431.google.com with SMTP id j15so10073273wrq.3 for ; Sat, 12 Nov 2022 07:19:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=+keRvM59J/ih6ioqd6X30y/hoD2Rt/b5OT/Ve+w9Ocs=; b=hFKO8FAKU3bulnKjk44/RipPhrbZia1EvS3q77VHIMZXX94pRlhjD8m2VgQg8LnbD0 PSmqqxKmRJxAWW6JjHo28GpcMUj0b6rmkCMqsOwrvhM3cXfPPMNcWBuQGdY3DR6K7zpY Qv1x5OqWtRmwbdUdCN0bxGxM/JqD2s6x7Zr36+Bp2YRuF8YZRJwztWne3QcDZF7Ln+ac MCSFr4XuRsjoQVVAcZhdPOlQ0ctjQm6VbsLWxnO/0etWK253c1BKHFr2kQoZsJTM55G6 u4ZkL6dY4msSXtcjJHF9b2Ud8IjrtrseNPiJGF29la2C5WuWrlCUkdX9alqupBKWHE7N kVlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+keRvM59J/ih6ioqd6X30y/hoD2Rt/b5OT/Ve+w9Ocs=; b=j3rIhdbTHG7flA3zrdRjP+zjwIWWyQZhCINnuWnIERswjG4a+Bc4TXr+JyZb+tUSgc Ra4/8yZQKTuuGZnG4rFeB3P6vvRAK15NL9Yh7qtyBV/2z+DSg1UxR+07UGkp/VOboi4D 3/mdNCnOpcmCPOLM2lTw0mORi/A6kFhWUFjcSHB183F8GSvuRGHfdipOthP6kfGWTmkJ 1LAJgHTBxNcsRxe+v+5wwGZCRBBV7e4rEUS/n5vMXrLxSWDhoiPY0jjVy7fjsHmj8u3X /dC3OvlSBwIqoxSEboODIptJiY+STkhai9VkZqePbpWJ939w1LkVcZTMRT80dCKVzVh9 gmqA== X-Gm-Message-State: ANoB5pkdBPaBYKqZlgJSQiYV1lJLNPL3kjIeH+jc0vZeLUv4KtjPLmyI BH/NX317scz+mcYMhP0FlFU= X-Received: by 2002:a5d:46c9:0:b0:236:62e3:6202 with SMTP id g9-20020a5d46c9000000b0023662e36202mr3692588wrs.47.1668266393972; Sat, 12 Nov 2022 07:19:53 -0800 (PST) Received: from localhost (94.197.38.186.threembb.co.uk. [94.197.38.186]) by smtp.gmail.com with ESMTPSA id c17-20020a5d63d1000000b002322bff5b3bsm5504758wrw.54.2022.11.12.07.19.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Nov 2022 07:19:53 -0800 (PST) From: Aidan MacDonald To: lee@kernel.org Cc: mani@kernel.org, cristian.ciocaltea@gmail.com, wens@csie.org, tharvey@gateworks.com, cw00.choi@samsung.com, krzysztof.kozlowski@linaro.org, brgl@bgdev.pl, mazziesaccount@gmail.com, orsonzhai@gmail.com, baolin.wang@linux.alibaba.com, zhang.lyra@gmail.com, jernej.skrabec@gmail.com, samuel@sholland.org, linux-kernel@vger.kernel.org, linux-actions@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev Subject: [PATCH 18/18] mfd: wcd934x: Convert irq chip to config regs Date: Sat, 12 Nov 2022 15:18:35 +0000 Message-Id: <20221112151835.39059-19-aidanmacdonald.0x0@gmail.com> In-Reply-To: <20221112151835.39059-1-aidanmacdonald.0x0@gmail.com> References: <20221112151835.39059-1-aidanmacdonald.0x0@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749304627096455285?= X-GMAIL-MSGID: =?utf-8?q?1749304627096455285?= Type registers are deprecated and will eventually be removed from regmap-irq. The same functionality can be replicated with config registers. Signed-off-by: Aidan MacDonald --- drivers/mfd/wcd934x.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/wcd934x.c b/drivers/mfd/wcd934x.c index 68e2fa2fda99..07e884087f2c 100644 --- a/drivers/mfd/wcd934x.c +++ b/drivers/mfd/wcd934x.c @@ -55,17 +55,22 @@ static const struct regmap_irq wcd934x_irqs[] = { WCD934X_REGMAP_IRQ_REG(WCD934X_IRQ_SOUNDWIRE, 2, BIT(4)), }; +static const unsigned int wcd934x_config_regs[] = { + WCD934X_INTR_LEVEL0, +}; + static const struct regmap_irq_chip wcd934x_regmap_irq_chip = { .name = "wcd934x_irq", .status_base = WCD934X_INTR_PIN1_STATUS0, .mask_base = WCD934X_INTR_PIN1_MASK0, .ack_base = WCD934X_INTR_PIN1_CLEAR0, - .type_base = WCD934X_INTR_LEVEL0, - .num_type_reg = 4, - .type_in_mask = false, .num_regs = 4, .irqs = wcd934x_irqs, .num_irqs = ARRAY_SIZE(wcd934x_irqs), + .config_base = wcd934x_config_regs, + .num_config_bases = ARRAY_SIZE(wcd934x_config_regs), + .num_config_regs = 4, + .set_type_config = regmap_irq_set_type_config_simple, }; static bool wcd934x_is_volatile_register(struct device *dev, unsigned int reg)