Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp835307imn; Tue, 26 Jul 2022 10:32:49 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tCQIoxzaXh9jx9JBTwtAep/UlAUkJv3PQF4+P8rfuCh3bQns/BGmGIbIM84R1oCmjihlPi X-Received: by 2002:a17:906:ef8b:b0:72b:4a67:8ae5 with SMTP id ze11-20020a170906ef8b00b0072b4a678ae5mr15005523ejb.763.1658856769195; Tue, 26 Jul 2022 10:32:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658856769; cv=none; d=google.com; s=arc-20160816; b=l2RLVti3zoRtj4bN1JOGSO1IJwVY9cHhzU967GJC91XHqrWeXqVbxHE0FlaCn8U/yV HSOUU//Xj29mbZWkK8fYqK09OUv9hHOfZNAUVeszlQam450KR/dcQejPBF0cngSngz9H /0RFTN5wHs54GpT8Yy3QF5H6cagJZ+DyRHu35JR60UtetUzvhF4kRh6pHHFGZ9nfMRsg RK4k2UKV59PttdYrCTwkxKM1GjSzaEsGwfmu2j5aVO332UaHizUun6fpxrHcWNmifaOI 9jFkVzyCCLJ82Il1WBMhm9MukHX4kfqeyHYpR2+4s0duDmoPxj/04q6ncNx/lJt2BLPp pf3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Rh723Ajvwuei+YLNOSUmMDaBNCt50o8njISA3FQglhk=; b=RcGEmvaDWoxIiGOCIUrGSzSLQo62fO14BMmX6+o5skeVjsTPCKBrP7WaME+kcs7Ikh 8ooQE5vjDFsj7CBtdwkudz20MU/YxcpR3cHHswH8zmXXqaZpEk6IFbBP2w8G53DZCS06 0PON3MH0sdYv1ipOJejtvdB143RPA2Zg4NgiTPSwseAcDBnokWXxvPYjxwg6gtRZaEyO 4DP8EcZALVrL8uyf4t8YMNkZAugQf5DX/XbhjSW3PqwR5kP4DI11JuCoa6XbLHjeBvI5 JmVJ9XeqyE5eU79lxfUJjmzhlVjiQRffwq6TYlRbfZyE0VlwOpsgsioMfyLwiMsSLasx VFQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=pFZbkYkv; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qa44-20020a17090786ac00b0072f09e70939si18909916ejc.131.2022.07.26.10.32.14; Tue, 26 Jul 2022 10:32:49 -0700 (PDT) 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=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=pFZbkYkv; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239309AbiGZR2n (ORCPT + 99 others); Tue, 26 Jul 2022 13:28:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55008 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230386AbiGZR2j (ORCPT ); Tue, 26 Jul 2022 13:28:39 -0400 Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81CC72B61F for ; Tue, 26 Jul 2022 10:28:38 -0700 (PDT) Received: by mail-ed1-x529.google.com with SMTP id z22so18532857edd.6 for ; Tue, 26 Jul 2022 10:28:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Rh723Ajvwuei+YLNOSUmMDaBNCt50o8njISA3FQglhk=; b=pFZbkYkvjyITzKTAIiENpYWaTK9at4DFJwxk7achMTIby49sgYQvdle04Gj7AlwEgS XfGjp1YTd8Wmck8g9WlKPaaucsW3ogzcsrzxd1ZkYks6Z2FVzD73F9NClC3YRaDvN6gJ Y7bDKz1sxNk/JTQlVi90Mg/kdEcaqMzQ98+YIf4b40nmSipECR1Vsv569gwCitv7Nclq csV881RIlMHDxbYrlTMUyJknlEHggDzbowYZanewehED3qIjwH5wU+VIyz+PQADIZYFD Zk+YAJilWW4cM46x8n12wA8mg0P/oMLOCQVVHxu5lKcqT+yJPuBmT5+ozUFvOU0H1MZf 1qaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Rh723Ajvwuei+YLNOSUmMDaBNCt50o8njISA3FQglhk=; b=ARehYoDWATmClQ62/+ce8Hw1c9POjc+4MJtanMIWoGeHBl4r+QoSBi6zMa+jvxzpV8 /ICSO4agjgjhJNtXQTPLunqniZqu76/pE7Dedhux/+DOiTNzH3tVmmUZ+Dx0PWYHofY2 Yk8laXCBtzxlO6dfzu9Otpvy13b4+brFPjz27B84nn+WfBgOPX9oNaN1/UtosEbR7PtU Oz9Tjnk6nrsJMjb/B68yBD2k5qxzcQX1zqZVgGMNizQ5/vSmP4UEkha2MjbANY/MDZvI 3Fu/ZZcjDpIMSKQ7vo07q8l4mXERJLzm/cueu/t332OShd+KbXIeqjDo1hMd2LGxOZl3 UOzg== X-Gm-Message-State: AJIora+QT+6APlyFzynnk3fH8SWit9PWPBa1flIIgQNoB9Kaed8/J3Ai DspGQlXtgj/ouDF53c6lv9SiqjKI3QTIIGT5+EtKaw== X-Received: by 2002:a05:6402:1d4c:b0:43b:c85f:5c95 with SMTP id dz12-20020a0564021d4c00b0043bc85f5c95mr19575068edb.213.1658856517092; Tue, 26 Jul 2022 10:28:37 -0700 (PDT) MIME-Version: 1.0 References: <20220721101416.18129-1-aidanmacdonald.0x0@gmail.com> In-Reply-To: <20220721101416.18129-1-aidanmacdonald.0x0@gmail.com> From: Bartosz Golaszewski Date: Tue, 26 Jul 2022 19:28:26 +0200 Message-ID: Subject: Re: [PATCH -next] gpio: sl28cpld: Replace irqchip mask_invert with unmask_base To: Aidan MacDonald Cc: Linus Walleij , Michael Walle , "open list:GPIO SUBSYSTEM" , Linux Kernel Mailing List , Andy Shevchenko Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE 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 On Thu, Jul 21, 2022 at 12:13 PM Aidan MacDonald wrote: > > Following recent changes in regmap-irq, unmask registers can now > describe inverted mask registers where a '1' bit enables an IRQ. > Because this implements the same functionality as mask_invert and > is more straightforward, the mask_invert flag has been deprecated. > > Update the driver by replacing all uses of mask_base & mask_invert > with unmask_base. > > Reviewed-by: Andy Shevchenko > Reviewed-by: Michael Walle > Signed-off-by: Aidan MacDonald > --- > This patch depends on the "regmap-irq cleanups and refactoring" series > which (at time of writing) is already in linux-next. > Link: https://lore.kernel.org/lkml/20220623211420.918875-1-aidanmacdonald.0x0@gmail.com/ > > drivers/gpio/gpio-sl28cpld.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/gpio/gpio-sl28cpld.c b/drivers/gpio/gpio-sl28cpld.c > index 52404736ac86..2195f88c2048 100644 > --- a/drivers/gpio/gpio-sl28cpld.c > +++ b/drivers/gpio/gpio-sl28cpld.c > @@ -70,8 +70,7 @@ static int sl28cpld_gpio_irq_init(struct platform_device *pdev, > irq_chip->num_irqs = ARRAY_SIZE(sl28cpld_gpio_irqs); > irq_chip->num_regs = 1; > irq_chip->status_base = base + GPIO_REG_IP; > - irq_chip->mask_base = base + GPIO_REG_IE; > - irq_chip->mask_invert = true; > + irq_chip->unmask_base = base + GPIO_REG_IE; > irq_chip->ack_base = base + GPIO_REG_IP; > > ret = devm_regmap_add_irq_chip_fwnode(dev, dev_fwnode(dev), > > base-commit: 353f7988dd8413c47718f7ca79c030b6fb62cfe5 > prerequisite-patch-id: a45db1cac7537769dc10087fc61f977dc150744c > prerequisite-patch-id: cb8aa009c7bb7a6575eb05e3af65342dc8d0efa3 > prerequisite-patch-id: 8d32557e53b894d1fb17250d2d0eb3673f068d37 > prerequisite-patch-id: 5b293867ef81e3697892ac51b941bb53680a70dc > prerequisite-patch-id: 8138d39a4817e804141bfe8c2ad37d9c55456a40 > prerequisite-patch-id: b01216129e887519d441cf556bbc75c397871773 > prerequisite-patch-id: b5dcf0c0609113c2d81bc557c1fc95ef23f40811 > prerequisite-patch-id: 622ca1c10e851b1889aaa567c1d2a0adf43cca44 > prerequisite-patch-id: d28c5187f9bf0e43f27b2f4aa8dcf7fd91842a03 > prerequisite-patch-id: d29d54b756be73304f844abeeaf9b46a5c0119d5 > prerequisite-patch-id: 5d405790ae89c0831b46a359f86e94bac5a67470 > prerequisite-patch-id: c90120e79acbb52ffa148bfedee1df9d35b5eced > prerequisite-patch-id: 2e35247a5cfe5a28565c9272b85fc6835011b032 > -- > 2.35.1 > Who took the prerequisite series? Do you mind if we wait until the next merge window with it, that way we'll simply apply it without having to pull in other branches? Bart