Received: by 2002:ab2:5c0e:0:b0:1ef:a325:1205 with SMTP id i14csp122450lqk; Wed, 13 Mar 2024 19:32:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUcnwZDPR1YZxduz+1T98xcr9RFIZ3G0wO09HokxUbmjxsxk8lrm81+x/Yw0EN7X9QPGdeq3S06B5tDmpQW9bZxR6cLU1uSLjoJR0DbtQ== X-Google-Smtp-Source: AGHT+IH5nGvb5SMPWblZ6lvYY770okzqNVEw3ExokilgeiD2xiEFJrbgQvNjSRessdpnRQwfzVm/ X-Received: by 2002:a05:6a20:144a:b0:1a3:108d:479c with SMTP id a10-20020a056a20144a00b001a3108d479cmr827091pzi.22.1710383556252; Wed, 13 Mar 2024 19:32:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710383556; cv=pass; d=google.com; s=arc-20160816; b=fIkCSY66KSHbfleZnucXV/UTkqCUhnvKNYEWBa+oCyoP028Zzzkda37pSw93ZKKuo3 eePmUJ2dlvYAG960L3ERTqYk0XS44j/vXlZnstQLvnQSewPBJz9kPaL3uRq4jBBiSKrz mI6w81Dyiza4CGr8vTy1XSzlxFh270hmp06otjmUS8+UAjEcIFrGWYN5u0HXfLRRKq3Q xqFipUV6WyqtVYDsy8cCbHSxUhR2xGi+ybVwon7IfOvwS1FincpIdKfWRdCw+jQDFPmx 1OQ0LXwPeosKRzyqc3Vv0ZkL4xaM5yCRm11W/q17bbIPp+dBUJ6Z4jLh6afq6ZU/tHBq VJEg== 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=r8RLXE+9jhu8DfT+DaxW9KE7KG1FJA6n4jRD2vV6RQ8=; fh=eG/NYzXTQvX/cNRpOji26sl1QJxOr68F8M9tjeGpJ7Q=; b=vR9atnTiFmR472asNxwvnM3ZCERVaA/ua1dR5YmUIjYHJMtUVT8dLab+70mBkpxNkQ RXV9/Q1O2Ij8FMkK8HAcqpK6xac5Q4HfJBcWLsyGSWKt0IigqtCCM6k8dHMHNabNXn4C TtNY7pVl0yOdXA/c5XTyl7LHkbVTlmAQQPSiBe+KLLRXtCxr6rf1Su6NG0dYmKtJACW4 pYb8abby5quDsweUzwHFMDGTNRFpcondMf4TbW6dF1ruMZCXqeG1plmLRRSCDmIwXOer p96TYriis6FuE1gSJClDNG0lgysYBBSCb5W6bLK6G4d90jDLArpBKbsB9d9bCoHwINQH yrFA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=HbljAmu3; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-102716-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-102716-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id kd6-20020a17090313c600b001dcc0c8ebaasi519269plb.460.2024.03.13.19.32.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 19:32:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-102716-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=HbljAmu3; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-102716-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-102716-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id A757FB22831 for ; Thu, 14 Mar 2024 02:32:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AB60223BF; Thu, 14 Mar 2024 02:32:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="HbljAmu3" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.11]) (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 468C5A55 for ; Thu, 14 Mar 2024 02:32:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710383544; cv=none; b=GSFGe01YqbDuCwP8zkWcers5rdkH88HKi3i+JI/SYPdeCgiQiQhWvbv5ymEgs0NnWwjdvGDj2ii1XAn8fzRWMnQjqP4UEA1sHkocGt2f13/oC0Rp6hrnqptz7nJa+g5PnXqGmP7FYNMYPrwfVWUtrDAb2zTGtbW5oSOaz2Pfb9A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710383544; c=relaxed/simple; bh=pe3erww6iGV5Z2CHt+wZW7sosEJYvm2NBU6QR6tsMb0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=FOIS8YbxuTchOrF8PKLqU1h9sXaTNN7jNCnockZzrtXX4hsFpPZWH8mw6wZVnvc7vCJ8IMzZLKQWqeg1S42J2bzapV9vwziiM/Cyw89vOax0AitUIKhk9K9ZSrmrSkHfvS/4a1G7CiT/V2tC4/IKDQq+XGPMh590fUqRmXul2Rs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=HbljAmu3; arc=none smtp.client-ip=192.198.163.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1710383543; x=1741919543; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=pe3erww6iGV5Z2CHt+wZW7sosEJYvm2NBU6QR6tsMb0=; b=HbljAmu3wQ2HM+MI9ad453a6LkPoIKj42nMdOR2rhm/LsrY3vLHhUGhB 4WQFoD1HeuEXdUsF2o0kbHjn7K81aZucLqhBGVdTQTSugjXartrvhABxU efS9cyn0rYRIY+h1MUOu0VTK/DA750u0p6qF2+MK7QY8xTEZRKXsLpUBP PmJpIxTEwPBzD5VhSDFXGz4t+QQed/RpCK7CZgwfMP5G1HPX1QR+RudJj QWZE3Mq5egIIXkuKCqBwYwnaRTSbk5kf2QURPJKh2PMlZ7EPKT6EWtWLM f4Rs360FT5Q1FqwlEFqmzJxSutD+CKwFfjqMrzzz/4DSrYMYoirUHEjjw w==; X-IronPort-AV: E=McAfee;i="6600,9927,11012"; a="15826132" X-IronPort-AV: E=Sophos;i="6.07,124,1708416000"; d="scan'208";a="15826132" Received: from orviesa006.jf.intel.com ([10.64.159.146]) by fmvoesa105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Mar 2024 19:32:22 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,124,1708416000"; d="scan'208";a="12545220" Received: from aschofie-mobl2.amr.corp.intel.com (HELO aschofie-mobl2) ([10.209.86.131]) by orviesa006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Mar 2024 19:32:22 -0700 Date: Wed, 13 Mar 2024 19:32:20 -0700 From: Alison Schofield 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. Hi Ayush- You may be right, but you need to convince your patch reviewers why your comment accurately describes this mutex. That's always the ask with this kind of patch. BTW - Don't start your commit log with 'This patch...'. Alison > > 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; > }; > > -- > 2.40.1 > >