Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1408252lqm; Thu, 2 May 2024 14:00:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVWBGBLzSxMIgU8/7bm13NVbSqBRZzBjXiuHkNwiQZ7ro5oycDfQuMxuOKD0Z7pjiXX1VglcWzUyWfRLYDRCGVbJ/G1aTPwX3X2scpL3w== X-Google-Smtp-Source: AGHT+IHUS+tq5URYHcJsRTMLPzybLOTiqNUb+MwS8i741in3DGkUr8Zt2K+DGYqCPQybvBqzPu3K X-Received: by 2002:a05:6808:14d5:b0:3c5:f70d:f83 with SMTP id f21-20020a05680814d500b003c5f70d0f83mr1334975oiw.18.1714683656796; Thu, 02 May 2024 14:00:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714683656; cv=pass; d=google.com; s=arc-20160816; b=ZQ530EF06KXjOObghMToywMZG+6gQLa3NfU7d2wadGoEdnAkMYVRFcUNumWtKvv8xe Pn6Ic6/L/kTiKKpHWv4bAxErqBpz4u1+IAvA9Kt4bt8IpT1lymRfEKj9FYPte/A4WwIE 16vZQ+2c0GHkVc7s1VC0Rrglujye+J/8h93oN0s0U06Knu1CL9JNocw79tTjUPXyF+OO /05p+ZIp/rjkZaGw9V8u6vAHrcSX6k2eF0tcP4a+t7VYehc1PvPh6DBUEcgRlHvlimQ3 yxfxAtclAc/x2I6TaPrS1dg4P963B4Bh+M4UOEZe9A1nNvKEHI8sALQo2iW2+3cg8utL dy7Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=vbLbGnRrGB7osk150qN2jGrCzd2fjB5/oPHzyxdfjfo=; fh=1MQar9bMr7aKIyQPJspvIf+cNRZEg+iFzG7pJu45twc=; b=is8SoA+k2AXo4gGxtoHdCn3lP5n5e4Q5e+4KmckaQmdKaHeWxZ5CMHbELQRol4dn7E U7NV3/lJfZw8i2/N2bOZrjUkelpc+24LVaSpB+dozmm+gP/DwLglW2u/pwZ0EOnplGpY 5N4zddLb+tEcXW765/nR5j5/0XoXUWIGRH5zeHgn9mDi08Q1olmkcUcul42Z2WmA11dU k2YtHfMMgF7MJBEd8Et807dmQLN5uh1uI8h1cNYdfXNfTulQthPTXJeE3dO/0EdIBfoC r4xrEi8AsK0FAI36hJXtT+IIZBYL2nQesISjlcbMKWkFWv9nvJuUdgXbIKgaDvpWf7ii V3Jg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sang-engineering.com header.s=k1 header.b=kTsD4wzs; arc=pass (i=1 spf=pass spfdomain=sang-engineering.com dkim=pass dkdomain=sang-engineering.com); spf=pass (google.com: domain of linux-crypto+bounces-4006-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-crypto+bounces-4006-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 11-20020ad45b8b000000b006a0c875e7d8si1818582qvp.404.2024.05.02.14.00.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 May 2024 14:00:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto+bounces-4006-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@sang-engineering.com header.s=k1 header.b=kTsD4wzs; arc=pass (i=1 spf=pass spfdomain=sang-engineering.com dkim=pass dkdomain=sang-engineering.com); spf=pass (google.com: domain of linux-crypto+bounces-4006-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-crypto+bounces-4006-linux.lists.archive=gmail.com@vger.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 7E6851C21DD1 for ; Thu, 2 May 2024 21:00:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D2DE2180A8E; Thu, 2 May 2024 21:00:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b="kTsD4wzs" X-Original-To: linux-crypto@vger.kernel.org Received: from mail.zeus03.de (www.zeus03.de [194.117.254.33]) (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 BDC0A1635DB for ; Thu, 2 May 2024 21:00:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=194.117.254.33 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714683648; cv=none; b=UZPDcoIwIpCCExG7ZihAn527AZZK5ubJ1aaYVKdRPzVr6A6ew9+x53Bc4yyAKGdndOsrSBLm0zwYrw7xUU6gtKAilhXgVQqBMd36QIP8QrFzNL8Hqik3U32hRAHEHnLBym0PoY2+FvD9QgcamQa27XYhli5I8nPCzDWP2ASURts= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714683648; c=relaxed/simple; bh=G2G5Fdd8L1eMCVpoJCoNvgyMBlb75rzt+1FCyv2puVo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=BmZ1ArA9KY3+2hstxvbzyyDTFY3f05N8vcKo6sMcItk8jVjRhLNNaBtEv0U52CP24mlcv55FN8KxKlq+xUYu93lvBbZP3HVbyxxUm2n+wFQErTt8FL4BfbS6HUf3QfPZJQLoraXC3NM+hb8SG7bf/aW/n9xDkR/S18oJ/zkzFNo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com; spf=pass smtp.mailfrom=sang-engineering.com; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b=kTsD4wzs; arc=none smtp.client-ip=194.117.254.33 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sang-engineering.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= sang-engineering.com; h=from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; s=k1; bh=vbLbGnRrGB7osk 150qN2jGrCzd2fjB5/oPHzyxdfjfo=; b=kTsD4wzsqhNs625k+/D3X4EveeW156 xolafYJZMXNmURAxMJW+VCLt7kkK/pfWh2TyUZJtR73Ex3q5/LaM1fhnVKbCX0aN b8rtHgKHqNEYKNyEek6k/+5QdVpHHqQktdrahFswrIQTyhyvybT+u7muQTF6V7k2 okY7OPAqkeEcHpRbDcjKWizio5tXyGMtpPVSoxyAOfmDem7pXlZNfryFbn4eJL37 pDKgHZuI/OHUy4RJHE11vBQMPxIKJJs8Ejee3756yPKLKjJeV6a3yJzdOClXcWqL 4bjpmX2ztPBpJNGAGAKUEFzNjoKlI3+AjX4W5pTIydSSd11Hv+LgxGnQ== Received: (qmail 3365792 invoked from network); 2 May 2024 23:00:40 +0200 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 2 May 2024 23:00:40 +0200 X-UD-Smtp-Session: l3s3148p1@ZIs/5X4XVopehhrT From: Wolfram Sang To: linux-crypto@vger.kernel.org Cc: Wolfram Sang , linux-arm-kernel@lists.infradead.org, linux-fpga@vger.kernel.org, Michal Simek , Moritz Fischer , Wu Hao , Xu Yilun Subject: [PATCH 0/2] fpga: use 'time_left' instead of 'timeout' with wait_for_*() functions Date: Thu, 2 May 2024 23:00:35 +0200 Message-ID: <20240502210038.11480-1-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 (2): fpga: socfpga: use 'time_left' variable with wait_for_completion_interruptible_timeout() fpga: zynq-fpga: use 'time_left' variable with wait_for_completion_timeout() drivers/fpga/socfpga.c | 7 ++++--- drivers/fpga/zynq-fpga.c | 8 ++++---- 2 files changed, 8 insertions(+), 7 deletions(-) -- 2.43.0