Received: by 2002:ab2:5c0e:0:b0:1ef:a325:1205 with SMTP id i14csp224376lqk; Thu, 14 Mar 2024 00:49:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXQHwjkgTOFG7WvQ0yH2usnbFk92WKJIs0VZxqqckmM9QPwy7FVShizoM+v7QJqMzXT7OL5f4B0YTS2NhF9l2HifUsFYZQv/N2khgBBgg== X-Google-Smtp-Source: AGHT+IFpaH/DVzkDTswP2dbycw14DA66tl0YZi426eHfjzehCmjdNjehTGeTe/I70eExz1+81NeN X-Received: by 2002:a05:6a21:339b:b0:1a1:6c6c:97d with SMTP id yy27-20020a056a21339b00b001a16c6c097dmr1424703pzb.57.1710402559096; Thu, 14 Mar 2024 00:49:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710402559; cv=pass; d=google.com; s=arc-20160816; b=I3ivIpkMGSDCVvKDqRKYW4F5TAlCbWgV7mczHWUAqTvgcqWHaqes+4fftyx2M1IMub 7vOlpHl4FLWjiG33JNHUdtxWSYm/iMxOh70+GWT/wvQR1PjGfFvMF+gud40VV9jEMVao TABTgrCO5IlkBV4QIwvLWN7UllzJwTl6IcZBnBqrkMKIKDWnT8Y4jSoXEsAmxdKmhVgx 4mLZ5g4znWMc1YVGIkGjL54LHFxyhWZdgWq3FlXsoqJenLK6VBnIkaLpUQddmQ8gJ8C2 CfOO8mmO1Up/TsiOcX+kxmN+NFB50GavF3eaUWe7SCBxAinxQ4DgO/jpbb1sWZmJDTz2 7rvA== 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=bqvajVxp0NtgqswZy/t2b+aZ0FvnYWuQwzc1dbwPkBk=; fh=eG/NYzXTQvX/cNRpOji26sl1QJxOr68F8M9tjeGpJ7Q=; b=KFpOoVJYqwF7ZV5Ye4vt/ycO/6RsZmnhGUmqA/n6WyDWCS9YvTY2H5+q442s6OqM3w zNoccHtgyacesfPM10iQC7R/w2iQi5uzGZT6fGSWvSmXRnld6g31LD1jgiG8D5yhUaWT 7abndTsOF+9KjCWCRITpDxh/EaYmd+voxLZ7LlCwbKMwuRqdSlgm7h0FvvSu0U+K3d4b 1lDU8z5VzqYJM1p2laYTwB1IBq3z2TpxkUV/YTi/dVOQXH/AnyR9BWCYgPd2TbXs6LER 2DcLrCNMu713LYAT5GNeOzP/LRGBfEiRQih6R+04/E4CPf4fGEkM8YFbVxm9TyrCoKiq t8cA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LTUJwV4g; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-102941-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-102941-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 13-20020a056a00072d00b006e628ededf8si959410pfm.74.2024.03.14.00.49.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Mar 2024 00:49:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-102941-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LTUJwV4g; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-102941-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-102941-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 BBF73287AC0 for ; Thu, 14 Mar 2024 07:49:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8BA315D72E; Thu, 14 Mar 2024 07:48:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="LTUJwV4g" 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 9AD6C5D47F; Thu, 14 Mar 2024 07:48:50 +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=1710402530; cv=none; b=aWPGrGhiOBhpPopXtJw4TdGLfBtEnRZ8THkGTjw0tWdRIucQ/YTmCCjXJcGZ4bTKCpni+6Xzij0GGFIBbhzOFV1Nk3/4sKO2rsKiolH+FBV0MjVVqA7PrEwR9JM1ngHQ67/yyNoZc41MLkBelw+Ca6/vJpN60rZfXqukYT+fESs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710402530; c=relaxed/simple; bh=F9FJ272hRWLSxHq8Ly87eevMmmeFD+m/E2C43x/bm7w=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=n26TygfGKTimSIjynVddUN44jV11JLyTT6UxB6tTIqbXnXWsbox9wIpbWHS1brtjm5iCysLRXQu4ZWs2iBpUm6LUfY8m6k5ma4RGsoskgP7i5iHjNoWM2B+MyrEYNZ3LhXwUYFm126lHNSjshUWoogVCKOYuwdPVj5H/da7Zgq8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=LTUJwV4g; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2636BC433F1; Thu, 14 Mar 2024 07:48:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710402530; bh=F9FJ272hRWLSxHq8Ly87eevMmmeFD+m/E2C43x/bm7w=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=LTUJwV4gSBnUIbY57lAFi3z74adpgcOcpoWgJz+yXbscJyJGVsdzNCjV15f9c/hLf 0WAOY1iM7Gbo0dArK1L2ngk/P1Y1NrUFCNUrvvg7fbRmwLt3hotUToV+jospv8/3fG QAtgMEEtFzSx6ZdEaRHMJpZVq+trY3h0uxDGcN7J3LHMbw56MqVpJm8wYnJvhvhwyb 1rZNuMtIf49gc7dzJhNQC0DlVd8lhyzuldkMR+4IIyaCFlDFS33coLzVGH49dBAK6+ 3W1FpjRhOA9lBtrR0C646x3KCYQRUqFBx0Oo7UKFMlEQ+tqK6vZdTtod/lvrTNVl6O gelZqlqtQZSHw== Received: from johan by xi.lan with local (Exim 4.97.1) (envelope-from ) id 1rkfph-00000000869-3TZL; Thu, 14 Mar 2024 08:48:57 +0100 Date: Thu, 14 Mar 2024 08:48:57 +0100 From: Johan Hovold To: Ayush Tiwari Cc: Larry.Finger@lwfinger.net, florian.c.schilhabel@googlemail.com, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev, outreachy@lists.linux.dev Subject: Re: [PATCH] staging: greybus: add comment for mutex Message-ID: References: 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: On Wed, Mar 13, 2024 at 11:51:22PM +0530, Ayush Tiwari wrote: > This patch adds descriptive comment to mutex within the struct > gbaudio_codec_info to clarify its intended use and to address > checkpatch checks. > > Signed-off-by: Ayush Tiwari > --- > drivers/staging/greybus/audio_codec.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/staging/greybus/audio_codec.h b/drivers/staging/greybus/audio_codec.h > index f3f7a7ec6be4..1f97d4fb16cd 100644 > --- a/drivers/staging/greybus/audio_codec.h > +++ b/drivers/staging/greybus/audio_codec.h > @@ -71,6 +71,7 @@ struct gbaudio_codec_info { > /* to maintain runtime stream params for each DAI */ > struct list_head dai_list; > struct mutex lock; > + /* Lock to protect register access */ > struct mutex register_mutex; No, please, don't send these kind of patches. It's one thing thing to learn how to create and send a patch upstream by removing or adding some white space here and there to drivers in staging, but the above is not the kind of changes that people unfamiliar with the code in question should be adding (and the comment in this case adds no value at all). Johan