Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1629417lqm; Fri, 3 May 2024 01:09:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWtakdiFcDT2gf7Ne1qFXX8vceok8lbB9N0YgNMF1QzoZUo5F7q83JrQZKBCegRGdoKWZq8DiGfetTahaspCIUowEMq9trNvejAqMzurQ== X-Google-Smtp-Source: AGHT+IG9FpmB5HXd+SbkyvQ7Zq7B14HzVEohHRUg7C2R/ja4tpBWEmF5m2Cnx4Ijs689R6QsbbMC X-Received: by 2002:ac8:5914:0:b0:43b:758:6d0 with SMTP id 20-20020ac85914000000b0043b075806d0mr3084307qty.0.1714723766056; Fri, 03 May 2024 01:09:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714723766; cv=pass; d=google.com; s=arc-20160816; b=q6LntBl/jDAHnkM14w3haVL9L5cHX2yNdPR0W1vLqow0PfpZ7EcI0KNfZ8I+Mv24h7 4T72QxJ/zG+ZrUp6YgEjIRjWjRCvk7Z76O/qDg/yxx/9kjR4tIBvumsQHBHKteIX6g6I yIs8W9pv0+YZq+LgkATHAPLTzXY/2F1c6AZFPv7jMhNT+XhLM9kzpPdqB6NYE7XOqT0w gjZ14hMoypd5rJYUoZlqUb3mBy6blgDPuxLXWPWTVBB/Cz3QLQs1xo30UV3gHTXoGVFs 9cdlG+ZlKCvxXhvw67x2nFw3YI0oe91wKNbZi8keGsqMdpqjJquO6oUAoGiA6eVwf/Yg 2k/Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:references:subject:from:to:cc:message-id:date :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=ENBYZblky69TdSDJSNn9y3+7hJ7kpBrY9SAKhxMcPLk=; fh=HwfHKV24QboNoaL5gUXz6zTXaz0vfYigXbTPNOVZRpA=; b=eRqAZSexFmw+L1pbaLk0clzS7iNV1/qPDcyz7PMdHhWsQUh75B08kUKKvd7mlqxIDM 7x8L7oUNh8tPE8vYL7lmfsiiI0b9Xynnl7EbLGRwaKe4j2H7YejghVpC4ylxHBPlBAxf aNyPg1KQQCgrTtRJ1nZi+pey/pvBCw9kRsY3qIh0p6fZ+SKYpwYTeLbyKu9oF2bpJ9wg gKHvQtqfxw91pqba/DE+AviAZ7mP09X1QBQ++kfvvDaoptYneXQIuMV9Cya4MO4PHBaF DivUC3sAd6X2CUW3utlBlsquG9fJxxD3n28AKTr2ZeUuL+pdxyNhd6HDPDwUsLjQjyDY Uz2A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=Blluietw; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-167350-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167350-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id l11-20020a05622a050b00b0043ae895f81asi2743721qtx.92.2024.05.03.01.09.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 01:09:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-167350-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=Blluietw; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-167350-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167350-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com 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 C3A231C2189D for ; Fri, 3 May 2024 08:09:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AF515148849; Fri, 3 May 2024 08:09:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="Blluietw" Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) (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 B3CFA2B2DA; Fri, 3 May 2024 08:09:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.195 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714723757; cv=none; b=W2mrbYcRamEA1pCI37aSLBV1MVB7cbcuXlXILTOfucRLaPJRmIkAELSL+nay6c1EKfGwpFiuR37SizE2NOvciEqPTzdMx22XS/29TKJW9M7IIYLBJsIbR6ren6Cr6tMrkQx8mHGxVmOeYua+IaViygO1Jvr67MMCItOGkuE3W8Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714723757; c=relaxed/simple; bh=ENBYZblky69TdSDJSNn9y3+7hJ7kpBrY9SAKhxMcPLk=; h=Mime-Version:Content-Type:Date:Message-Id:Cc:To:From:Subject: References:In-Reply-To; b=C0kVzNkdPNDivaXy0inSW7Zc2G08k62aeFUlx99RBiCcwra/sfLlLBPBUtPtZBhoT1PglSLikZfkkvRtxrfGQt/L1RJzLsX+/JYytDlDPdVoBpLTCXh1N8iGLZQI5ODnDBXfphwyb8FnOhrxlMqm0RnR/CQ95p294yvDqbRqMIk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=Blluietw; arc=none smtp.client-ip=217.70.183.195 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id D375D60002; Fri, 3 May 2024 08:09:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1714723753; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ENBYZblky69TdSDJSNn9y3+7hJ7kpBrY9SAKhxMcPLk=; b=Blluietw4pdtohmjHd2RzatVreMetUg/mhou3P2N6SwAWZIfAublpJzB8x4GBuP641Dhle mp3mE/SWphoWWrNIsdu1xOqu8wSkQifXZUwY0WRDtluUVSLtPcEIBuoPS69rNpHXKIZtF6 DW2KDGrnCMpfTEZRNBz32RuZ/11EpUS/AZYm1A2dYLjkQi5uMsF45CCo80rAsoXbM5NddF ksfXnxsKBZnK7343Hx5sa5ji/suafrAsmgIV8HVttMDGk609QKi2S2mxqSvPBDywCDQzUH YAddw6CACoSTKIIxjzuUeWxY+ieHwjyJYbUcofDi0pQ/KRQa5Ri3XD8urKrjyw== Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Fri, 03 May 2024 10:09:08 +0200 Message-Id: Cc: "Sergey Senozhatsky" , "Steven Rostedt" , "Thomas Gleixner" , , "Greg Kroah-Hartman" , "Jiri Slaby" , "Russell King" , "Tony Lindgren" , "Andy Shevchenko" , =?utf-8?q?Ilpo_J=C3=A4rvinen?= , =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , "Linus Walleij" , "Hongyu Xie" , "Christophe JAILLET" , "Arnd Bergmann" , "Lino Sanfilippo" , To: "John Ogness" , "Petr Mladek" From: =?utf-8?q?Th=C3=A9o_Lebrun?= Subject: Re: [PATCH printk v5 09/30] serial: core: Introduce wrapper to set @uart_port->cons X-Mailer: aerc 0.17.0 References: <20240502213839.376636-1-john.ogness@linutronix.de> <20240502213839.376636-10-john.ogness@linutronix.de> In-Reply-To: <20240502213839.376636-10-john.ogness@linutronix.de> X-GND-Sasl: theo.lebrun@bootlin.com Hello, On Thu May 2, 2024 at 11:38 PM CEST, 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 Tested series on Mobileye EyeQ5, a MIPS64 platform that uses PL011. Tested-by: Th=C3=A9o Lebrun # EyeQ5, AMBA-PL011 Thanks, -- Th=C3=A9o Lebrun, Bootlin Embedded Linux and Kernel engineering https://bootlin.com