Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp1236936rwo; Sat, 22 Jul 2023 09:04:43 -0700 (PDT) X-Google-Smtp-Source: APBJJlEO27tG+vSqJMOPbNcmCsetg845miyK7FmCRwCr71lddljHq9UgeKy4H0SUlH0951o+/KC/ X-Received: by 2002:a17:906:8468:b0:992:be80:ab01 with SMTP id hx8-20020a170906846800b00992be80ab01mr5074277ejc.58.1690041882947; Sat, 22 Jul 2023 09:04:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690041882; cv=none; d=google.com; s=arc-20160816; b=lgdkZXVtBOQEZfN165A47L+lpdTyU1tjAOog4JgJmtVZ/y6vv+hmoZXBIQ1FpsFLxJ a2NaYNVGmB/2QvrmjTkPQRgl9gS0iR9q7c8Pkpn0kn0aKvAh6FPYgpybxU/WBe6MNOk7 e/6woHWS6I8uklCAScj9x22OuHdCciypJeHJ29j0XE4xTHoJ10frPjpE3GNOxdvgofj4 BJ6gQvw1oM+T7T5rOYIoISLZIVOADuOQrTMq7t0lwtYgFBhdD1IEra7PJo8/o6Pf1FEs /uQwEHselFH5vAX5HyYTWHOZGDMFWO4NDU9PD26C3L+TVkrdi1H8EQ4th7RRcCIsAZzQ tZ3A== 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=Rlks42DJIbvbP4GaY64MedUDc2SnRkg1IXYiOZGnH9o=; fh=pFsoCbgZRpc6/D2GNvHD0k/j1Yt+zbk8iFsDN+1ofOo=; b=XsKb1LfH6vwD6RzhqQEstCfbqLtPD756ouI8V+U313IZka2SjEKL3tszi0m5d5/Vyj 9IjEOBR2YXTDr3RUMDrgZdyZMC+V8Hbz/2RLR4/YhwWJ+UkvZYpFtkFdslGeWganjmsS N19wLo6/vwVZdspxsfQwR4oSg2el0agplah8MD7hnCwHklRTB8jDY5woc4i9qPRaoUuD xRusEm+h25qe2hwPlG7BOxSw/3kTLaxh8v65BYJsXMb3G3vWynz0yh+p5Cfd8wPs3dN+ n9iIJNIUO0RVwO2geCBg5yPeBeV8TWMZv2QE4AA85FFAe6QNiSn1M5q6Kadvx6aHRON9 YGrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@hugovil.com header.s=x header.b=QTeVsrHg; 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 a16-20020a170906275000b00992d0de875dsi3619704ejd.912.2023.07.22.09.04.18; Sat, 22 Jul 2023 09:04: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; dkim=fail header.i=@hugovil.com header.s=x header.b=QTeVsrHg; 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 S229853AbjGVOrh (ORCPT + 99 others); Sat, 22 Jul 2023 10:47:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229533AbjGVOrg (ORCPT ); Sat, 22 Jul 2023 10:47:36 -0400 Received: from mail.hugovil.com (mail.hugovil.com [162.243.120.170]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C7AA9B; Sat, 22 Jul 2023 07:47:34 -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=Rlks42DJIbvbP4GaY64MedUDc2SnRkg1IXYiOZGnH9o=; b=QTeVsrHgVvhLXJc8V/qMU2F3FN BRlwx7QAQGCxjbpTDdN1e7/VA1IB5XvBejJPha5nZRHL9oyojSWteb2OYG+EWNJBTAPf+GHsqulKW tVncSZ5DXZqbP7pOh0FilEo0JsCJghdmrhAP7b4M4P7YWuhahUl8A04t+asyqDEdJtUk=; Received: from modemcable061.19-161-184.mc.videotron.ca ([184.161.19.61]:57666 helo=debian-acer) by mail.hugovil.com with esmtpa (Exim 4.92) (envelope-from ) id 1qNDtF-000361-Jv; Sat, 22 Jul 2023 10:47:26 -0400 Date: Sat, 22 Jul 2023 10:47:24 -0400 From: Hugo Villeneuve To: Rob Herring Cc: gregkh@linuxfoundation.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, jirislaby@kernel.org, jringle@gridpoint.com, isaac.true@canonical.com, jesse.sung@canonical.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, Andy Shevchenko , Lech Perczak Message-Id: <20230722104724.ef0c5896c239e721794b9fe9@hugovil.com> In-Reply-To: References: <20230721161840.1393996-1-hugo@hugovil.com> <20230721161840.1393996-7-hugo@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, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Subject: Re: [RESEND PATCH v8 06/10] 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 Fri, 21 Jul 2023 13:24:19 -0600 Rob Herring wrote: > On Fri, Jul 21, 2023 at 10:19 AM Hugo Villeneuve wrote: > > > > From: Hugo Villeneuve > > > > Commit 679875d1d880 ("sc16is7xx: Separate GPIOs from modem control lines") > > and commit 21144bab4f11 ("sc16is7xx: Handle modem status lines") > > changed the function of the GPIOs pins to act as modem control > > lines without any possibility of selecting GPIO function. > > Requiring a new DT property is not fixing a kernel regression. You > should be returning the kernel to original behavior and then have a > new DT property for new behavior. Hi Rob, please read the entire patch history starting from V1 and you will understand why this course of action was not selected. > > As a consequence, applications that depends on GPIO lines configured > > by default as GPIO pins no longer work as expected. > > > > Also, the change to select modem control lines function was done only > > for channel A of dual UART variants (752/762). This was not documented > > in the log message. > > > > Allow to specify GPIO or modem control line function in the device > > tree, and for each of the ports (A or B). > > > > Do so by using the new device-tree property named > > "modem-control-line-ports" (property added in separate patch). > > That's not the name in the patch. We added a "nxp," prefix at some point. Do you want me to send a V9 only with this change? Hugo. > > When registering GPIO chip controller, mask-out GPIO pins declared as > > modem control lines according to this new "modem-control-line-ports" > > DT property. > > > > Boards that need to have GPIOS configured as modem control lines > > should add that property to their device tree. Here is a list of > > boards using the sc16is7xx driver in their device tree and that may > > need to be modified: > > arm64/boot/dts/freescale/fsl-ls1012a-frdm.dts > > mips/boot/dts/ingenic/cu1830-neo.dts > > mips/boot/dts/ingenic/cu1000-neo.dts > > Then again, if no one cares about those boards needing a change then > it can be okay. > > > Rob > -- Hugo Villeneuve