Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp493127lqh; Sat, 4 May 2024 09:08:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX7BQcRKeRgvyHxrvm2urpxfU5jSvPdZGvsmX0+6K5Q0Z3fT3gttZvS1pfqgzPdvGytt4FK5zquUioF90Df4Ukbp31IiwC8RKAIMPSd4A== X-Google-Smtp-Source: AGHT+IE4Db6+lLQd0ZV+yWX0MSnPommXphzKb73HoUdqri4mHNEKJ7adlmnEXg5KOcvT9614nb3b X-Received: by 2002:a05:622a:198a:b0:43a:8906:8c30 with SMTP id u10-20020a05622a198a00b0043a89068c30mr6904607qtc.38.1714838922058; Sat, 04 May 2024 09:08:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714838922; cv=pass; d=google.com; s=arc-20160816; b=SWVXgfD/dH1tnXvaEe28jVWMsTOvSFULKsiBIa6JuhxaJDNJwmn5JCZ5gqq2qDH1Mf fYM7nptj4IiexkoP+HpF/aPWMxgDLiRG4cW4czuP/M3qJ7jXu8CrqYhbE7bldCvpEVCB 4ml26u0QBFUD7MoRcMW94dzk/kc7mMvqyGZyPxUQXTHMlQb4tEopi17QzJIygIP7PpSe kUEvsDzx4d0UXAyfdXPpGN65Aifs+MDOtRgOtuaAfDFQh+rGzRX3gNSZbdVcNee9shIP brxWDSIC4xHWfeLm7Br+Ns107LOgkQY6NFSgGOEbEJpA1hsEqikd/18OVKnNVvIa39uq RCWg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=8oX0UYNwesJUXlfCvviL3DlW2v5R//hV0taYXNwIrn4=; fh=IblnMXfvgffRY8oYsWCh9aX9QjPf/izOyZQJQWEB66A=; b=wvUDRtuW+phuysG0VYZM9JMr3ziQVtyCSoM09ITHIWJkVuSMCD8FhiiviT6JYdXIGb rpIFqrTFMsK+0wOCh4fJKc4xWgT6sLPdB0hGnIJDm9JcuQ8gunyOI2bL9SxiZSgcdm7L Lpstf99pU+sNonVuzwDXalGQZz+ICmgqAZ44h/44o8w18BUZwWDBnOoqhFsAS6Q45hPK Gfy/Any8NqUAb1+JfsrYGxU5hi6FOVPcybxo6zmrVMsqqjo8BSPwh4y9DZkfceDEWC1W RFH6PxjorSpt8nXZSs7A3aqWWzIN3+Vo2xMEexIn25RTEwcc8f53Ma9SEx+ipYf/2by7 a+zA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=YaYlLbtj; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-168741-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168741-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id v1-20020ac85781000000b0043b03575a34si4541201qta.378.2024.05.04.09.08.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 May 2024 09:08:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-168741-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=YaYlLbtj; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-168741-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168741-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id C2DA01C20DAA for ; Sat, 4 May 2024 16:08:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 621C0502B3; Sat, 4 May 2024 16:08:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="YaYlLbtj" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 86ED740C03; Sat, 4 May 2024 16:08:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714838915; cv=none; b=emocBChL9Py1N1jHPemVzG3k4aiLIdTz2DgGtjN2nxM6tRx6RrHmVjA/xeixJmSnzP+14sRWqrHssQIiHM6lJuDMlrjyVqncFDi6nHpweaUMLaUbSJqJ4eUMDiGImASdkE6UTT/FVgYsoFIdxDYNmAGUqFIk3AatMkOjzZ+Z/oA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714838915; c=relaxed/simple; bh=wwaTRDS9tEE5USkR/1JxhoWU+nwvf1phzHVbJVUzqA0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=FCIkqYzg7vmsBfAkPsomb33kyAz/8fNyekKbeGgPnEzk4ikmlhDekRb+0g2zMF2wTG+/BUA/pltwmPhxca0RcvfMxVZPEeDsNA7khZZJIGXYcejYjaRvHUzZHjPA1jWCScvsODMGO5f2aFKNlxigxcLofBJdX5PWYMzWKW7REWY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=YaYlLbtj; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 98A94C072AA; Sat, 4 May 2024 16:08:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1714838915; bh=wwaTRDS9tEE5USkR/1JxhoWU+nwvf1phzHVbJVUzqA0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YaYlLbtjCKrLwbl2zTCOZsaIZ5NzeSfKY5zeUamsmHYVO8JclOuCzMfzta7+CKbQi qxcf+quMczY96vtiZsysJdN++RL6KWHK0jwwyfulKW1Bhb/SD1SVlDbwnda+KP/YSl 59HA3TzWihmMifjtVgNyMTB8nLbyarkY6qBLaaVY= Date: Sat, 4 May 2024 18:08:31 +0200 From: Greg Kroah-Hartman To: John Ogness Cc: Petr Mladek , Sergey Senozhatsky , Steven Rostedt , Thomas Gleixner , linux-kernel@vger.kernel.org, Jiri Slaby , linux-serial@vger.kernel.org Subject: Re: [PATCH printk v5 12/30] serial: core: Implement processing in port->lock wrapper Message-ID: <2024050424-agony-document-677c@gregkh> References: <20240502213839.376636-1-john.ogness@linutronix.de> <20240502213839.376636-13-john.ogness@linutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240502213839.376636-13-john.ogness@linutronix.de> On Thu, May 02, 2024 at 11:44:21PM +0206, John Ogness wrote: > Currently the port->lock wrappers uart_port_lock(), > uart_port_unlock() (and their variants) only lock/unlock > the spin_lock. > > If the port is an nbcon console, the wrappers must also > acquire/release the console and mark the region as unsafe. This > allows general port->lock synchronization to be synchronized > with the nbcon console ownership. > > Note that __uart_port_using_nbcon() relies on the port->lock > being held while a console is added and removed from the > console list (i.e. all uart nbcon drivers *must* take the > port->lock in their device_lock() callbacks). > > Signed-off-by: John Ogness > --- > include/linux/serial_core.h | 82 ++++++++++++++++++++++++++++++++++++- > 1 file changed, 80 insertions(+), 2 deletions(-) Acked-by: Greg Kroah-Hartman