Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4997243rdb; Tue, 12 Dec 2023 16:08:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IGtrYljVNvbfEtVsUJ04MROWCMHv39V5sM/7+gYe4mOJLZy0iGek7wPN1wgzqrLaMoSrWOi X-Received: by 2002:a17:902:e811:b0:1d0:6ffe:a19 with SMTP id u17-20020a170902e81100b001d06ffe0a19mr8168048plg.119.1702426138387; Tue, 12 Dec 2023 16:08:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702426138; cv=none; d=google.com; s=arc-20160816; b=UsX+5Ui5ON0m/YEXToIEBOVWCzAZZE1KEWaA08DiPsjEm824qy5YMHTg/7DDVUQUAD 42wrOxoa5N2kg/uPD252NwNCyshobCidw3dA03WYjaHhuQFnVS9/CFgoCeKzHZnCKi4r w7H547/cIToFzRoozcr7ar/bohBHOWatUuhSJS1bvGyagEIhWqz0c2ouJlI6PYIksXq+ BcFXxTWVXwSYjRQ8/8nQMYClMcsDkFSvumxKAr1cRgMkwNZzUfskOmzQDUSjWFihbh3K 6kItpBNux1Rldun4t0PMcPPvEdCZ1reWjl8Nev1eoA9CShdC6AtVqxkurJxq6e449dYX jCPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=qKBBnDg1UUIS/KYipTQnXPk3zM7w4tV9LEKEnMlk//w=; fh=22ldL275BnZ94xxb6s6mO/UBWWxYmT/892nF6cYzJJY=; b=DSRmZSb6tGnqlukPo4R43ShZz8E1K+DvCbz1q5kDjHT1DDylx4zyMR9LAsC3thLezn vLjfuaheS+HByx7naimBVbhSLal69ORofbkdGIdQcJII75q234zsAwoomzhYWTdKqQbV 5qI1NxhpEUTQCrCzr24EtRULybxuJ8xxbBzmI4S9EPwwJOVekjhSu3I2LBQO9h7fZ7F2 lLNyV0uusyeu+UW90EQd/qElRrfsmoqX57TTl5fUfVKf5wgP683bJsMrmMaM1eUuQ6E3 TEdJtxxKnFMqUZk7XbeBIxlWSmnPJwzexZwY6tKmHVW8OfhErrrMRXIQNwyWPPAFmYcs QnoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=CGME4tT3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id t6-20020a170902e84600b001d0a0a9a997si8865631plg.25.2023.12.12.16.08.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 16:08:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=CGME4tT3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 13E9F80A9AA3; Tue, 12 Dec 2023 16:08:56 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377720AbjLMAIl (ORCPT + 99 others); Tue, 12 Dec 2023 19:08:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377728AbjLMAIY (ORCPT ); Tue, 12 Dec 2023 19:08:24 -0500 Received: from mail-pf1-x434.google.com (mail-pf1-x434.google.com [IPv6:2607:f8b0:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A25F173D; Tue, 12 Dec 2023 16:08:11 -0800 (PST) Received: by mail-pf1-x434.google.com with SMTP id d2e1a72fcca58-6ce7c1b07e1so5428750b3a.2; Tue, 12 Dec 2023 16:08:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702426090; x=1703030890; 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=qKBBnDg1UUIS/KYipTQnXPk3zM7w4tV9LEKEnMlk//w=; b=CGME4tT3xai5YOoydX/MBQH01+txhWkelSk47y1AVqWmLVqA9Uf4zlhh27uZJMaqde Xy7SeZ5mA5A1yT6AlVLUWB0w5JEUIIBm8lv1W/vdTjMj2w5jDyxlcKfKu0aZCE/X34sU NgdI3xkSiMHuquiaQIKPJ8MbUU/mo8lvIg/gVdsuzviDPHPNBtuULHp2bKc7VuJZoaEQ Ck5kzPzkbKb7P9gA5LJSE85xncMP8BdCtgb6UD64pSNxAIxB5a8qiAQJoJcM/KhdUM2L 8PGKtnUCSOrYaM65U5HI2xdTj1MXZa+vCaQ/PBWkRSxgeA9qjTCY078y3dBSe/GS9uPn RnoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702426090; x=1703030890; 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=qKBBnDg1UUIS/KYipTQnXPk3zM7w4tV9LEKEnMlk//w=; b=eYMkg8LljEBXgTP0PWQwGGfXQLSRYfoaWCaQcNu8CXSDWbuH3qXweZ5ssaEffq47uY HCcz/oT1pEjTvqEmY3qzXV4LqWtNno8tQpBDmNmP+KY/w3FbPugnZUXHsqhpo3VNR6ZW TwNQGcY7d5ZFvk8OkKRKYROQqfnl1ii9q7p2m7C+IVPI8eB8zdzJSxP5cH6UBRsD7wfM r4wd+KQXP1eDWbT1S2JL1E6sjGp/IcwsIx97LrspBLQDNeiR0yGwjXGWSFISnBWWRHZC eungk3OS4hXsoDD3xoaC7hy7eg5MKVOyQo9uBcZpA2k+ZuyLZxDLfoWBPcfj9auZ1/gQ wuPg== X-Gm-Message-State: AOJu0Ywcm/Irx5MCirCtgTt/oK+H1DFZZp2sQoN0kN2r8Dr4ryUEDjNr 3rCt3dQKMwRL+QiACf9jaK8= X-Received: by 2002:a05:6a20:748f:b0:18f:97c:9769 with SMTP id p15-20020a056a20748f00b0018f097c9769mr8858642pzd.81.1702426090491; Tue, 12 Dec 2023 16:08:10 -0800 (PST) Received: from [10.67.48.245] ([192.19.223.252]) by smtp.googlemail.com with ESMTPSA id 12-20020a17090a198c00b00286d905535bsm10550220pji.0.2023.12.12.16.08.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 12 Dec 2023 16:08:09 -0800 (PST) Message-ID: <5ced5a7e-61f6-4132-bc21-c6034830221e@gmail.com> Date: Tue, 12 Dec 2023 16:08:05 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] net: mdio: mdio-bcm-unimac: Delay before first poll Content-Language: en-US To: Justin Chen , netdev@vger.kernel.org Cc: Doug Berger , Florian Fainelli , Broadcom internal kernel review list , Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , open list References: <20231213000249.2020835-1-justin.chen@broadcom.com> From: Florian Fainelli In-Reply-To: <20231213000249.2020835-1-justin.chen@broadcom.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Tue, 12 Dec 2023 16:08:56 -0800 (PST) On 12/12/23 16:02, Justin Chen wrote: > With a clock interval of 400 nsec and a 64 bit transactions (32 bit > preamble & 16 bit control & 16 bit data), it is reasonable to assume > the mdio transaction will take 25.6 usec. Add a 30 usec delay before > the first poll to reduce the chance of a 1000-2000 usec sleep. > > Reduce the timeout from 1000ms to 100ms as it is unlikely for the bus > to take this long. > > Signed-off-by: Justin Chen Acked-by: Florian Fainelli Thanks! -- Florian