From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B7434C61DA4 for ; Mon, 6 Mar 2023 23:39:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229627AbjCFXjc (ORCPT ); Mon, 6 Mar 2023 18:39:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229587AbjCFXjb (ORCPT ); Mon, 6 Mar 2023 18:39:31 -0500 Received: from fgw22-7.mail.saunalahti.fi (fgw22-7.mail.saunalahti.fi [62.142.5.83]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3142E4B803 for ; Mon, 6 Mar 2023 15:39:30 -0800 (PST) Received: from localhost (88-113-24-128.elisa-laajakaista.fi [88.113.24.128]) by fgw22.mail.saunalahti.fi (Halon) with ESMTP id 22581700-bc78-11ed-a9de-005056bdf889; Tue, 07 Mar 2023 01:39:28 +0200 (EET) From: andy.shevchenko@gmail.com Date: Tue, 7 Mar 2023 01:39:27 +0200 To: Biju Das Cc: Linus Walleij , Thierry Reding , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , Geert Uytterhoeven , Magnus Damm , linux-pwm@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-gpio@vger.kernel.org, Prabhakar Mahadev Lad Subject: Re: [DO NOT APPLY PATCH v6 10/13] pinctrl: renesas: rzg2l-poeg: output-disable request from GPT when both outputs are low. Message-ID: References: <20230306090014.128732-1-biju.das.jz@bp.renesas.com> <20230306090014.128732-11-biju.das.jz@bp.renesas.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230306090014.128732-11-biju.das.jz@bp.renesas.com> Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org Mon, Mar 06, 2023 at 09:00:11AM +0000, Biju Das kirjoitti: > This patch adds support fpr output-disable requests from GPT, when both > outputs are low. > > Added sysfs to enable/disable for configuring GPT output disable request > when both outputs are low. ... > +static int rzg2l_poeg_output_disable_both_low(struct rzg2l_poeg_chip *chip, > + bool enable) > +{ > + if (enable) > + set_bit(RZG2L_GPT_OABLF, chip->gpt_irq); > + else > + clear_bit(RZG2L_GPT_OABLF, chip->gpt_irq); JFYI: assign_bit() > + rzg2l_gpt_poeg_disable_req_both_low(chip->gpt_dev, chip->index, > + test_bit(RZG2L_GPT_OABLF, chip->gpt_irq)); > + > + return 0; > +} -- With Best Regards, Andy Shevchenko