Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5973216rwd; Mon, 5 Jun 2023 11:01:56 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ61yT4ewQIS1ONL6ceOIDfPhV7gNVqTqff78lZvbgVB8kYwDyoQ/lgTm+6uHVjdhDhAJRVf X-Received: by 2002:a05:6a20:4429:b0:10f:f672:6e6b with SMTP id ce41-20020a056a20442900b0010ff6726e6bmr3648363pzb.5.1685988116494; Mon, 05 Jun 2023 11:01:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685988116; cv=none; d=google.com; s=arc-20160816; b=rV5UwpRn/g2NCZRwjtgvp07g35oTpjEDwEVKmD4SrZktEIF/dQ2szxU3Mlap4fbC3l v0idecQC7gEOGmdyMryiZN/QfbM3iaqR348c5OA8mKafpx3vLGSVM1TZ8WtpLjT9+SX3 C72yG2UJ8JNVFjWlk87rwNYRJHl3ipymllXYMlPOGsgyZcSpo7po7K8sIjxQxtuJ0ben eUV9wmzM6t0g/OGmA3LW3e16FWLsDP2BEAZdfS6D8zMWeuN21qSZMVSdEmBsMWtnt0Me wUobNl/9ZWXg6g0T4CZG7kwwLwYOfbace1mQjIFwH5yi7sdURxs9h/TLT3m0gY/AFbg1 uECQ== 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=5wQ79+3ie9B5Wrf6oahpgoNv8SQzC2LUU6mondumang=; b=pw8TlJveYvBw7tgywwz66CU5GY40VTHX4axkeVYXgc2kV0+kO00uJ8BzFGq1drxs9A lt3GymIM+/jf2MW0fsiXtDgxtPRdFTPcx5TsRQMCl3tX490xsxvrx33sOLY08XCuir07 QniRRZraIMRmkNjEPVi3Keo0aUeTjanURGYH4IN+mt/CJqiBZz9wcJNHeP6oqZW7tbWs o/rZERus8fO+2cPBtOO675urUNuu7k+Xr7CebUtGYIsdHOVvY6yVbhjyJGGOwExGfIzU rahy9L8yODAGnFXhO66VbwdMhFXe1iPbdk6Xpr1Pj0NNBwPuFwSwt/fSlIphdSDc/Rzv ewqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@hugovil.com header.s=x header.b=bXDrMcbE; 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 j184-20020a638bc1000000b0053ff2caa766si5706886pge.550.2023.06.05.11.01.36; Mon, 05 Jun 2023 11:01:56 -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=bXDrMcbE; 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 S231793AbjFERxV (ORCPT + 99 others); Mon, 5 Jun 2023 13:53:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231991AbjFERxT (ORCPT ); Mon, 5 Jun 2023 13:53:19 -0400 Received: from mail.hugovil.com (mail.hugovil.com [162.243.120.170]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C36CD3; Mon, 5 Jun 2023 10:53:17 -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=5wQ79+3ie9B5Wrf6oahpgoNv8SQzC2LUU6mondumang=; b=bXDrMcbEpmir14t0N38XT0dSXa ZS/kN+n+usAnHqQbCP7yZ799X4vnucRbXKhw5Dv/J8oaB5mLRqrvxeqU7st7Sh6AOdehTEwz6QFaz Yj355uOAGg1LjUCYJ5twy3gf8jTLvUtxEXZePBJ1RQvY4gc86ckTL1q8Ow9RjIMvabRQ=; Received: from modemcable168.174-80-70.mc.videotron.ca ([70.80.174.168]:41322 helo=pettiford) by mail.hugovil.com with esmtpa (Exim 4.92) (envelope-from ) id 1q6EOA-0001lv-Ku; Mon, 05 Jun 2023 13:53:07 -0400 Date: Mon, 5 Jun 2023 13:53:05 -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: <20230605135305.918dd2b2a88912fbb28e8fbb@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: 70.80.174.168 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 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, Yes, that is what I have done for V8. Simplifies/clean things a lot. Hugo.