Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp2546226pxb; Sun, 15 Nov 2020 08:34:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJyhyQSPeRRTAa9gJ1lhFH3q+2L+E+XQVjMkCC4RDuLvF6Rx+tKQ29OdIu4X0dfT2QlT1h52 X-Received: by 2002:a50:bc02:: with SMTP id j2mr12689547edh.317.1605458084262; Sun, 15 Nov 2020 08:34:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605458084; cv=none; d=google.com; s=arc-20160816; b=xiTpZHEuNMBTV10XLLEus+wXfpg3CZSq1yQEdpT58nT7UxRRWSZth/2pqCy2yO3Rut Ecp1vElIV70rvGafxEsk0TEiWkH+prPhM6al8rjCe2md7Ilmu7gKucXsUbX8INw3SeTW QpXyFrJAsM4SoMh9W+7ovj1ZWdONA4WUStM1Zx61OGCUA0pgy6JQEJmTnVi4YtjZmC2N ihIGGJsbdgzptKYsVfj/ALdBf6m3qhq6EyFMyxtvU5rBlY6lnxIksOplFHW+IdnBXDZe HuakuDBnSnp6f8WdigieAsh2K78TWtxOXXcXILWix9HQek67PM+2rCJcsBb7l2i5YeOo w2xA== 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; bh=5Et1WCNqftLOPrNkKG54Nqj7gj7uZ6aI7SAZppr9arA=; b=Cu3Ot1n6AE/JLT4FJJqnDucF1JyRyIeUJM8v1+A8K23xyOpJxBbSfW8sWlVexJBeVT 6LPb9Sf6VfkGeq3hOGG5C3gNLOagrswrPONY1nH2eX4aUCcOrZnUyoveK7zvOuMM4FE8 8TSLXaRqmKlDW8twqgHxG0NEDPVDCnm3S6P/9q2CoZzHW7YF7L/oKF3WMBfhAiw4x8rO d5E7QWagK6GNzm4ukPGICp5rtT/ioYwaemVbHGH9FPpvFSGz+QfOxzlS5WGVB1ZKCiLF ceSnX+ibDpiBvVCElhlK5VRFB5IYaiI3nCEICb8LLHiANQpDv1xHMKCiQ2kUlS8BHMAs 8IBQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c19si10671579ejk.311.2020.11.15.08.34.21; Sun, 15 Nov 2020 08:34:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727252AbgKOP6C (ORCPT + 99 others); Sun, 15 Nov 2020 10:58:02 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:56188 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727203AbgKOP6C (ORCPT ); Sun, 15 Nov 2020 10:58:02 -0500 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1keKPZ-007CHj-Gm; Sun, 15 Nov 2020 16:57:53 +0100 Date: Sun, 15 Nov 2020 16:57:53 +0100 From: Andrew Lunn To: Martin Blumenstingl Cc: hauke@hauke-m.de, netdev@vger.kernel.org, vivien.didelot@gmail.com, f.fainelli@gmail.com, olteanv@gmail.com, davem@davemloft.net, kuba@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] net: lantiq: Wait for the GPHY firmware to be ready Message-ID: <20201115155753.GC1701029@lunn.ch> References: <20201115100623.257293-1-martin.blumenstingl@googlemail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201115100623.257293-1-martin.blumenstingl@googlemail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Add a 300ms delay after initializing all GPHYs to ensure that the GPHY > firmware had enough time to initialize and to appear on the MDIO bus. > Unfortunately there is no (known) documentation on what the minimum time > to wait after releasing the reset on an internal PHY so play safe and > take the one for the external variant. Only wait after the last GPHY > firmware is loaded to not slow down the initialization too much ( > xRX200 has two GPHYs but newer SoCs have at least three GPHYs). Hi Martin Could this be moved into gswip_gphy_fw_list() where the actual firmware download happens? To me that seems like the more logical place. Otherwise Reviewed-by: Andrew Lunn Andrew