Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4824956rdb; Fri, 15 Sep 2023 13:32:48 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHyw4rlmFeH4qVSNbbVkcyMOD3yWYaWdu7wajPgvGkouTw947y4mM9LEdL7drbOzx/lAJdV X-Received: by 2002:a05:6358:99a0:b0:141:a74:da31 with SMTP id j32-20020a05635899a000b001410a74da31mr3917320rwb.8.1694809967685; Fri, 15 Sep 2023 13:32:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694809967; cv=none; d=google.com; s=arc-20160816; b=YlIiOUINZKNpmzVdB4JbZPf8xFmzjfvHiU/WWUXGxUA6G9cQYX2vQZCz1lEN2yYsjo DXftOWhuaXfDgOoJFWMn7oG1VnsHabCNa4Bj3pG8Wyls/td3CFXbfUxtMhXA3M5fhgUe 37PlXz3X20Qlmjuzode68ledBFB9pzXVIuTPU6OOsbW+ToLwn24x0lxUk0T1rB3xVxk1 stGGZZ4b1BE1oD1OADbBOxqt2EmtCPsmQRalmCJhpaLaN9kDpuP+xbRHFq1s0L2MIckE fwKt4x3O8PGB5dOHqI1IvsTTEipbZxXkbAAoAJ0ZAIM58v0d5XShRWFQbA5enC0MjmKN f/xQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=B+D//hIExhZVfGtnhXl83b6ZG8e2Gx7JPlOWbocuf3M=; fh=0dXe464LN58JehLR11drbecXbmFBIk/9TVjz5ANDm9Q=; b=C2SsKkJ4YB/KkzR+ph/BI0VKcqF7Ql97zwCmL1aeiD8H0YBsOpxyogrSQ5g3DODU+I 3pwIkxcSKDPbAdinPcyr3qP9rB9+Dwv2ChTbBqCDr4StmFvu7UI0KwrSLqnpqZ8rHMgH 94N/QEUtZyXng9yZFw0j2uFyeoMmoSEjENoq1il8ltP/b3rh+9j4EhCz84+G8m+RZjIm hblVMbU6G8jlG5mgLV3cYJcnnmLCXg59SCdaqte5R4txTnP5tM69Zx69/Su1w3+1jphr kw/UEx/ECyvsqxRaqseU9sfG9F3cz4gzOtB7zn79on5WmTJQ08mKWcW28c1zk69bSwqi tmMg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id m1-20020a656a01000000b0057017abe776si3966129pgu.677.2023.09.15.13.32.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 13:32:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 7CDFE818F65F; Fri, 15 Sep 2023 13:22:39 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237176AbjIOUWH (ORCPT + 99 others); Fri, 15 Sep 2023 16:22:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47138 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237458AbjIOUVq (ORCPT ); Fri, 15 Sep 2023 16:21:46 -0400 Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [IPv6:2a0a:edc0:2:b01:1d::104]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23F432736 for ; Fri, 15 Sep 2023 13:21:31 -0700 (PDT) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qhFJd-0000uN-SV; Fri, 15 Sep 2023 22:21:25 +0200 Received: from [2a0a:edc0:0:900:1d::77] (helo=ptz.office.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qhFJb-006c1g-Bq; Fri, 15 Sep 2023 22:21:23 +0200 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1qhFJb-001wEt-20; Fri, 15 Sep 2023 22:21:23 +0200 Date: Fri, 15 Sep 2023 22:21:22 +0200 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: John Ogness Cc: Greg Kroah-Hartman , Marek Vasut , Petr Mladek , Fabio Estevam , Pengutronix Kernel Team , Rob Herring , Jiri Slaby , Sascha Hauer , Tom Rix , linux-kernel@vger.kernel.org, Sergey Organov , NXP Linux Team , linux-serial@vger.kernel.org, Ilpo =?utf-8?B?SsOkcnZpbmVu?= , Thomas Gleixner , Shawn Guo , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH tty v1 29/74] serial: imx: Use port lock wrappers Message-ID: <20230915202122.ulgy4fdxpsxmecbo@pengutronix.de> References: <20230914183831.587273-1-john.ogness@linutronix.de> <20230914183831.587273-30-john.ogness@linutronix.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="5yzbhcwwpzzpyz5h" Content-Disposition: inline In-Reply-To: <20230914183831.587273-30-john.ogness@linutronix.de> X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Fri, 15 Sep 2023 13:22:39 -0700 (PDT) --5yzbhcwwpzzpyz5h Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Sep 14, 2023 at 08:43:46PM +0206, John Ogness wrote: > From: Thomas Gleixner >=20 > When a serial port is used for kernel console output, then all > modifications to the UART registers which are done from other contexts, > e.g. getty, termios, are interference points for the kernel console. >=20 > So far this has been ignored and the printk output is based on the > principle of hope. The rework of the console infrastructure which aims to > support threaded and atomic consoles, requires to mark sections which > modify the UART registers as unsafe. This allows the atomic write function > to make informed decisions and eventually to restore operational state. It > also allows to prevent the regular UART code from modifying UART registers > while printk output is in progress. >=20 > All modifications of UART registers are guarded by the UART port lock, > which provides an obvious synchronization point with the console > infrastructure. >=20 > To avoid adding this functionality to all UART drivers, wrap the > spin_[un]lock*() invocations for uart_port::lock into helper functions > which just contain the spin_[un]lock*() invocations for now. In a > subsequent step these helpers will gain the console synchronization > mechanisms. >=20 > Converted with coccinelle. No functional change. >=20 > Signed-off-by: Thomas Gleixner This lacks a Signed-off line by John. Otherwise looks fine to me. Best regards Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --5yzbhcwwpzzpyz5h Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEP4GsaTp6HlmJrf7Tj4D7WH0S/k4FAmUEvMIACgkQj4D7WH0S /k7d1QgAtSZFhSbWNZ3DNrbQiS234baMNReoa4Svy8smEtmkIR5Filgu/8LwyMhK EtNa38WuRaTN4vxC99fmBA2cWQzcJoORHde74SANgvcLjGaYPa9uQ0jktk1edo+t dH7OzPbZ+jnq9zhcUJMVg/oK1m583S4wmp7gLPFcQx89R9rfFBEzVoRNPxDE+zIz 2Gu57tE3A9wDk1gtXUCkOV/BbSJhdeAjBtiMf6nrtWKfsCX7H7pvY7V+iMIL1d/r dQ5/QidndBY24Fl5MA8FXao36BMjRsaOvRGNVFENheADGzyf0LinHtcjJ2pL/uLn LQwSsb6nVBp/HjDJosyQbW8Kt2vpEg== =J06s -----END PGP SIGNATURE----- --5yzbhcwwpzzpyz5h--