Received: by 2002:a05:7412:2a91:b0:fc:a2b0:25d7 with SMTP id u17csp223810rdh; Tue, 13 Feb 2024 15:07:47 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXBYcdtC2OQ8zhwdLRjGDWMMp6l15aTlpVqp0GyUTlrd1ksiPOjW2VewEqp74OMJtYTk+JUgSF6gHCrTD7N6QBacOyOFxjsk94u8R0FdQ== X-Google-Smtp-Source: AGHT+IFrouk9DbDdlGqVVNZBcrRWqhqX01wA3H43MoBnXukOewgmM2kg7YTF0SVkuk2lykMjTl2R X-Received: by 2002:a17:906:6889:b0:a3c:9f58:9b40 with SMTP id n9-20020a170906688900b00a3c9f589b40mr422642ejr.74.1707865667237; Tue, 13 Feb 2024 15:07:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707865667; cv=pass; d=google.com; s=arc-20160816; b=oa3zAHjxtni8eZd05pX4hmAwhP55ZZY7jhzqynG/0YOaWpVr6Dv8cZw6GWpm9TmZ1u UYqvVQAZtobD3ecTz2jF93nQVff74s2ewyh1N6Dnq0yJs5/dX3E0HBiXPrHgbOaWZ+XT be6GuiNT04Ne0mqFjuOQHnS80DYBhlEC9Hqw3OffXTR9UdMd3frrDVG9HPs3T00hbSi5 394+0uAU+VJ1fgm7XXDFyGIvA5LGzr7nq8GGDqgHZcpPjxY3EUe81NhxMK9uDP7Ym6WL fZ7xvl2lJ5aG1exDPjBDIYTp9MzfD3di/1NdEBbH/1deSUZDtdHwdk5GRedA6olmxbmg Cylg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=MjAOKycBPzBk4VO9jkOkv9nBTectr6pmu0X6Zna2BAc=; fh=YsbPTbQmCTiw/E+eCwZVgLXQ6QIcXTRUtgbnRORm89k=; b=r2Wkbm713NrH4JIqB8O6Snu4i3fzNci6F2CTxhqm2uXjM5mRkQI9J0qksQzG273moW F7DruX56pHcVofhg+96jK+avBtDsQKdIg0qtotI5rnJ0PbN7bDlZ8tl+1LotH7LgpnZ9 EBWIRDF3zKjOxJd/jq18JCFdWRaULzB0oyZgnnoiTYon25+IZuQ7RR2I4H2M15buu/er 35iw6057BIzDKhx4E+eddOQhDkiL/asDdY5uOvJqlhiZvF8Lcr2U/ybLy9HhgvCLXaVy 5Xh9kw5RxUSRRZ3K4S0huHn35PE6VH+2UnlgMpj2Ttv173AhZtOvSyWtSGrFApdA9Vnh WD5g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=M0ya3bvw; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-64505-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64505-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=2; AJvYcCVaVt2AK2t4jgVaZPXPqS2y/hRQzmP5m5y+mZYlIeY+EttvdRtGOSjRPf0G2L/bdN7x1Ezp1RaUL1CtWeQbWnkb7k65lf6tUQPbHn2Oyw== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id gw9-20020a170906f14900b00a3d12b912bfsi772355ejb.996.2024.02.13.15.07.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 15:07:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-64505-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=@linaro.org header.s=google header.b=M0ya3bvw; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-64505-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64505-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 am.mirrors.kernel.org (Postfix) with ESMTPS id AEE0E1F29D24 for ; Tue, 13 Feb 2024 23:07:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BFD0362A06; Tue, 13 Feb 2024 23:07:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="M0ya3bvw" Received: from mail-yb1-f172.google.com (mail-yb1-f172.google.com [209.85.219.172]) (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 4F9DD62807 for ; Tue, 13 Feb 2024 23:07:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707865635; cv=none; b=SgGl/OrFkUeZd+mZ95dtgytzWayiAnAxb+hLCRhERfkW6+vzFtqLoyxbXKGBVuAox0R1Hx5EQIhwlqBoRQkKWFmf3rzfkz9YRvNgaZ7tZI3OOjlO55r9lFBu9khEPcF8Y+uthCFIGZx7PYtKw9oioAO6HLKg/dVm4j2ZEvQFstQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707865635; c=relaxed/simple; bh=MjAOKycBPzBk4VO9jkOkv9nBTectr6pmu0X6Zna2BAc=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=aoW7zd2Fy7cTGbXuJ4G+X7MUjEZjfC7rfoGJdw3J7sEt1KXa9V9NJWOD+qO2sk74CDUny5naEp1vjDKF/5+yr7QX9/a/xvt4kjTnq8SRh0VVeT73enmUyfg6U1gCKaTR8LANyKzggoC/vkGPTuGw7O7LW9BOiM4DP9x9IM2UJqc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=M0ya3bvw; arc=none smtp.client-ip=209.85.219.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yb1-f172.google.com with SMTP id 3f1490d57ef6-dc6d8bd618eso5063987276.3 for ; Tue, 13 Feb 2024 15:07:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707865632; x=1708470432; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=MjAOKycBPzBk4VO9jkOkv9nBTectr6pmu0X6Zna2BAc=; b=M0ya3bvwdjzmfbQmWgeeOPVTgAmATTw/AiXusdZXqHr87FBmqE3yJcAb36e7/dW73r rkHaB4dQGzBwpztpthLfnK9yeM2PmCpRoVSo9DTKTZodwsx5w/Dt5LXuND+76+zMKTX+ E6A02VHP1FhCYWolYnUyXkNeuAXJnqsYmctJdpKt1LITjJUWRODA9s4bxNgGkbutb5HF qBoAVjiR4Ig+M2sgxkkaaPBzarXe5/gkIBeyNB+7Kpfe8xx/K1f7RHuzfCA//AWkr0cI ru86TZY+WZa8ierXsqezE8DD6V+XddnSYEvEXohoChDfIFyZ48dYPHpbWlbcFAqzOWOu m96Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707865632; x=1708470432; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=MjAOKycBPzBk4VO9jkOkv9nBTectr6pmu0X6Zna2BAc=; b=a3u+yeHgHs/8HnmMs/kpOv3YePSRTILSoN9azc8X5PZzgnSR1pHaNpjIY0x6z/2/+F G0N7DS8QPbFiGK/yJ+WGc6MraQzSMIPws9YvIPvTIX/DMrqFtqWrA5CJvUGehQHMnDIB JSmIZDG8ryk8sr/RV1av+q8f4QXgml205k2rJFnL2aNev5CrsDLnC/bjKlYifg36oy2X 3QwZl/rKcJkMUiTlL7UAwvet/b/TrRDXlkkLzITJYCM6qP4uFLjWBvTLDaNzPyMn3htJ kRNo15VlAWH2NRunWeA8EMtwDiZi5u5LbU3BWiQKEFySBm0zT0LJI1pJ0+DwFZxRCD6I fhdA== X-Forwarded-Encrypted: i=1; AJvYcCVxrP951idR5RvuYR8Sg7kYYYKx8x3bYS1N8JDWBvjqnS2PcAa4bBT1jgF1ou/lnRB/HA8abzh4YbGKCtj3urpY09gzsCEy3FZ+pIpD X-Gm-Message-State: AOJu0YxRyUH1otiktNkcso56Npm/LkYenKTvRhhrA+8bhw+YDgq80Ahb ggvHoykTvnaH1VjgCymhIjE967bhftqQIsBZWVHzJQdweemkPcHJBMkwNQJiD1zm8eyRW3jle0V f3Y+7rp1u23KVzPcNr4vOGyLVeKqkOdIfD8K/aA== X-Received: by 2002:a25:8691:0:b0:dc2:232d:7fde with SMTP id z17-20020a258691000000b00dc2232d7fdemr792874ybk.13.1707865632236; Tue, 13 Feb 2024 15:07:12 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240213220331.239031-1-paweldembicki@gmail.com> <20240213220331.239031-2-paweldembicki@gmail.com> In-Reply-To: <20240213220331.239031-2-paweldembicki@gmail.com> From: Linus Walleij Date: Wed, 14 Feb 2024 00:07:00 +0100 Message-ID: Subject: Re: [PATCH net-next v4 01/15] net: dsa: vsc73xx: use read_poll_timeout instead delay loop To: Pawel Dembicki Cc: netdev@vger.kernel.org, Russell King , Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Claudiu Manoil , Alexandre Belloni , UNGLinuxDriver@microchip.com, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Feb 13, 2024 at 11:04=E2=80=AFPM 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 read= s > 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: Linus Walleij Yours, Linus Walleij