Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp1439322lqj; Tue, 4 Jun 2024 01:14:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXFgchbYkE3FBfDErnZIflWUyLlS0fa4iQJBCOYou411fwmPezSYRZGpfEjlzNrTOB6/wrgklNsjKgpNqZ/P1XOdjOyZIe/oF2/arZyLw== X-Google-Smtp-Source: AGHT+IFsF1LdJvCWdRWPfGp4b3FMFRfOu1MyZiOWkZMr1bUDxvI6dQ29pc55xynIKCsV0TImNCge X-Received: by 2002:a05:6870:f68c:b0:24f:d9bd:2754 with SMTP id 586e51a60fabf-2508bfb46a9mr12294867fac.40.1717488841625; Tue, 04 Jun 2024 01:14:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717488841; cv=pass; d=google.com; s=arc-20160816; b=KJmegKm0FWGtlT1/lCgGcecgqLwm6ESwPlsQmmwHH08WPHS5B9ejA1T5eInCZPOHT7 eJOTEPdlHD9tV8CEqXe3HiIDE9nmvZ2AXdQmEoIYcJepAybZm9AUhW+JISa0d3QPc/l9 hSSzYFkOjdruTll7kgLwEmdd09LrlLuVyY4FXVEV8YHRKClF0+rgx2Gx7HbkM7ekDath VracUlWVZeDkyqJxl55dY4hzRPAIj0F5WAWdiH0MEmpOqkbtOjO+3qF2X+PF3t51QMgM hnmoAGUPtvLwnEnRQZKbHiGiWspbWcFnIyH/TbnYLqaDumpQpCs21xAal49WKrWteCDu jhxQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:message-id:in-reply-to:date:references:subject:cc:to :from:dkim-signature; bh=Yunpgcx1dU1JSN0uu7dBZqDOwN6GFXSKuL3Savii/24=; fh=rBwGZOJz3BysYpkPyCcT7OrSyXNYH9MaeVFerq6FkbQ=; b=SMBFX4SfWpf2nLSR2HTAe1kiY11pi9ZNkumKfZRmMzbcDNv2DCxztYoL7zERigEXXO AcRZLgE9NOSklV/F+XVZj5mO0Bk/IalSvGhxvnmnaHGrZ3Q8mQyWrAJ2mTsUzoS0zeZ1 al2Ecg9epLjD7PaG3td3NnyYxyNXkdDakg0YlR41EEklwh6BgPFDnISgma/iNkFWq8uo pWIq1CylLtCu3CQek7fQgso8ZsOarMgJ/c1wivrMyFKgvh0ysPkA3wgOEvD6KIXmAFD6 hA/+TJATPb/ZDjA32rd9FyCONyDMG4V71VyqrPA13utOurNKxfpuJkjKo6A7F8mKlsaL iCFg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cQ17OP03; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-200226-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200226-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. [139.178.88.99]) by mx.google.com with ESMTPS id d2e1a72fcca58-702662f1eeesi559093b3a.50.2024.06.04.01.14.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 01:14:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-200226-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cQ17OP03; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-200226-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200226-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 296402842C9 for ; Tue, 4 Jun 2024 08:14:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9D4361422B0; Tue, 4 Jun 2024 08:13:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="cQ17OP03" 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 BFC23446CF; Tue, 4 Jun 2024 08:13:52 +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=1717488832; cv=none; b=ljO5h7Ls9PUmovLkK1s1gpRtsgv6AyWUEAHACTm6sBWLQ/VSg+Dh10fH/1aPdG9ok6PCY9sKRfHFoQWeTr0o0c8D5AOSKqbmsn206biVUsE3Ra/rQRnEHbqKzU4rT1T0W/av9GUp2DiMPSdGk8K5eYQ5dFmQao9NCDLMEJ+jQPI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717488832; c=relaxed/simple; bh=56WLi8CXo1AcrdLwJh+EBDJTq1lXFHmxgYbS9a/UTg0=; h=From:To:Cc:Subject:References:Date:In-Reply-To:Message-ID: MIME-Version:Content-Type; b=U/6vlby5FAxSnH8Y4dwjDmxMy5NvSouF55xdvBaJaeRtNU0O8Vf97wsWK9ZJRzFUPDFkISuNs7W1lngJe3vBUXPYFELgkSIqMzfMZOPIjpVb9LNp1x4KcURz4pIWq4/vYYvIN1sSJxJsni79qsivFLDL3bcTZHMBhqodguH2PWo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=cQ17OP03; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A13D7C2BBFC; Tue, 4 Jun 2024 08:13:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717488832; bh=56WLi8CXo1AcrdLwJh+EBDJTq1lXFHmxgYbS9a/UTg0=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=cQ17OP03lb6oYLzf2d773K2wukeyoY8gV8t5ZG4CXOzi/Og1nGwYzOz5cW1VdIPKs GfXmUvphwJe73lWW40vZMMzVv+ka+zLsxNZLf/cGEF47Isd0SWmnzEFdLUnL88GvaC hMI1cHETWj0/LjNdd4kxEJo+/HrDHMj/1ErtCyyntP5LexIo/7KV9+2aolkrHbmSVz eT83yXofsMIjTwXaZpc5xXabFs6vzRVxgptsJjuYUC5qN4QOnA7YaXTCvrNx5/59bs iXyBWof5FUAKJK08lvLJdrlRljtvDbYrEiwRMwg24uwcrCUFXSrdLSt6Dob+w6kaoS VZjwjwf2K8+TQ== From: Kalle Valo To: Ping-Ke Shih Cc: Wolfram Sang , "linux-kernel@vger.kernel.org" , "linux-wireless@vger.kernel.org" Subject: Re: [PATCH 5/6] wifi: rtw89: use 'time_left' variable with wait_for_completion_timeout() References: <20240603091541.8367-1-wsa+renesas@sang-engineering.com> <20240603091541.8367-6-wsa+renesas@sang-engineering.com> <1fca9d83960442b0b637d4e9586766bf@realtek.com> Date: Tue, 04 Jun 2024 11:13:49 +0300 In-Reply-To: <1fca9d83960442b0b637d4e9586766bf@realtek.com> (Ping-Ke Shih's message of "Tue, 4 Jun 2024 00:35:27 +0000") Message-ID: <878qzlt9aa.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Ping-Ke Shih writes: > Wolfram Sang wrote: >> There is a confusing pattern in the kernel to use a variable named 'timeout' to >> store the result of wait_for_completion_timeout() 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 >> self explaining. >> >> Signed-off-by: Wolfram Sang > > Acked-by: Ping-Ke Shih BTW Ping, you can also take it directly to your tree if you want. But if you want me to take the patch, then please assign it to me on patchwork (ie. change 'Delegate to' to 'kvalo'). My preference is to take it to your tree, smaller risk of concflicts that way, but up to you. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches