From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 963E367A0D for ; Fri, 17 May 2024 14:51:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715957484; cv=none; b=mpCrbZpHKn08N0FbwhdIRkn58TIFQOpO9H3oPft5/GTjrp+q8el0V51Xg6PLQXFD69GYXbxLtnWkv8+gRlOYHo4g7pvijTMdrYXUq1UkIv/xo55s5vUWYe2I/qcu06OiVZMhLDjdOmPHQRDMsYb4J4A5N4l/uYTYEfW642gB+U0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715957484; c=relaxed/simple; bh=1aOVgw6hSgat6smy0lHMoNOBWlOufPQjFo20G/kY2sE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=pQXOaFbyokmg0rH4d2Q6ELJ8eZL9Rv2h5VC2rzNF/5QLRIrhIZUfSNj93oRraP0RiuuX0gZVwm5QthWKHqfcG9UDk8Fx/dOKwtplWyEFXS+3slQt3RIDg7+vvb9J3MF5RtgNs7/4veV1xEf74sazVvSapKZe6pIUN9UtIPcLNJs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b=bRTxpj/I; arc=none smtp.client-ip=209.85.128.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b="bRTxpj/I" Received: by mail-wm1-f45.google.com with SMTP id 5b1f17b1804b1-41fd5dc04f0so1618875e9.0 for ; Fri, 17 May 2024 07:51:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1715957481; x=1716562281; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=u1U5jaDar7OfZ99raGWnoHg7cFZibmJ1aTqNn0ttXSs=; b=bRTxpj/IblmdTrVz9jPdjA02CBwgQhIQGFeNdKndT9KjyNTETRvDogbciVpdjB6tE5 cWEsCIfStXkQVEgyo/B7JvHqrOM4QrbsAdqptilRiyTl8cEp0n7hZvbSEHXlNZ58PuHP C6r1y2juBKpD1dVKVu3V31Cy34N+FTTxeBk3SYZNwiEckTFrqBdNks5CE/IAsAUYJXkz aWOCMKCu44htiDocsNttkMi0RDRJnU2n2i40aY0G2WO4g6svcEJ6+KBIgODaO4e7OZYU hDBMGH14pphwJspN6n3JoyRScMIULwLGyGIZincb2QZTX88Ts/ZaHHmzguOjiu7eB8nd /Usw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715957481; x=1716562281; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=u1U5jaDar7OfZ99raGWnoHg7cFZibmJ1aTqNn0ttXSs=; b=AvB16kHX3xm4xAwvQjY9KeBNFHfg/SgkMaAVDN9IHULJT+7CEFuY3eUG8HwhboCOle GdV25Jhbf6m+HvFZlptozh0UX2veNUEgf+5OKdummoVHccQImzqWLqo8KUR2ivHXrE9u 17A/zPbGxpSq4Gf95/TPGPEzKnq2zVFLhAsSWAjjJd2r0/IFb8tzKI6rIrg+gLFHobjL 6LZWo9EXnMQcz5bmWINmGY8+A7cm9bMPf9emZDYeKgjbyKpFt9THlLoSdrdH2F/tcQ+k mgS0A6rFs37YqW9OLBJ4fTMgdWfmzq+ac0mc09UNQHBiR2QDkwFYTY++OwzK30RhBJSR W/Gw== X-Forwarded-Encrypted: i=1; AJvYcCV1MCjFe+0aHv7f5UCTo0OLwUVOyPIKw/rlOJiHRl8OJ+hVX+Qg9Sm613mgsRmhNE52BzMhmq1gjQqXhhnABkN4ylcAk6xRuIBkdGQY X-Gm-Message-State: AOJu0YxCTalU09E/ajE3oFbxmEJSuhtUxOoAF0hHHE9A5xaD1vgmN9Fb 1MoHL4DVoUwSC7+yjnHuB6sChM/N/6PCxvw2AQpz5BljwsNBDTQkINULD2+TUsk= X-Google-Smtp-Source: AGHT+IGSNgAtmWQfb0w8Kl65ihzrKqCApb6t06Ku0iJmdFWRb730Oyxyj8fQ3oS7uwaOTj9nQj/rrg== X-Received: by 2002:a05:600c:19c8:b0:41f:d84b:1ade with SMTP id 5b1f17b1804b1-41feac5560amr234770785e9.27.1715957480894; Fri, 17 May 2024 07:51:20 -0700 (PDT) Received: from pathway.suse.cz ([176.114.240.50]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4200e518984sm242602035e9.23.2024.05.17.07.51.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 May 2024 07:51:20 -0700 (PDT) Date: Fri, 17 May 2024 16:51:18 +0200 From: Petr Mladek To: John Ogness Cc: Sergey Senozhatsky , Steven Rostedt , Thomas Gleixner , linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Jiri Slaby , Russell King , Tony Lindgren , Andy Shevchenko , Ilpo =?iso-8859-1?Q?J=E4rvinen?= , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , =?iso-8859-1?Q?Th=E9o?= Lebrun , Linus Walleij , Hongyu Xie , Christophe JAILLET , Arnd Bergmann , Lino Sanfilippo , linux-serial@vger.kernel.org Subject: Re: [PATCH printk v5 09/30] serial: core: Introduce wrapper to set @uart_port->cons Message-ID: References: <20240502213839.376636-1-john.ogness@linutronix.de> <20240502213839.376636-10-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-10-john.ogness@linutronix.de> On Thu 2024-05-02 23:44:18, John Ogness wrote: > Introduce uart_port_set_cons() as a wrapper to set @cons of a > uart_port. The wrapper sets @cons under the port lock in order > to prevent @cons from disappearing while another context is > holding the port lock. This is necessary for a follow-up > commit relating to the port lock wrappers, which rely on @cons > not changing between lock and unlock. > > Signed-off-by: John Ogness Reviewed-by: Petr Mladek Best Regards, Petr