Received: by 2002:a05:7412:2a91:b0:fc:a2b0:25d7 with SMTP id u17csp227944rdh; Tue, 13 Feb 2024 15:17:43 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVm5jMzCrwDNQhR1cjIPPrXs9B3t/C6Zh2TN6ltxoPq3/+3i1Tftz2OjeXX/1mLrDmYdhyV6hGSR0LjGsNp7iA9cKxc+fOMoYiTbzyylA== X-Google-Smtp-Source: AGHT+IHSPdktgWwkUbWqui6vYX5sSS5zPgtluxWKf7XbRfCiTtsgTbFpA9vRu2m7nMfyk8c6O3vb X-Received: by 2002:a92:b07:0:b0:363:c39e:df0c with SMTP id b7-20020a920b07000000b00363c39edf0cmr1199274ilf.18.1707866263106; Tue, 13 Feb 2024 15:17:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707866263; cv=pass; d=google.com; s=arc-20160816; b=MU5wlZNbJh9WAKaJWWLPq69tvAvxDrK6wazP/eOmTpYglUn8vUjp60XGihd9IxyzW/ /PFs3G86nOACrFWvDSnl6ggb6BbQuGtCFp2Zq/5h+LjqZHZnqRvatNgF3DIsZ4Mnwy45 y56pTCLt+POGUChghmLNkZXo0hPL9uRTkFrhpsXJGDJkUztce/8xDYjCEEkHEZAfJMPk bUEOu1fR0shuT6CfmwWX0JVmQUrzjbUZjh2KuoiSih/gcyluABV+exNV9aAchWfA1uZb XHewGle3i78s1APTcuvuJ64xogBMG8n+F04aL2T/DoBhCFeIEsLkixR93nYhKfaDAreo L76A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=7HODJpGHPgaeSYLExqKUI5k/ZPn8+GJoHxQaOjnaKjQ=; fh=OFQiCcg0J8H3WOcenB2BXubDZYv5V8rxQ8j7otb7iAw=; b=kRXjvYPn5fMIks3w41br1nQC6LyNv+0MGkec+k/osjUJe4k/+dsBUDh8PdE42Mo9x2 xr2mqyqr/3VskxX7t6VGsxcZ+A0qTSpd62F9Isoi7VnsrimaQCPdHbZP3MJaju9t1KZw ZK7Ojs2riOddh21SobEjYb3sdkzfAHP5+jir7Y0qXKwGQOsEGl9BJthCZdh8YiHLL4EF CW6J3ZWGBmo1+YG/R6ZligoqbTdaUZTWm5gSe9yrZT8HIl/+6TZV5gB4b0ogoKBcSv7Q Bza6hGTiaKb6v745y19X68gVsEBK8nYVR3wx5pazxrla1pYyNQYVB/f/F/mAaEFkIDS1 +uDQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ewR7Itku; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-64526-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64526-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com X-Forwarded-Encrypted: i=2; AJvYcCW4og0uZTaCYb9DHZiTkY75ZsqYrVUcEToBt37hHFb/Slr7dikVWBWgMwKEU8clhbKdONALaAtvcucqEk7PQl/fvt0KDCJV3BnKOD8IVw== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id o29-20020a63921d000000b005d9b49b7abasi2574292pgd.846.2024.02.13.15.17.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 15:17:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-64526-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=@gmail.com header.s=20230601 header.b=ewR7Itku; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-64526-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64526-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id D5BF0282A31 for ; Tue, 13 Feb 2024 23:16:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 035266306D; Tue, 13 Feb 2024 23:16:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ewR7Itku" Received: from mail-qv1-f43.google.com (mail-qv1-f43.google.com [209.85.219.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A9A1B62A02; Tue, 13 Feb 2024 23:16:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707866201; cv=none; b=RY7hFXds0PuTXdIfnscje0yFeQfGl4ulmh6TJZx4iC1oJaxU+C8Js8zbtTs4Lu9u1OkSGIQNgknMJfCiLfs+15eMwKUk49IuRWELmHKghQD6LGIsjI6k6AGws0jiudvjUyvdkZJ2FsaPufSzf5Nr31PLk4v5CGcQut30XQct5Rs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707866201; c=relaxed/simple; bh=yn1oH6etk8WPbSVapAg4M6cLEbD0UbBLL7vryXpe9UQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=NhCJRggenjkxX7t7/3vqfVIUNEwYDAw+NDOlkqFIYb68piWj8R6nu8sYqXPaX+P/l/Zo4ey+38YyAnhThsAyhFEd+3Jlx9P5aFu5DNdeAN9Xv7CK8vZY3IiwwLvUEME2nhOFRNtc38wSnb+H/Ly83MK2nE7ryw5NarEO2C+z64A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=ewR7Itku; arc=none smtp.client-ip=209.85.219.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-qv1-f43.google.com with SMTP id 6a1803df08f44-68ef590377aso3370206d6.1; Tue, 13 Feb 2024 15:16:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707866198; x=1708470998; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=7HODJpGHPgaeSYLExqKUI5k/ZPn8+GJoHxQaOjnaKjQ=; b=ewR7Itkuwv7KJzz2BJAyq2iRx0uf267wdbl5jvGbk8cjxITlC3bvFuA+z0nGi5vJfE 9S9v6vEK8YWMrQBaj183gNf0/ZwLwWKAiK2xlnuoDT3d8shkxPSah3HgkDlR7lg3Sp9/ 5UWoVDs+dc65IsFtScPnvlmHFSzjaaRZ9ikZfJ32qd2RKzWK+k6Ws6SaH0X4qaGlgrOg 4xO17mksH9ycSLGy6M1C9wJrD1LqYr2pNf6i2DCCEt/8CMeXMpeFIOCSYvbQd7nch8zC MkLiVeocZm6eh6cCSa3aEwuJdewR/DVhN71vCTOGTakPz3RnyvSDy4a5SQmG+1fbePPD Qw0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707866198; x=1708470998; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=7HODJpGHPgaeSYLExqKUI5k/ZPn8+GJoHxQaOjnaKjQ=; b=D+SBXpF2AEmPr3rGo+UNofgcUmwHXDAlBSp+7urJnfoLC8v2wE9z3sGOL7bNckUIqh Lw+L8UEj2daBi++xNmrmRC41dcbr7HCSF2Dc9qqpHC0lYT6JDOyuGqJCRmsPk4yBQR5O pbyB+kJ20n11rcnq5Eqc8KDTYsnrJys8bxUKCtzJzb6EnTVn+qmKTRCcAXHEErTT8Aiq 8nHnk3fsZmB7TbRatL1GHX1N5e9lVhDU0CzKdH0edJfkLcfmCUr0FjfyCLG8G9ig3LLl DJXMcG/ejBvTIZvut7issJEuTTqwHzXPjkrNORDCGkhVRZ5bMaN4z8UcUA4ExFIjn7Ne FZOQ== X-Forwarded-Encrypted: i=1; AJvYcCUy1yOyJW7BNCa4FDBtQF7tTrKsVjAVoICYY1u6n/O8LNDDLvJykyOguIKI923YSrc5iv/MzsuPPGqUdo02IOtizCBKjL1XD6ODvNB/FCqxGvH561zhGZqdwEjtAHedm4iyJf8g X-Gm-Message-State: AOJu0Yw5tHYHIN3tekyMprs8EkX+qQhFGByfBH+EQTp0WKHhAB7y+a9u V/SJM1Sv7btWTQrxptqLBTA+S5OM3KISL8XhmwTKyFZLRcg8aM2/ X-Received: by 2002:a05:6214:27ca:b0:68e:e7dd:83dd with SMTP id ge10-20020a05621427ca00b0068ee7dd83ddmr1139874qvb.34.1707866198522; Tue, 13 Feb 2024 15:16:38 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCUH0iobdVJQhOrcmu0taydggb4an1mBJNJRKfSkuUb73VrynX0NGkZzEKkef1qZrwg27/uQjzFtcdKyFiV2RAWhi/7z2fj510p6ClLL8fo8470xdBpTcCUqBfpqDzVGWGI42JRNIi2i4tecYlNOY2gvbYGh8IlItlQKDTIAWAcl2dN+ZyRhywxW/+3+J7cnsQyJYJXJ0sLHjcMhrqbt3Hphz6RQdnzI88A00LdAddxUoxBoKHORspvhnM6iir9l6uNiwz8+lKZ2OHF7a1OwDWi8XJdvdZRujsE7HBDIFZN18V7ITHb/mTDM/hVhMfcJXuaFUw94tdnC8GlgPPJKOKJDIzH7I3XGDlgSR96FffLMGNeMW6sl6JPPfN/vWMeFc5hWJxAHK12X6+0koUxWf0zY5CR03pKqxurXd/7w2p4YrsY= Received: from [10.67.48.245] ([192.19.223.252]) by smtp.googlemail.com with ESMTPSA id lx15-20020a0562145f0f00b0068ee9aeacefsm919213qvb.146.2024.02.13.15.16.36 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 13 Feb 2024 15:16:37 -0800 (PST) Message-ID: Date: Tue, 13 Feb 2024 15:16:36 -0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net-next v4 01/15] net: dsa: vsc73xx: use read_poll_timeout instead delay loop Content-Language: en-US To: Pawel Dembicki , netdev@vger.kernel.org Cc: linus.walleij@linaro.org, Russell King , Andrew Lunn , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Claudiu Manoil , Alexandre Belloni , UNGLinuxDriver@microchip.com, linux-kernel@vger.kernel.org References: <20240213220331.239031-1-paweldembicki@gmail.com> <20240213220331.239031-2-paweldembicki@gmail.com> From: Florian Fainelli In-Reply-To: <20240213220331.239031-2-paweldembicki@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2/13/24 14:03, Pawel Dembicki wrote: > This commit switches delay loop to read_poll_timeout macro during > Arbiter empty check in adjust link function. > > As Russel King suggested: > > "This [change] avoids the issue that on the last iteration, the code reads > the register, test it, find the condition that's being waiting for is > false, _then_ waits and end up printing the error message - that last > wait is rather useless, and as the arbiter state isn't checked after > waiting, it could be that we had success during the last wait." > > It also remove one short msleep delay. > > Suggested-by: Russell King > Signed-off-by: Pawel Dembicki > Reviewed-by: Andrew Lunn Reviewed-by: Florian Fainelli -- Florian