Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp980315lqm; Thu, 2 May 2024 01:18:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWmBW8Chk/4AeE1nMFRl5Xt9duQHvBHMYxfkSa6sVbV7uYtj+fpCRTnznxBkoRoqiNrOwrM6viFjocVOR3R3TVK4FzrZJKyRjzWbhqCAA== X-Google-Smtp-Source: AGHT+IHLLtselxt131hgQmPBCp5klk/QvY9Y0cxNxt71muJlFpkcDqv6FRpAi4ZRVqyep3mWnvNo X-Received: by 2002:a50:9fa7:0:b0:572:65d3:8084 with SMTP id c36-20020a509fa7000000b0057265d38084mr3228998edf.1.1714637936331; Thu, 02 May 2024 01:18:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714637936; cv=pass; d=google.com; s=arc-20160816; b=u6Jl/Ayw6Cqgqod1kWojlWxW3+6J9q7RNfrtamOsLAbzDUdKHpGI34Ze1Ejh2BW9fN AEoe1mAEbnj4puxHj7h3wsIW8tIeeQv921VnPI4Pbk4UL5+F9rFBSDQDVM94vnNxfBQI aJ8V1R8k1xinSvFJZUDo6QDV44qZVO+l4zuUaViikOQvNdlSiXfSKVXYorLzNizy06Bx ffPRk59XIaVTzsFTR1UjBPABve2Fu5ZWw0gBN+YujJNyksb1L+sugkhSSPjsOVOGJief Bi01IIwLrW0ikIZHYv7gStc4qns2xDpWTmVtCcaMdNrcE7ByssEAlA32yvP5wk3337bV Ejjw== 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=EhWtohCGUIZ/Xrs7gzkRSrh00jig+0JIKfHJVexSxuE=; fh=9gEUKnvAL95is5ofizOPlCZ1mgjGr+6nqyjciTv33ok=; b=x7dEyjO+gTbMyDngaj98JYxIeFLysjlyNRwx+MKUogYh5Etey5L/m10HVnjw6LnTr3 VuOLznSHNDZdaGR7SbVM7JqSdfNJllyglLX24SbSJzQzMlHZupM2oOQqLbGc157Y1uW5 2UiN/ufqjvnVXzOLcCFuBtIbLKfQnUI2RuXqE+gTmYL75mK5Sl9cUYVJvFlhbpsKpWF9 KHtjeoxfqGQixdjKTymmVsNtH//1aLPPSOzgdPORWwrJkMZfokC1OV6KAV7Um6QJPBuz DN6QMBfWDQ5lA4nMibYs1utHeYn4bdVmYTuuoVsu03tOYDgwa9e5hS/YzmtGQ+mrVgOb bKpA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=nh7BA6x1; arc=pass (i=1 spf=pass spfdomain=opensource.cirrus.com dkim=pass dkdomain=cirrus.com dmarc=pass fromdomain=opensource.cirrus.com); spf=pass (google.com: domain of linux-kernel+bounces-166105-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166105-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id n7-20020a05640206c700b00572b3091baesi265472edy.396.2024.05.02.01.18.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 May 2024 01:18:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-166105-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=nh7BA6x1; arc=pass (i=1 spf=pass spfdomain=opensource.cirrus.com dkim=pass dkdomain=cirrus.com dmarc=pass fromdomain=opensource.cirrus.com); spf=pass (google.com: domain of linux-kernel+bounces-166105-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166105-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 148471F23D1A for ; Thu, 2 May 2024 08:18:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6B75B36B0D; Thu, 2 May 2024 08:18:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=cirrus.com header.i=@cirrus.com header.b="nh7BA6x1" Received: from mx0b-001ae601.pphosted.com (mx0a-001ae601.pphosted.com [67.231.149.25]) (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 D79D61BF54; Thu, 2 May 2024 08:18:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=67.231.149.25 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714637927; cv=none; b=Blu6WY5YbnQDsXQEwB7O8Tgfch4B4ibq9jBPkf5S76+tqjYQPaO3YJOhQNZDAWbnEFlB0DOQLvLaIpPCgXLYCRQcp1Bvtp79eJrp5dsRA5Ls3AErfSTsc71fIfV56JBdAO+bnmlIqP+jfYuHMxEkW2DNJ7Kp8jdOUM0Cm5lCgNg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714637927; c=relaxed/simple; bh=OsPDvE3Lc6w3KXCcRc+fZ2cjA8Mhoib7g1iA5Vr9FoA=; h=Date:From:To:CC:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=tO6gjTFcYNhVi77kApOUv8DeyFCjZ7iPtQ68btt/CFvCZAng8DbaI4b5DcLpKGed7qj+HGCv9bBr19gescRFvLQFRKej7A/M04Ec67mgHxczpVuNtnTdtH93AWK9rhoWtiN2se0VQp2wdTSbn61mU/X4Muq60DvdXWOmBvB4Kb0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=opensource.cirrus.com; spf=pass smtp.mailfrom=opensource.cirrus.com; dkim=pass (2048-bit key) header.d=cirrus.com header.i=@cirrus.com header.b=nh7BA6x1; arc=none smtp.client-ip=67.231.149.25 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=opensource.cirrus.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=opensource.cirrus.com Received: from pps.filterd (m0077473.ppops.net [127.0.0.1]) by mx0a-001ae601.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4425jDSB017800; Thu, 2 May 2024 03:18:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=PODMain02222019; bh=EhWtohCGUIZ/Xrs 7gzkRSrh00jig+0JIKfHJVexSxuE=; b=nh7BA6x1vW4FSvjCjnWDe9HfSSwZM9R zYs75gPDPPv4UqASOTqALlq3POj1T9sBiPAB5ke27j78uFdcsw5JDYsv4BK47h1F GU3c+DG1MWcmNtAXY7siGmOESWjr+RBAtwb4S6ynT1jkMBpy3ExMirsls9Gp3237 iz8qTZ99lIr06a+tsdDU0e+BGa+8jQSUqzwSWpA/oesISuXMPPw3kLWjw+QnVLHq t15zyEacoYqqB8felAhx7FkjP47ghFRs7ZVhy8BfwEg7YKSexKNXA4zku35h9kUZ cP6ErkVwCTDJjOtEGcB0TMXLjjDDyUtZFpjXC/ibo/UwZg+/spTaxFw== Received: from ediex01.ad.cirrus.com ([84.19.233.68]) by mx0a-001ae601.pphosted.com (PPS) with ESMTPS id 3xrxry5fdb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 02 May 2024 03:18:08 -0500 (CDT) Received: from ediex02.ad.cirrus.com (198.61.84.81) by ediex01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Thu, 2 May 2024 09:18:05 +0100 Received: from ediswmail9.ad.cirrus.com (198.61.86.93) by anon-ediex02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server id 15.2.1544.9 via Frontend Transport; Thu, 2 May 2024 09:18:05 +0100 Received: from opensource.cirrus.com (ediswmail9.ad.cirrus.com [198.61.86.93]) by ediswmail9.ad.cirrus.com (Postfix) with ESMTPS id 5F4CD820244; Thu, 2 May 2024 08:18:05 +0000 (UTC) Date: Thu, 2 May 2024 08:18:04 +0000 From: Charles Keepax To: Wolfram Sang CC: , Jaroslav Kysela , "Liam Girdwood" , , , Mark Brown , , Takashi Iwai Subject: Re: [PATCH 0/4] ASoC: use 'time_left' instead of 'timeout' with wait_for_*() functions Message-ID: References: <20240430115438.29134-1-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-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20240430115438.29134-1-wsa+renesas@sang-engineering.com> X-Proofpoint-ORIG-GUID: eedWidXVslVxbzPC805TxwhRqVampm1s X-Proofpoint-GUID: eedWidXVslVxbzPC805TxwhRqVampm1s X-Proofpoint-Spam-Reason: safe On Tue, Apr 30, 2024 at 01:54:33PM +0200, Wolfram Sang wrote: > There is a confusing pattern in the kernel to use a variable named 'timeout' to > store the result of wait_for_*() functions causing patterns like: > > timeout = wait_for_completion_timeout(...) > if (!timeout) return -ETIMEDOUT; > > with all kinds of permutations. Use 'time_left' as a variable to make the code > obvious and self explaining. > > This is part of a tree-wide series. The rest of the patches can be found here > (some parts may still be WIP): > > git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git i2c/time_left > > Because these patches are generated, I audit them before sending. This is why I > will send series step by step. Build bot is happy with these patches, though. > No functional changes intended. > > Wolfram Sang (4): > ASoC: codecs: wm8962: use 'time_left' variable with > wait_for_completion_timeout() > ASoC: codecs: wm8993: use 'time_left' variable with > wait_for_completion_timeout() > ASoC: codecs: wm8994: use 'time_left' variable with > wait_for_completion_timeout() > ASoC: codecs: wm8996: use 'time_left' variable with > wait_for_completion_timeout() > > sound/soc/codecs/wm8962.c | 12 ++++++------ > sound/soc/codecs/wm8993.c | 12 ++++++------ > sound/soc/codecs/wm8994.c | 8 ++++---- > sound/soc/codecs/wm8996.c | 14 +++++++------- > 4 files changed, 23 insertions(+), 23 deletions(-) > All look good to me. Reviewed-by: Charles Keepax Thanks, Charles