Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp7876469rwd; Tue, 20 Jun 2023 07:22:28 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ731upi0rL45Mho9uYbLb98AJesQ4LcKJIxIDmPN6BYKn62Zalexuo4rMDl6xP6m8+LxyS1 X-Received: by 2002:a17:902:ea83:b0:1b0:7c3c:31f9 with SMTP id x3-20020a170902ea8300b001b07c3c31f9mr9454901plb.53.1687270948665; Tue, 20 Jun 2023 07:22:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687270948; cv=none; d=google.com; s=arc-20160816; b=HXwcNRu3H90VMTh0hCDjOFvfAbwf4FL7ARNbrNTCh0abhCpVRbvv6tOMhIbtyT9pn4 4peAyKOSWw58xuQkQnnu6j39dkE26vHFKYjP5uOnHtdIscAx+s2FH0V3b8HudKw7Jt88 kk4wSc0LWGrSauFrdu6mtMZXHjbikXb6nbDNeFg8xE2Zl72IAQiJJa9olI4Zlcp9A1B6 Q3Fvuf+gfBYRp0TzBLROMAhD66i+sma72R5adHX03SRI8cwZWfLurvnDNOuU5gYEbFTA rRylwU0GuOef8n8YW12XDj/kr3vsTaD+fm0PxVOt85JDxNgE61RmUCL4bjgjyfk6cZUg KFhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:content-transfer-encoding:mime-version :references:in-reply-to:message-id:cc:to:from:date:dkim-signature; bh=ekPPUQAmVVrrWr1qBlhGGDjUTFbwDIDMgk2nEuBhZRY=; b=OXPHS7+k5sh0plhE1QbENOpm+6UgIb6XA+sBuop4rFjfWXR1Pl1obe3+BnMFUtxilZ FxvpJQUsvl/Cs5DxQ8j+pSBDY/FJiYb+IK5PnEtuV4x808KA8Vwt+hetC99ugT5dw1ig i9EXKBLrKT3iHSmQurrli2e7EJin/tMIo4IaL12kkupuMU3Jhg8hylbq7ptsYIM9PKyQ MLftAjRSVS1DLHDOKedwIEGd2pZC4P8W3/gQdJiiprSIvA+JE1fl7p0I4weEVOH0BRJO wFVXkxQC+vzdXo5c0J1Bw6XeYIbww7+z6RsMBm+dGdO9CLoRQ7YOIfgxPcjL0SM+LQIx C/pQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@hugovil.com header.s=x header.b=Pttv+VUN; 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 u5-20020a170903124500b001b55048e61asi2111854plh.612.2023.06.20.07.22.13; Tue, 20 Jun 2023 07:22:28 -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=fail header.i=@hugovil.com header.s=x header.b=Pttv+VUN; 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 S233011AbjFTOJG (ORCPT + 99 others); Tue, 20 Jun 2023 10:09:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231528AbjFTOJF (ORCPT ); Tue, 20 Jun 2023 10:09:05 -0400 Received: from mail.hugovil.com (mail.hugovil.com [162.243.120.170]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 37560E58; Tue, 20 Jun 2023 07:09:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=hugovil.com ; s=x; h=Subject:Content-Transfer-Encoding:Content-Type:Mime-Version: References:In-Reply-To:Message-Id:Cc:To:From:Date:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=ekPPUQAmVVrrWr1qBlhGGDjUTFbwDIDMgk2nEuBhZRY=; b=Pttv+VUNGuJ461RzDONyDnw806 3P6etPgLo+dBFcM7lIC85HVrvF4fc6w8YNDyVGDJDd4ZRBCRvfkjELMfeB2A8vlZth6N6mUZff1de 5wAZPsiPO+EBdkG4Be0uG2WjiUtH28SSGNHd4tLUi2/Cu9h5jyKQy5504K1fBFJ2vXuE=; Received: from modemcable061.19-161-184.mc.videotron.ca ([184.161.19.61]:48278 helo=pettiford) by mail.hugovil.com with esmtpa (Exim 4.92) (envelope-from ) id 1qBc2J-0000F2-9L; Tue, 20 Jun 2023 10:08:48 -0400 Date: Tue, 20 Jun 2023 10:08:46 -0400 From: Hugo Villeneuve To: Andy Shevchenko Cc: Greg KH , robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, jirislaby@kernel.org, jringle@gridpoint.com, tomasz.mon@camlingroup.com, l.perczak@camlintechnologies.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 Message-Id: <20230620100846.d58436efc061fb91074fa7e5@hugovil.com> In-Reply-To: References: <20230602152626.284324-1-hugo@hugovil.com> <20230602152626.284324-6-hugo@hugovil.com> <2023060454-cotton-paramount-e33e@gregkh> <20230604134459.3c3844012e9714fa2a61e642@hugovil.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 184.161.19.61 X-SA-Exim-Mail-From: hugo@hugovil.com X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net X-Spam-Level: X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Subject: Re: [PATCH v7 5/9] serial: sc16is7xx: fix regression with GPIO configuration X-SA-Exim-Version: 4.2.1 (built Wed, 08 May 2019 21:11:16 +0000) X-SA-Exim-Scanned: Yes (on mail.hugovil.com) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 4 Jun 2023 22:31:04 +0300 Andy Shevchenko wrote: > On Sun, Jun 4, 2023 at 8:45 PM Hugo Villeneuve wrote: > > > > On Sun, 4 Jun 2023 14:57:31 +0300 > > Andy Shevchenko wrote: > > > > > On Sun, Jun 4, 2023 at 10:47 AM Greg KH wrote: > > > > On Fri, Jun 02, 2023 at 11:26:21AM -0400, Hugo Villeneuve wrote: > > > > > > ... > > > > > > > > +static u8 sc16is7xx_setup_mctrl_ports(struct device *dev) > > > > > > > > This returns what, mctrl? If so, please document that, it doesn't look > > > > obvious. > > > > > > Good suggestion. Because I also stumbled over the returned type. > > > > > > > And as the kernel test robot reported, you do nothing with the > > > > return value so why compute it? > > > > > > It seems that the entire function and respective call has to be moved > > > under #ifdef CONFIG_GPIOLIB. > > > > Hi, > > it cannot. See my explanations in response to Greg's comments. > > Then as Greg suggested, store in the structure and make this function > to return an error code (with int), with this amendment you don't need > to add a comment about the returned variable anymore. Hi Andy, did you have a chance to look at V8 (sent two weks ago) which fixed all of what we discussed? Thank you, Hugo.