Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1165622rwd; Thu, 1 Jun 2023 11:19:43 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7u4smW94+W989u6zMEsdVxtrambQDOSC7kj128UyP+DM+fawraHL9ip6TKDm+qaU9VY0De X-Received: by 2002:a17:902:8506:b0:1ae:6135:a050 with SMTP id bj6-20020a170902850600b001ae6135a050mr255713plb.19.1685643582671; Thu, 01 Jun 2023 11:19:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685643582; cv=none; d=google.com; s=arc-20160816; b=LABtrzsv4aMJWwHFB7pDwTCfImK4q1AO3sxuz645QgibGS0dOPFiSSBFa4FgYhK1HT bPSpO3R961VEu8m13u2IBvmfhpfpdGZeJzPRhye0P63LsbY+RC8a5tNFdSGi7Xp6xCdQ O4/RwxBGEDFbQnc74BLDuUFGRyOW0hXPvQrYEKXRJynggeM4/JNR39YciVSUaJZffCK8 rGTPdqwQIi3DOQsuSsWfOqcsgrj0b3au5oAHKP6i+oacp/EeonooBhf+8xCOVBftln3J Ta9poQlihGSwJD7VibWJbUiXBnzqlfyBNPx5ip9lCEuUBMoZquT8TS7jP08CCiE9XX+B yx1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:references :in-reply-to:subject:cc:to:from:date:mime-version; bh=4xuvdxA7LwNiUHl4899Pe2PqB4u891ivoLsVduFLRy8=; b=tuurRI9usXjOuLemvfPWXoZ3TT0ZYIJtaRk0Ej0RcvJocU8YIzvp+aKGUfUlEDxTaa rn+IoHIZz8K1/di/W2ZCd5oQMru+eBlpwHbg+yOWAntWMKPcRGqKiw4Bo1MJYMSCABxT 4HrQc0q3H9chOsf/1+AtrHgF2ngOJuUtb6MU8Kw+8bz097uzGcn0HKMJvuwJ9Kx57ctA WxglnQE9Rs5y8mhWYaCwYNHYFQd9CY8NWpLVOX7doBXQzOt8PGE4+jny3yuD3fMTdOw5 1Tlg0oKZzfdBJw7zMl7+o/WyLIUbFTW1jcO2s10yTRHNZwgD4ddZNu9b+UF4v2prrMbm 5+zg== ARC-Authentication-Results: i=1; mx.google.com; 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 i8-20020a170902c94800b001ae5e5c275asi3337693pla.364.2023.06.01.11.19.29; Thu, 01 Jun 2023 11:19:42 -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; 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 S231680AbjFAR6Z (ORCPT + 99 others); Thu, 1 Jun 2023 13:58:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229498AbjFAR6X (ORCPT ); Thu, 1 Jun 2023 13:58:23 -0400 X-Greylist: delayed 1804 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Thu, 01 Jun 2023 10:58:20 PDT Received: from connect.vanmierlo.com (fieber.vanmierlo.com [84.243.197.177]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82DFF13D; Thu, 1 Jun 2023 10:58:19 -0700 (PDT) X-Footer: dmFubWllcmxvLmNvbQ== Received: from roundcube.vanmierlo.com ([192.168.37.37]) (authenticated user m.brock@vanmierlo.com) by connect.vanmierlo.com (Kerio Connect 9.4.2) with ESMTPA; Thu, 1 Jun 2023 19:28:01 +0200 MIME-Version: 1.0 Date: Thu, 01 Jun 2023 19:28:01 +0200 From: m.brock@vanmierlo.com To: Hugo Villeneuve Cc: gregkh@linuxfoundation.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, jirislaby@kernel.org, jringle@gridpoint.com, l.perczak@camlintechnologies.com, tomasz.mon@camlingroup.com, linux-serial@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, Hugo Villeneuve , stable@vger.kernel.org, Lech Perczak Subject: Re: [PATCH v5 3/9] serial: sc16is7xx: refactor GPIO controller registration In-Reply-To: <20230601163113.2785657-4-hugo@hugovil.com> References: <20230601163113.2785657-1-hugo@hugovil.com> <20230601163113.2785657-4-hugo@hugovil.com> Message-ID: X-Sender: m.brock@vanmierlo.com Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Hugo Villeneuve schreef op 2023-06-01 18:31: > From: Hugo Villeneuve > > In preparation for upcoming patch "fix regression with GPIO > configuration". To facilitate review and make code more modular. > > Cc: # 6.1.x > Signed-off-by: Hugo Villeneuve > Reviewed-by: Lech Perczak > Tested-by: Lech Perczak > --- > drivers/tty/serial/sc16is7xx.c | 39 ++++++++++++++++++++-------------- > 1 file changed, 23 insertions(+), 16 deletions(-) > > diff --git a/drivers/tty/serial/sc16is7xx.c > b/drivers/tty/serial/sc16is7xx.c > index 0c903d44429c..279d7dcb1447 100644 > --- a/drivers/tty/serial/sc16is7xx.c > +++ b/drivers/tty/serial/sc16is7xx.c > @@ -1349,6 +1349,26 @@ static int > sc16is7xx_gpio_direction_output(struct gpio_chip *chip, > > return 0; > } > + > +static int sc16is7xx_setup_gpio_chip(struct device *dev) Only one parameter, but... > + ret = sc16is7xx_setup_gpio_chip(dev, mctrl_mask); called with two. Maarten