Message ID | 20221112152928.42204-1-aidanmacdonald.0x0@gmail.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1324333wru; Sat, 12 Nov 2022 07:42:23 -0800 (PST) X-Google-Smtp-Source: AA0mqf4tojUhUb2WFopeL5hKrt9vTtaoCVA6SKgHRpFzpzZdTnUXmTbdXTltDL9hYJuwdGAIR1CG X-Received: by 2002:a17:90a:fa18:b0:217:f56b:a861 with SMTP id cm24-20020a17090afa1800b00217f56ba861mr6833795pjb.64.1668267743624; Sat, 12 Nov 2022 07:42:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668267743; cv=none; d=google.com; s=arc-20160816; b=dWyOiNGP9wEYBpooNUI3sE3pffeFLUy6P2o9te7IvB6a9qgAhzgU74RLRopGH2TrHj sX7BTMOCeqsz/90gIkcOo0yStQkc9kmdyRNRRJuCoYQbGy2ffLYQSPas5rfTMJzG9l+U QoIycZroeYFZPArMDYlzxfvtq6sLvv1bgdBj44uLkvjoRmaa9vpswagLip+1tkl1jmHp rGhbvqF/vUY5SY+UdhpeJxpQUdAeDNQl6BeC/DuoAfe8BDd02H4m10bv4N8E1VcRMCKd hIeI+kFTFkgMe2123BqL1WNvknSUcPmxabSNt8ZT4nrq/706IEPsQcNeNsFBvb5xWYK7 nIhg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=g6cp5m3ImBZ7KTnMToLeEU95rkG7mRiWgSX6Mnz0HUk=; b=QZEqrNGchRpAPMkxjZ7PaYI4Y9q6F23f1X5FQYAS9ofMDMHzjUYVhbNO01pKnykg5+ KN92JEyQbiB2MHKvZQ3tJtbHtSsjPgq1nvVLNVk65ZxGE8kj79LlXS1K8+gN3YC6rkW4 3m6raCgBBQtxtL3WtzlItUDD+XDaPIQvde8o6/WWPTodCbJuz1YU/Qltzl7NopVEGVtC 8NRK9ruxfEVaH8BMDPZVH1q+Qf5pO8RVvr5DBux8UNUef8l0pQKi6asnZjlinFKG91NK oMpcP1HRzbJ/1XcN3CwtoJ7ogF2VYxnh6yJ+4sSiH8qrUuEM38U0m9I2/BNk2n1U0gHp utuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="H+Nveg/m"; 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 bd9-20020a056a00278900b0056e2b0193bdsi5735473pfb.141.2022.11.12.07.42.10; Sat, 12 Nov 2022 07:42:23 -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="H+Nveg/m"; 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 S234992AbiKLP32 (ORCPT <rfc822;winker.wchi@gmail.com> + 99 others); Sat, 12 Nov 2022 10:29:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231404AbiKLP31 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sat, 12 Nov 2022 10:29:27 -0500 Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 496EFC773; Sat, 12 Nov 2022 07:29:26 -0800 (PST) Received: by mail-wm1-x335.google.com with SMTP id t25-20020a1c7719000000b003cfa34ea516so6745535wmi.1; Sat, 12 Nov 2022 07:29:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=g6cp5m3ImBZ7KTnMToLeEU95rkG7mRiWgSX6Mnz0HUk=; b=H+Nveg/mN09Lol3Pj5k/TN2le7XBMJrVS9lbYMnNLnVf7GBxofVa3Xw9d3DVFQfVhG 9tkWET348ZrYG9lTdWhZP/eUdc5tJPvvqxF7YBw2xzddToJ9V0zvlDGR0rK/Xsne8wQq rctCQOJjlsdZ9+q/K/Q9vpP3sYcHXzkynAkFwmGKrl8mXPCcL7ZhGc01tKnBz5FZOYOE lFb2Z4FhCv5inyRZlLTY60b05+7wxKV3a03Z10xrV8SV3yfa5h4bx4K42Mdap269JdQl iZP5T9WAqergBfAQ+6NlwsLVvfewREtVz7iJsJQpGol9kp8fQG59oBFlBGsSz79IYneA knCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=g6cp5m3ImBZ7KTnMToLeEU95rkG7mRiWgSX6Mnz0HUk=; b=si0iFLTB0rAgFLM6H71QuFiFQipxuuqhxsSltwg02UAGOlvJgeTehLTEHtU3W3gdNU GvxVG7qmZhL+VzRonsJOHLBGg5bcCiBSGvkMtJdUY9qzmGSY4IKKYb6dPU6jOY0ioaHM ovhO0pJagx5BKxYgmka47X0ddH3OqoiSsYoBMrdQwgTgiHAp2V6piBQgt4HVXqXu6a6w 5Zuvd01Sba5jjIT2reyVC6JNGRe67dHQC36ybVb+Orm5o0uLHpOpovxEraoH1ovdq6UV eGYCwPQzgFZwn+tmDdAkNJUZXCF6C7Agg6zl++/f91uRjWrQw9aLdMm+9EthyyIniGYh Ohbg== X-Gm-Message-State: ANoB5pmXLomNRfdLvGNKXb9VKolsVax+nXUKl1Lg/Jf8AksW5nBS9pyY Qri7YfCPAP1fzWMR5k5dXlg= X-Received: by 2002:a05:600c:348e:b0:3cf:6e78:e2aa with SMTP id a14-20020a05600c348e00b003cf6e78e2aamr4154643wmq.121.1668266964921; Sat, 12 Nov 2022 07:29:24 -0800 (PST) Received: from localhost (94.197.38.186.threembb.co.uk. [94.197.38.186]) by smtp.gmail.com with ESMTPSA id h4-20020a05600c350400b003c6f426467fsm13646045wmq.40.2022.11.12.07.29.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Nov 2022 07:29:24 -0800 (PST) From: Aidan MacDonald <aidanmacdonald.0x0@gmail.com> To: michael@walle.cc, linus.walleij@linaro.org, brgl@bgdev.pl Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] gpio: sl28cpld: Replace irqchip mask_invert with unmask_base Date: Sat, 12 Nov 2022 15:29:28 +0000 Message-Id: <20221112152928.42204-1-aidanmacdonald.0x0@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749305517545858970?= X-GMAIL-MSGID: =?utf-8?q?1749305517545858970?= |
Series |
gpio: sl28cpld: Replace irqchip mask_invert with unmask_base
|
|
Commit Message
Aidan MacDonald
Nov. 12, 2022, 3:29 p.m. UTC
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 <aidanmacdonald.0x0@gmail.com>
---
drivers/gpio/gpio-sl28cpld.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
Comments
On Sat, Nov 12, 2022 at 4:29 PM Aidan MacDonald <aidanmacdonald.0x0@gmail.com> 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 <aidanmacdonald.0x0@gmail.com> Makes sense Acked-by: Linus Walleij <linus.walleij@linaro.org> I expected to see Maz on CC for this kind of patches so added him. Yours, Linus Walleij
On Sat, Nov 12, 2022 at 4:29 PM Aidan MacDonald <aidanmacdonald.0x0@gmail.com> 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 <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), > -- > 2.38.1 > Applied, thanks! Bartosz
Am 2022-11-12 16:29, schrieb Aidan MacDonald: > 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 <aidanmacdonald.0x0@gmail.com> Sorry for the late response, I was on vacation. I see that it was already applied, so just for the record: Acked-by: Michael Walle <michael@walle.cc> Thanks for taking care, -michael
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),