From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) (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 CDD2C34CFD0 for ; Mon, 16 Mar 2026 07:20:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773645638; cv=none; b=VTGnYRLSqALfSqv2VK1+ZU25iVYGMp1sKzkW/+GuHk9kaDOl+NkzT55Q2TRCQhe1mfFW49csvWbGDRKB9ZJYdSQhjkJdd6dwcwizYpVxDHnYh5JtF7VEBD7erbms7ADu6MJVWiXg7w3uZ6pnr2XkuVuy1YQJLourmtUAs584//s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773645638; c=relaxed/simple; bh=afqKyQQ18sxMobhcKhw5RBSALeZ0ixVAbCZjPvGTR6g=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=TNyiYyZ/dzQT1c+8mtcs1h1o/n5E/w318k93yz3fRUwrTahpaUZVS2sdAUo5lmugEknATzuxLZOfbGkDd2lvUdmO/uHtNcFi3H6MS8FXqPsn/0jvWH6HjmyAXjRR5/194/ZtlPLkTjX+HSW3IlHZoGK3euyNY4jaGAmg34tW79U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=oYSvQ43r; arc=none smtp.client-ip=209.85.128.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="oYSvQ43r" Received: by mail-wm1-f52.google.com with SMTP id 5b1f17b1804b1-485445e80bdso36433965e9.0 for ; Mon, 16 Mar 2026 00:20:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1773645635; x=1774250435; 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=nZdKQYO2ewxJmQV8sx3HmKzvzT1vlMa/R+ZGVJq9Oks=; b=oYSvQ43rUsA8xtnZX4ZqbbzYfPIQkTuBn+Crd9ESYrV6ZNnJQ7m6v8wLSLUBt/OANG a9YXqDCMu+MNhdxaPdrg969pwTE35uW0clKxXeiiNk6bgooRoSxzh1vbuV/Jk4HXUGFb wbsrrbLmThlR4T4lrY9xg/YLJu553rl1FGot753wm54DgfCgiXUyMreOs6gF4P9VpFPI +zF5p4P5qfvhNv+Ylx7BSWHMIANroiwZfM6tCZqXOPXd2prFSs+Os6N2McMoXGGed361 8cFTPLXp1uxZ+WaVim2MD7HmujsWBqLI2gR8h5hgNfM9LLjeebVSVonLGAdOWOEv6M0d LYEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1773645635; x=1774250435; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=nZdKQYO2ewxJmQV8sx3HmKzvzT1vlMa/R+ZGVJq9Oks=; b=OJku0RDehUd7gzh2WBCnlJvzwiYgkaD9DSQfLMFMRPbvLNXNe577G5z+eAMa4uQ5pw w/TwS37aSLaR2EFq+i0kvFJSrqvqbATVFmCJES0u8hv5zsn+NsDRdUesyvmq+RNntvZL 4MCS5BO4t8K0BtFyMsZk06FwB2tA8ej38gaOMEDlQIwA2acehf5bSm9cVVklrE9Ql1dS vK8Fg7pHqN7TByv8eGD8Qud+9HhoUrgIgB9WqSLHU3JYixAbHh9T8wbVrB0IOTzphbVZ gKRJEtLsERrxcfiKnUSRp5x/YRUdtDuwzs4in5kVK1Qo7stTkKSme6skDKCf/Jb04RPo eeDg== X-Forwarded-Encrypted: i=1; AJvYcCXbPucmxeQLbVPmVorkc8mCU8TDZY6hp+OhaQ6F6+ED+NPq6EU5M2hwOwsjOCXK3WoZFvCXfY/pioJHG6k=@vger.kernel.org X-Gm-Message-State: AOJu0YzdMAgOZEinUdjL2U4CfEbOCp0OFuoz5zrAYHY2Gxg1Ofs3Gzog AurwTO3nsd5MzoVv898V1VTQM/w6ix4SJN8xPEwTikftYf5eiBNcpEEe5V4Ni1VgFaA= X-Gm-Gg: ATEYQzwuKlZMxabKrB6ih+qWLlM3IR8SxiyGD2IIyjbci7zBAnbpHHhG0B+Zt4uplpj 4tHZ+LbCnLyvW+N8NEk23yx+EWnTh4oDPyX/yw8ej/od5peUJ6GwsvFFzooO9bFmClD34KB44J7 PfuS47CMiZYOpfIDa8qlLGiq2RTz2CXtxbpuh+/C0MOZg3o1ShYhKxYzIfm7TpvA4TQGilQkIo8 g6Xow1UwEOJ05ixb3GhhIkjwY5TYtoJv7MwoWYkd4T7YyT4D3M7DuBo7I6sE8q4qlC8cTzy6+dz 6fCOLlBIgp/DlQ8ETLYEaR5pkOOAZHQuhfANTP2bu+Q4GYJbeox2hmhxS/lgJ4qP/S14/8vNGww /EdAHBN1ZlWM2iVxf7N2ywnS7r19ijEM15LzCKmr9Os49iNHDsrtvHKC71E2fuUWLMmz3cM1PVL 3LFra5frC1ow8u/szY3go5X5bC59Q+ X-Received: by 2002:a05:600c:3104:b0:477:7ab8:aba with SMTP id 5b1f17b1804b1-485566e316dmr178619855e9.1.1773645635166; Mon, 16 Mar 2026 00:20:35 -0700 (PDT) Received: from localhost ([196.207.164.177]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48557784c18sm187652855e9.4.2026.03.16.00.20.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Mar 2026 00:20:34 -0700 (PDT) Date: Mon, 16 Mar 2026 10:20:31 +0300 From: Dan Carpenter To: Rahul Joshi Cc: dtwlin@gmail.com, johan@kernel.org, elder@kernel.org, gregkh@linuxfoundation.org, greybus-dev@lists.linaro.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging: greybus: uart: add comments to locks and fix alignment Message-ID: References: <20260311184104.499201-1-rj5547884@gmail.com> 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: <20260311184104.499201-1-rj5547884@gmail.com> On Thu, Mar 12, 2026 at 12:11:04AM +0530, Rahul Joshi wrote: > The spinlock_t and struct mutex members in struct gb_tty lack > comments describing what they protect, which is required by the > kernel coding style. > > Also fix the alignment of the wait_for_completion_timeout() call > in gb_uart_wait_for_all_credits() to match the open parenthesis. > > Signed-off-by: Rahul Joshi > --- > drivers/staging/greybus/uart.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/drivers/staging/greybus/uart.c b/drivers/staging/greybus/uart.c > index 7d060b4cd33d..52a84a68049c 100644 > --- a/drivers/staging/greybus/uart.c > +++ b/drivers/staging/greybus/uart.c > @@ -50,12 +50,12 @@ struct gb_tty { > unsigned int minor; > unsigned char clocal; > bool disconnected; > - spinlock_t read_lock; > - spinlock_t write_lock; > + spinlock_t read_lock; /* protects iocount and oldcount */ > + spinlock_t write_lock; /* protects write_fifo and credits */ https://lore.kernel.org/all/aaFdxqxEUzZFVIqQ@stanley.mountain/ How on earth could you have come up with the exact same words here that someone else did? It feels like too large of a coincidence. regards, dan carpenter