Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1975363lqe; Tue, 9 Apr 2024 06:23:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVkl6lGRlNAIEXpaU6VgDfTtdM7PZMbqu8IFY0Jtj6Xf7HtGIwzhKPXrrfMOf2nBNSuO+yHVkDcWSe9xUU/XvW3Ad3yV2vq+77vui74qg== X-Google-Smtp-Source: AGHT+IGcTFXl8RG6YiL3Sny3HUtNqfHFxutrBq6aAe9myQYPTWpr6xvL8tkkTLPUfaZtVksEd6qf X-Received: by 2002:a05:622a:389:b0:434:3d86:3e91 with SMTP id j9-20020a05622a038900b004343d863e91mr15787384qtx.19.1712669018724; Tue, 09 Apr 2024 06:23:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712669018; cv=pass; d=google.com; s=arc-20160816; b=YYuhZsC7u9AIGaKv/f535jMRvCwImhl2PBB7l0iBwbwr/mGYgc44KBN85GgxqpowA/ 895O6sKJhAdwNmorR4db0mpvAEyBvzVffsCMMFSDfgy9uqdoONMtpyHWALrIsLRodKO1 L6L9Ve0W/ekR7qoXr7Awv6NbADA80Z62EsgLt1WOVr23t2pJlMSbiNYnHXEVQJyW55bR 8jovbu7Plg2kbQ9BEonXhgWzUz3Lsv+ywWFI5gsVw0XBc8mC4UJUCh8MkpkXgBHh9UlB ZtFfTtMo4uWdKHXTur/BK/8LCNpMRs6V2sq4ptfQ5YU3Lsie6ERzhyEYnPvqlNgGE0On r35g== 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=Qj7w6Xe+8Kgz3GSUxAjRQ8mT0XELIPLqHtln82+kXGU=; fh=IblnMXfvgffRY8oYsWCh9aX9QjPf/izOyZQJQWEB66A=; b=Hu2yHlfNTATki+WQ6ZGKWLaOESYjtJOJjw2jo1Z8qWNIL9kGY8Iyv8MZQV0W0GD3LY clKJj6VDOQeiauNkBOmIUpmI0ipr93NKwmA26IpNzVPUq3o7RraiQ3MA3WjOlsn3/Q5D GJfe0oOvvOD/vMOKY4aY81EV3/fQuFBMtcUXRuTpWn7JM6mEZ7TLR9L9xrpMi5WYzfwH 57Yiv+Pdwiy11CyzkgJmia6wja5+TBGKKnmgYGYWTP1UwJgMsND9CR4DPR6VXQhFZd0q xczfUWMDyezJhR6UvfsIAuTXrppFoiqcTjW7TaLm+YP57tkBPVAqSqe+jl0mPz7fwj4o bPFw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="yza+R/ef"; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-136936-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136936-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 d19-20020a05622a15d300b00434ea6f8743si687243qty.404.2024.04.09.06.23.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 06:23:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-136936-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="yza+R/ef"; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-136936-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136936-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 7144F1C22308 for ; Tue, 9 Apr 2024 13:23:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6F54412EBD6; Tue, 9 Apr 2024 13:23:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="yza+R/ef" 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 7D70312F37F; Tue, 9 Apr 2024 13:23:13 +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=1712668993; cv=none; b=kXIgJWNPgPcEp0tAijRkbIObz9vEZ5aMacP3rc2dUFzd23Y1w9rcT+XoHcPHF2JeQAbNzrJKQalvfyh8uESTciROPtcfmZyIBkSNeZ1/z+OEya+8Ge2wEp81hoj369XQvbwuM2HBrjxyC7Vgmla+MvAdy3+VUtE6sCudOFsHjgc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712668993; c=relaxed/simple; bh=7SxGLOMEl/NIZezLT1wZsWVVVZ6kZmZI1q3BxM/hXrU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=iYzax3KqVg0VDbCwahqnWenPTr0azq1jdS1HWjHQHcM8cDDVPmrDwujjOmmr7UyS1Jg1pGvmbY9S+sCF3reYX3ism0oyD9DxPsvFwZNUn1J+XfRmM8tEFYA7CJs0O80b+pT88jM7ANNwyfdC1VZSFD/Q4XslEetkzRYRULgrPYs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=yza+R/ef; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B508EC433C7; Tue, 9 Apr 2024 13:23:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1712668993; bh=7SxGLOMEl/NIZezLT1wZsWVVVZ6kZmZI1q3BxM/hXrU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=yza+R/efqfMzJXuaKvHTy/xH5WuJk9MVyjFKexp2bijV7avliKF3gyvQmSSU3Qyex dnWYwnJbCUsDOGq79KyHqggbyvtRSp6wgJepe9+oyPzJ6CJK7sNxItXoGPuoE1FLj7 wWh1NNaaMiVHPUn3KwcZqI8qmdq5I4M9odDIxWig= Date: Tue, 9 Apr 2024 15:23:10 +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 v4 08/27] serial: core: Provide low-level functions to lock port Message-ID: <2024040900-pavestone-flagman-fbf9@gregkh> References: <20240402221129.2613843-1-john.ogness@linutronix.de> <20240402221129.2613843-9-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: <20240402221129.2613843-9-john.ogness@linutronix.de> On Wed, Apr 03, 2024 at 12:17:10AM +0206, John Ogness wrote: > It will be necessary at times for the uart nbcon console > drivers to acquire the port lock directly (without the > additional nbcon functionality of the port lock wrappers). > These are special cases such as the implementation of the > device_lock()/device_unlock() callbacks or for internal > port lock wrapper synchronization. > > Provide low-level variants __uart_port_lock_irqsave() and > __uart_port_unlock_irqrestore() for this purpose. > > Signed-off-by: John Ogness > --- > include/linux/serial_core.h | 18 ++++++++++++++++++ > 1 file changed, 18 insertions(+) Acked-by: Greg Kroah-Hartman