Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp542345lqp; Tue, 11 Jun 2024 11:41:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWxo/8ujDIeoE6tWRo5Q8Xx9wEs0Drs6D5yBqgVb+fMctWutt/zhuu/GZdL60q07uPafIQY5NlIe4ZnxYthA6PsYI78+6/Ppp8pKeMvRw== X-Google-Smtp-Source: AGHT+IFtoJAnpL0UB3bSoXNND6omo3L/0eAEcGmKsPelbrtR7Qyo/i9tt/QTL3RuqsFmN73ZvqlE X-Received: by 2002:a17:902:e84a:b0:1f7:1a9:bf05 with SMTP id d9443c01a7336-1f701a9c351mr100858445ad.53.1718131286751; Tue, 11 Jun 2024 11:41:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718131286; cv=pass; d=google.com; s=arc-20160816; b=V1QaXp/oCx5f7Wad6HTZsQGsFjosx1sMrjrZXRT6IUNlVenrB/ZcOELMvs1OUcfNM2 S5WKRGxf3myaSUWe2MSY2ygEFQnBf9LRXa39ZYjQbsJql3MosS5p33iK6HDRbyV/Eq24 h7pjDnEqogvHd6cvrRg43l4COZ7tnANuoBSiuryC0WEU+Mi/f8KTd2erFZiGyHoKL2T/ PUqXjM1JDhBoIYFULVgsyl0VtbJeyy+1UROXaFVN6g2N6tz90MkidU02Bpx2q8S9yqzF QjzutPv0ZpNV/89bHlwuc/lmIykSTYQE51tqIcDuKj8eRiFbZBPK8iOZZmFLZM1vowmS XmpA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=date:message-id:user-agent:cc:to:references:in-reply-to:from :subject:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=oOzPA6N1aZZfTAt4pcXIYkrSOn/jNPfKaBeVytXsrHY=; fh=c9ul5KEycRjcn6OBZiVb/uKJsOk3Ff5cp8ERL3KZptg=; b=oXQRHR0pJkbQ0BEoFWIZLjQDc1+YPPYo26B4ZMYtcQ1Wb/wLZfGaewjnPaSzXgrEw5 yxX5ZypnthWdywujzOohyDlasGXDdW3PZVMeqMeCZMniYKmWm9U8hHeVyPTN5sja5UIP ERMUIWDzHVOihd5Xgz+XN1LwJv4/rss0awLjeTEQg4nUbGA0sJzHXJ3G4NlDWVcF406Q 4zJvDmpG7QZ+Sc9HSqd3lztXYdbkdQBZmR7MVSMOfvDSReM1raeWh7H1PV3ANtIXdBmo 07eJV3eiAacJwsiQg2YuCukYGx9yOjlFax4HBzQZS4vHvEkzx/lUMINTIFqz8v+8xwNs ypPw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FOrgfbbG; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-210453-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210453-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 d9443c01a7336-1f6fdf1246bsi54265875ad.61.2024.06.11.11.41.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 11:41:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-210453-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=FOrgfbbG; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-210453-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210453-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 599BC28823B for ; Tue, 11 Jun 2024 18:41:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 18E1E71B30; Tue, 11 Jun 2024 18:41:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="FOrgfbbG" 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 3EAB114A96; Tue, 11 Jun 2024 18:41:16 +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=1718131277; cv=none; b=SFjC7x4XRbmITaYKtKNBKfv08uFlgtONf92b0guojGKwfYAmT8ysBIvwM/fyrw7sXBIlScSQAwmXtTozDV7eSXayXER/+LpBUPwrimxV+0MhbofLnIAtUDx+ecHLE+WK5c07DJRHnzO/Kgfs89OSe+t16kevTb6jFAhbTk/Iuvc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718131277; c=relaxed/simple; bh=P0+kbGBViPVlXWHNujnSAalb1rK+KEqJYTwnL+IIEfQ=; h=Content-Type:MIME-Version:Subject:From:In-Reply-To:References:To: Cc:Message-ID:Date; b=DniS/24ZoeYWyz5CMWNnubirzEEVKd2wRBPlA4pSPKYUPi5PP+1uOZiQ5SfwGaxMipJ1Xebh8ZmY2c3Xa2IZVwieiq20sE2bNRIXdM1Yu85gWm9V+cMNY/BFmJDPmYEP2Ph2E+/rkE24wa00VzJuTtIWXf9zsNmfyaC5ew25kSs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=FOrgfbbG; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6EE79C2BD10; Tue, 11 Jun 2024 18:41:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718131276; bh=P0+kbGBViPVlXWHNujnSAalb1rK+KEqJYTwnL+IIEfQ=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=FOrgfbbGeCvpAnkAhL/PCPu/D+j2PnA/UhagF/dWDyEsiNt6Hs295i2fBilB8jTlT rt+TFahXScTYiZKR9BBiQal7BvBkIXpTsWAKUv+yXRIgTDz5Zxk9POqcL+/iugn+9g r/QBlzWgNcf/HG+Z8UyI2kWX9yCDd6my8FWB7/DntU+hWi7spuFWvk8413cC5J+IIK YH/PySHue4hED+9UF4f7nSjJFOHfQUaRUYAFFNCs2J5ElpMlzsHXmTltfjUAroNPgB 7Cuvt9siTM3am8CMU0eCE5nsuqNuXPEkftfGkyXHeaZFiWT48MusSGf+lypHRNZXFb /WcMP62Jflfcw== Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH 1/6] wifi: ath11k: use 'time_left' variable with wait_event_timeout() From: Kalle Valo In-Reply-To: <20240603091541.8367-2-wsa+renesas@sang-engineering.com> References: <20240603091541.8367-2-wsa+renesas@sang-engineering.com> To: Wolfram Sang Cc: linux-kernel@vger.kernel.org, Wolfram Sang , Jeff Johnson , linux-wireless@vger.kernel.org, ath11k@lists.infradead.org User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.11.2 Message-ID: <171813127345.3564613.1259429079165785453.kvalo@kernel.org> Date: Tue, 11 Jun 2024 18:41:15 +0000 (UTC) Wolfram Sang wrote: > There is a confusing pattern in the kernel to use a variable named 'timeout' to > store the result of wait_event_timeout() causing patterns like: > > timeout = wait_event_timeout(...) > if (!timeout) return -ETIMEDOUT; > > with all kinds of permutations. Use 'time_left' as a variable to make the code > self explaining. > > Fix to the proper variable type 'long' while here. > > Signed-off-by: Wolfram Sang > Signed-off-by: Kalle Valo Patch applied to ath-next branch of ath.git, thanks. 65a8368bf34e wifi: ath11k: use 'time_left' variable with wait_event_timeout() -- https://patchwork.kernel.org/project/linux-wireless/patch/20240603091541.8367-2-wsa+renesas@sang-engineering.com/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches