Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp15009516rwd; Sun, 25 Jun 2023 08:23:47 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6wdylSi3du4Ui9oxYwpTFJHUzcAsZFDaLprx5WtuLrq7azoxL+7OzOsc9uOz/o53lfhudZ X-Received: by 2002:a05:6402:21a:b0:518:7a51:7e97 with SMTP id t26-20020a056402021a00b005187a517e97mr18015350edv.36.1687706626843; Sun, 25 Jun 2023 08:23:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687706626; cv=none; d=google.com; s=arc-20160816; b=T2QHlqGFCIOuqcPl/nzL2bvAaKQrEis5LYTigSMpMaMSwfc5ksEWUkKWhJed0o4eTB lj9Q+dFiYHr4UmBxIN44KMNYCb85zEvNbEIiF25CysrHkCMYP8z/2Ig20rrfZuidGLZL i+Qs+RQlQReTwdh1PvltINK7aoMpEdjhpeFzYDdXhWADjtwCK4WgODTRPtxOASFu4aFv RW7ovFJ8XYBzM2Q+DxOcTeXbNNmCKLbHH6CDEMOdUOobYKtn2xr6aiXeMYVRfOrqjaTG uVJk3PNqDq5/GLoZ6pSqti5SSuXTyDD2Ysl67tdwj3fLRN1yam4WQ3unlBayUda8ZcIi t8lQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=NKphG9SWcrxgT1kw/gYGZAGNyI3tPHGIuMcUY7Z5Mew=; fh=ldCrn60My6exdqLZWp2s2tkD37XytpGG0SV5IWLSK2o=; b=tsVGMjKtKkTgC6H94rDK1UG7Q3X8vdD0DMGuLLSpo/9hftFEGQ3YNIH/mGV1/d2xs0 Yv2+6tjpIi+6c6OhSt8hXQmQobYe3n/gNdadcTX3NIwKdhdhsmwGhcNPzFwdRAOzW0V8 CACMs1rXWFbfakzLWoqSc12Q6feU9Tv5rvVcXefNZAg4crL4yGQg5VzEXNLHlBj70NvB LZWXSbGbAA7sFbDOiMh5iuS79g4fXHtx7daQLp7M/ue6jcVdGidusOnHvVXUsvOO9xJ9 yKnUUcHQaS+aWSAa4K6Bjaj8RUQ5CFIRrL/d3HhooRONh0tJ5LpLkFXaOSoxw4AgpvfL oWFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=pUQCPjRN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g26-20020a50ee1a000000b0051a4d193b54si1742643eds.431.2023.06.25.08.23.22; Sun, 25 Jun 2023 08:23:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=pUQCPjRN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229673AbjFYPH6 (ORCPT + 99 others); Sun, 25 Jun 2023 11:07:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229518AbjFYPH5 (ORCPT ); Sun, 25 Jun 2023 11:07:57 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B39B1B3; Sun, 25 Jun 2023 08:07:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=NKphG9SWcrxgT1kw/gYGZAGNyI3tPHGIuMcUY7Z5Mew=; b=pUQCPjRNKv4ZwyvVvowmON9yY1 zfLgxbVkwc5Qb8siUCaLVlZDeGyluxUWcaCKMC6u7m8F+cBgB3bB/pNXXEn74rFEVCBXceydvGT29 QUv3ga6E7CSbAjk0gNs/VKCLILH8cCbusTq47h/QTXZC3dklWCRIDATvZwwfSuDcdgxk=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1qDRL2-00HUMe-1m; Sun, 25 Jun 2023 17:07:40 +0200 Date: Sun, 25 Jun 2023 17:07:40 +0200 From: Andrew Lunn To: Pawel Dembicki Cc: netdev@vger.kernel.org, Russell King , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next v2 1/7] net: dsa: vsc73xx: use read_poll_timeout instead delay loop Message-ID: <3ed4c6dd-b065-4d1b-9686-1bc2df63f17e@lunn.ch> References: <20230625115343.1603330-1-paweldembicki@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230625115343.1603330-1-paweldembicki@gmail.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jun 25, 2023 at 01:53:36PM +0200, Pawel Dembicki wrote: > This commit switches delay loop to read_poll_timeout macro durring > 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 Andrew