Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp336231rwo; Fri, 21 Jul 2023 12:39:22 -0700 (PDT) X-Google-Smtp-Source: APBJJlGlbmTMSv3drx4/VJMcL/lo39KNANr6ZyPbRuNyA2GfYQG5/ZZ2P7ySns0q/U8TNOl7yrUj X-Received: by 2002:a17:906:8a64:b0:997:e9a3:9c59 with SMTP id hy4-20020a1709068a6400b00997e9a39c59mr2292454ejc.6.1689968362034; Fri, 21 Jul 2023 12:39:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689968362; cv=none; d=google.com; s=arc-20160816; b=gcyZdFVC+CLtpAeIv0JybnytNtw+GEELcPrZOfLWqQCSLLevEKS2VHNtgPSFq7hyaE ftyw+5r2HOOkkd8/Lk/MVnsIgqkmd6/2l4t9qE0ktTpD1VvSZ7S1mREMQcVdvQOoV9IW 47P8dxqSJc6phb+TT3tqQ236tPAdX2nIYkohXm6iwM/MJy+5DDOeLSuN904y/TbnpjWj qbGM4I+NhzXYA6U/0sdIPNYpj2MDOA5rg+rzPAMwdmTnuYUWVrJGtF0QE8FwRSdXb+xo BDHyHHGR6GkWa43Z2qbnE7O8Vw6t0WpcJHBdIERKIW+uoeoXIPAWaeB449CjsJkQynyh RrGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=6O4ggQeOFDJDPL25X9BlwcSDabzCpcuXdRmzUZfgTW4=; fh=vkOg3P/7laZv6jeDHtV7GwlM6btP6ZOJxNnSdWRwKWk=; b=KYPHYRIJftOwbaLH5LNO4J/gxTxC5pWrLRb9aWAd4PXJpV/PfdjQijER5aH2m8hLXq rp3YSY4rhuknQ+7zoyshav5lb/E+LnsxVcMLgeyzxixyvzkPkcp193tjVZ3BKzemStqd 5yxoRCl+NDeima7693376xro+59inK3e+rsX/I0bd7+uu776PugguZ+6V+YrGqtOmBYW B4DoNimql2Qc+v3NPU0uYxS61VySmwU530pbnhtd+VQ6JEV6z1m9UPdkABqY6QaatMob RQ0/lxjMHkcJm7hIrZHjCE5QcZlNDPm4T/ekGPRSh8zNiXDea7LVWoV8fkjjglSmtCA9 nFOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dIfxhb+O; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s7-20020a170906454700b0099b6a172f27si1289172ejq.611.2023.07.21.12.38.56; Fri, 21 Jul 2023 12:39:22 -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=pass header.i=@kernel.org header.s=k20201202 header.b=dIfxhb+O; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232230AbjGUTYh (ORCPT + 99 others); Fri, 21 Jul 2023 15:24:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232221AbjGUTYg (ORCPT ); Fri, 21 Jul 2023 15:24:36 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 199EF189; Fri, 21 Jul 2023 12:24:35 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A974361D7F; Fri, 21 Jul 2023 19:24:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1DF55C433CD; Fri, 21 Jul 2023 19:24:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689967474; bh=ZMDz7Ao/mXqDoOt9YqdyFYlyKXkJ8dwXgYd8bgtxMgY=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=dIfxhb+OVuk0F9idwdU1Nqp2ZJSc3V7WLb+EHXnU6XQPkYG9q40hu0yDpXbB2TsuU bdAuA9f2LNjpYwymZvN1pi/xM0mGLO2l5qF7FzHBiKEoMDfz+64mgsjFj4fsE3RFxK bSj+so11TE5+uDa40Yva/x1RPFStJ/BmxZ1Kzsz3dB9bLjk2pdPL4vI0TbKCaORAdF 5a30QkKOfedXkVA/oKRqnWcH9JNt+z7HNVVjIqvXNyAfphZ9VyW5zn5wzb0K7Fw823 vvgJj2UW829OlZxlD0DxCyuSDioG2kgNQRryeccV/INrjA5QkKEQgskCeGevIZ7XZ2 2fGurbgnWu8+g== Received: by mail-lj1-f178.google.com with SMTP id 38308e7fff4ca-2b6f943383eso33941701fa.2; Fri, 21 Jul 2023 12:24:34 -0700 (PDT) X-Gm-Message-State: ABy/qLYtvXbsYWWSxH4hny9KFMyDYXp9+lJwinVvzmaWvq79AWZqbeRO CdlnfmajUAEhZ15HD1is5iX3E77nPewMz8byuQ== X-Received: by 2002:a2e:b70e:0:b0:2b4:45bc:7bd with SMTP id j14-20020a2eb70e000000b002b445bc07bdmr2350137ljo.4.1689967472029; Fri, 21 Jul 2023 12:24:32 -0700 (PDT) MIME-Version: 1.0 References: <20230721161840.1393996-1-hugo@hugovil.com> <20230721161840.1393996-7-hugo@hugovil.com> In-Reply-To: <20230721161840.1393996-7-hugo@hugovil.com> From: Rob Herring Date: Fri, 21 Jul 2023 13:24:19 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RESEND PATCH v8 06/10] serial: sc16is7xx: fix regression with GPIO configuration To: Hugo Villeneuve 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 On Fri, Jul 21, 2023 at 10:19=E2=80=AFAM 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. > 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. > 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