Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp1327971lqh; Mon, 6 May 2024 04:41:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWRQ6C1F0F+rg6R6MpqRwlZmMO7QR43p58a19M1UkLq2xbP4ZWyw/FqDwCvDKXzH0H3y0OwRavErywFZizSMCAVhoC1CKUMjLzI0cjhrg== X-Google-Smtp-Source: AGHT+IGju6kPK6rkAnz6WDCOKB3RUftuCOKUs/hBaWYYeQkdK++XqODDiyjuRyFNul/O9GN3JdFG X-Received: by 2002:a17:902:ce8c:b0:1eb:7285:d6fe with SMTP id f12-20020a170902ce8c00b001eb7285d6femr14882832plg.23.1714995660138; Mon, 06 May 2024 04:41:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714995660; cv=pass; d=google.com; s=arc-20160816; b=eXSn/ghEw0SkQoGoDC6UryCPdiynnv8SCQIU8vrZzPHWHn2VSeAS4wxZy7WPjuEKXV TsRRgLP4dQ/2IhY28RUkqT04dCgstwZGhGaQWWDPQSP24HkDMCOMCKH5nb6UjQ+egtm2 1rg+BRStPAd6eW706SBxyZur1B3D10HYXVo5ATWphahyCTOLL3XDUWAEws71WA4i2M1+ saM+PxIGemp96/W0s9gR1MybRSu/VZ37gUViDKDhj32kI2DVWdVPk/sBm7yOZnrn7edp vuMGRKo+613uyzJCo8fU2/sAMQPGjxukPdzCxAAGTbi9zymxAHz2dufitmGeoadKReAp 60Kg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=3vmDFjar/7zOCQ0E0AN2tIN3W6sFdzg+LLuJUacu2Pw=; fh=aG7hBLBmw1l015ofgK5wdSVNBW5CuCZaxxDB1+c/8fI=; b=NOHsj+e3nHQxQJcAxb19gxpsIST4shfEpcRwj2Fejysr0XRmz38BhQxwvMjlA3bGrf Rvt6G2HLsbNwd+n2jZrdYKq7ynzugSeuVXwozuzRYnkDEmPZ9g+Q4V44AxLdaX9KtQUr b1K4A+6Qy7OfipXchl6jgrNZLpHd64WEnAoyGvLYk8EKx6XDiSm/x5NU2PApiJhFglj5 9HVJYKw5t0hV1sqieAOrUfxsgcaCdKV+/yOn93hLJGvVyDAEMLJjLRffkSYT+5OESDRr B8i/6q2J4PHyrPZcIFPX1Gdj0tG1zcf/4H/jjYH0NErhTJxvg1vTyRjl0vDilcYe3hYh q4aA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sang-engineering.com header.s=k1 header.b=gmbYN0eW; arc=pass (i=1 spf=pass spfdomain=sang-engineering.com dkim=pass dkdomain=sang-engineering.com); spf=pass (google.com: domain of linux-kernel+bounces-169746-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169746-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id j5-20020a170902da8500b001e3e7148e5asi8444337plx.457.2024.05.06.04.40.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 04:41:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-169746-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@sang-engineering.com header.s=k1 header.b=gmbYN0eW; arc=pass (i=1 spf=pass spfdomain=sang-engineering.com dkim=pass dkdomain=sang-engineering.com); spf=pass (google.com: domain of linux-kernel+bounces-169746-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169746-linux.lists.archive=gmail.com@vger.kernel.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 60F4028341E for ; Mon, 6 May 2024 11:40:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CAF16143738; Mon, 6 May 2024 11:40:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b="gmbYN0eW" Received: from mail.zeus03.de (www.zeus03.de [194.117.254.33]) (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 4EEAA143861 for ; Mon, 6 May 2024 11:40:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=194.117.254.33 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714995636; cv=none; b=GhUHPxY7DiCHDPcb1aoMch2+Om4sZgSGdqNyX5Yfwn3WqV7/y6lCQ6JVLhbydxqpM5Y0ZjFaVtViBBxzkQ1Jd5ILltifKBzt9pLHNo34xalO/4wrjkBl1Rkysdnoh1omv1dRnzlYiGPjaYKoPKnLYkjR0Hrqlj1pwleVcIuLrX4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714995636; c=relaxed/simple; bh=BsQOXq+ahxAfweHQAWj5mwNGLsEtbwecliFaCCUsygw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=a6jW7nAheX3FBNxkxG/Q/Wen9051bEkKw2pZ1NRmwZyB+RmAAwO5LiHeU5g0BbM1AizrMAKI6B+xj4jwPWcY9tgNP4D1wxDHxbBak6hpM4c82J/f+ywQ1LrfPgwfMSy1M6LKmfSnF7k9Mc7Co0o7dpHSM4wNjQ8mB7XrjkJySiQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com; spf=pass smtp.mailfrom=sang-engineering.com; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b=gmbYN0eW; arc=none smtp.client-ip=194.117.254.33 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sang-engineering.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= sang-engineering.com; h=from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; s=k1; bh=3vmDFjar/7zOCQ0E0AN2tIN3W6sFdzg+LLuJUacu2Pw=; b=gmbYN0 eWVvpz13qeB+CpgJkjp6DR7VNk0TN2JEzS1AL2OvdXgr3olGLemUU6Zh0VJyg2ii ZHU8EGzAz6BY08+lbGpAD6Fhvsw/CqnPalBxo/pLbucRc3qG5vJzQFnKPy2zWQ/V tejPXcu6/l1Hf5iZFNanvcwYc8CMSo3TyopoZDkofxjZuFjj4TcBs0pxasac7U5k f4xCkxy3Sanuynmpo1bsKF5sa67UVIhK9VfWwnM1r/uwYF7ZldyTZoKDRPVVbBeu WEaSsrch/ny8MflRmLpTxh/nO0Z2PvsIFzLomm4u7NFfPcTjGeb/dOYU1F7WaPsh los4Y2U4t2QcdLoA== Received: (qmail 172821 invoked from network); 6 May 2024 13:40:30 +0200 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 6 May 2024 13:40:30 +0200 X-UD-Smtp-Session: l3s3148p1@hUhTiccXfrYgAwDPX0CuAO+oYiCi4tWm From: Wolfram Sang To: linux-renesas-soc@vger.kernel.org Cc: Wolfram Sang , Greg Kroah-Hartman , Jiri Slaby , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org Subject: [PATCH 2/4] serial: sh-sci: describe locking requirements for invalidating RXDMA Date: Mon, 6 May 2024 13:40:18 +0200 Message-ID: <20240506114016.30498-8-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240506114016.30498-6-wsa+renesas@sang-engineering.com> References: <20240506114016.30498-6-wsa+renesas@sang-engineering.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Make sure everyone knows that calling this function needs protection. Signed-off-by: Wolfram Sang --- drivers/tty/serial/sh-sci.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/tty/serial/sh-sci.c b/drivers/tty/serial/sh-sci.c index a6f3517dce74..09eb0c824b10 100644 --- a/drivers/tty/serial/sh-sci.c +++ b/drivers/tty/serial/sh-sci.c @@ -1258,6 +1258,7 @@ static int sci_dma_rx_find_active(struct sci_port *s) return -1; } +/* Must only be called with uart_port_lock taken */ static void sci_dma_rx_chan_invalidate(struct sci_port *s) { unsigned int i; -- 2.43.0