Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7067112rwb; Tue, 15 Nov 2022 07:18:09 -0800 (PST) X-Google-Smtp-Source: AA0mqf4O6QnQK5K0JLJWJwg59P8GwcZt731ojJApZ1W1msz8xY+kPgUZewiT8DgD0P091b9RhPSV X-Received: by 2002:a05:6a00:4009:b0:56e:7b62:bba with SMTP id by9-20020a056a00400900b0056e7b620bbamr18704601pfb.55.1668525488833; Tue, 15 Nov 2022 07:18:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668525488; cv=none; d=google.com; s=arc-20160816; b=bMLRJW8VSXD2JgMI8aJyYdP1ADb5W4jZ8Uh4+3+ot3C3Sq89nT7IUmod6bJTMUJ/cc oo2YTKMLfsaDJRqnSP+0r2N8Ob6+UL8x64wrNarrMGnsVS2CkS06kNH87FOh5ldh5O+w p/sh43juGICnksE3QRGJRpubAX92kUqaDLy/JvqYkdfZ/ey94vskR58YZdZ55ul45iP+ DUa09jCiTDxjTKL229qXajDtxUEiiF2jeAbqD2gkKP8Fg4u9z4UK4QZtCNwX3IN96ot8 OyGuauAH1MOtD7FCGS3nVhZ0Yy7AV//My0qJ+os1sEcvytdDWsNSEDzSkJVygwk55w4z A3FQ== 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=84ckuklXks9HDjrkjMUEdy8dxhQSVXrlasgbqbXw1SM=; b=nxbKwu6XxrHCiD6ESE1bNYCuRncqQC9P4N06vYVgT+WvMyNLNYtK0Nh6HalsoOV5yy FsuAR92C2NUhMCoJh5YrRrBbYm6I3DekaVyAy4FsnXazY1gThO6hu4k1fksewvDIrghx LyJDY+G8XeYWI6v1gGlp0ISYnL5BtCGzQD8wB5LZS6Y25m/17cSUmSxtFgrtDDWFtRw9 G5scfTTty3Gp/MVCbYoffD3mNP6bnp1XM5KPgrIl0CsHfWqOXJg5Cmk9RUbZeGP0u0gF k55MstWr/4ANBqW49xH5eV/kbgbv6mrlql6mBFMs2wrbq0L0dcs1qb4RN7s7NIh0AQ9C +NPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=hgUxmimd; 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 hk16-20020a17090b225000b00213db2b6587si20154159pjb.169.2022.11.15.07.17.54; Tue, 15 Nov 2022 07:18:08 -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=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=hgUxmimd; 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 S238432AbiKOOoY (ORCPT + 89 others); Tue, 15 Nov 2022 09:44:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58138 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238510AbiKOOn5 (ORCPT ); Tue, 15 Nov 2022 09:43:57 -0500 Received: from mail-vs1-xe31.google.com (mail-vs1-xe31.google.com [IPv6:2607:f8b0:4864:20::e31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F28BB2EF5A for ; Tue, 15 Nov 2022 06:42:21 -0800 (PST) Received: by mail-vs1-xe31.google.com with SMTP id t14so14842256vsr.9 for ; Tue, 15 Nov 2022 06:42:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=84ckuklXks9HDjrkjMUEdy8dxhQSVXrlasgbqbXw1SM=; b=hgUxmimdIPmB+4nNGYIJ9EdfOw9q+yFbT/NQFg3dHBOhblRrcqIQqhEEe/Z+nc60z2 +38wv6QLa5IcwpbYhGSbbiwsA4nVplmuGpZ8mG55oBC5VyZnOlPtpXS/+YIQCyqgU53c udt6lVY4pPw3DWWmKOkiSUWUK2DJSNq4DQahxBuv5kYNb6B72sQvbccO2RY7GIROgvZI 3/UzWGJS6u4LfbTM8gjZYEbUIozPsPm5ucgAPfTovxj1Ru3phDypn15hV/g6w4KatfwU MP+nXZQF8qAW8ovZmJ8Tx7Ry/e1DkHJ76bwr8ss8SUOCO6zFUrCmRVqwPbITO68g+dnG 6lVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=84ckuklXks9HDjrkjMUEdy8dxhQSVXrlasgbqbXw1SM=; b=1PWry2tyfa5XiekhwNq96Z2AzhBJ868IqbuO0caPMlrCOQQK2R78mUisUrN00odQjQ NLREecuSrmE/37lo1G6lTnAngWSmdCtVEZJYPMkThFC92cjSdnscfnofMVzmYhjntl5v rNpwO69hYHowN1LgbejU7jtzyLMJ1KRtH5/6Se6CvdpLfxXL/moNgooZXt1LNQX231ki vonbGg6TcLsezk1NLHq0yLKAI5XKw6MjNe+SDqiTjZy53S5T+Z5bu5NsFurljz6fy+hF HJs6HGuml4PMbTR2uT1pIyO9LPue+e5k88EyDEKGNYMeENBVdh86kydDQUoLlnQi0fzY wPxA== X-Gm-Message-State: ANoB5pmECj75QWyu7QOMyjhwAeWGnyaSHJvI+mBJSZ6V0VbNMjWS7Au+ LK4EUoDhD8MNGpL8vCSrGKOESVryfZSroJwieYO+aV/zrcg= X-Received: by 2002:a05:6102:4187:b0:3aa:c58:66 with SMTP id cd7-20020a056102418700b003aa0c580066mr8989589vsb.47.1668523340865; Tue, 15 Nov 2022 06:42:20 -0800 (PST) MIME-Version: 1.0 References: <20221112152928.42204-1-aidanmacdonald.0x0@gmail.com> In-Reply-To: <20221112152928.42204-1-aidanmacdonald.0x0@gmail.com> From: Bartosz Golaszewski Date: Tue, 15 Nov 2022 15:42:09 +0100 Message-ID: Subject: Re: [PATCH] gpio: sl28cpld: Replace irqchip mask_invert with unmask_base To: Aidan MacDonald Cc: michael@walle.cc, linus.walleij@linaro.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org 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=unavailable 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 Sat, Nov 12, 2022 at 4:29 PM Aidan MacDonald wrote: > > 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/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), > -- > 2.38.1 > Applied, thanks! Bartosz