From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id ACF80C54E94 for ; Tue, 24 Jan 2023 20:42:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229584AbjAXUmh (ORCPT ); Tue, 24 Jan 2023 15:42:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229534AbjAXUmg (ORCPT ); Tue, 24 Jan 2023 15:42:36 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 789EB4CE6B for ; Tue, 24 Jan 2023 12:42:34 -0800 (PST) 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=nJAt4cmvoc2E8mt+JMyXT9a/0LJRn7UxQz6VMh1Qwlk=; b=UT+gS42NtUjTS88VkCyWQSP5Nm FUSY2z3t88zYTSMmektowl0MapMWwUgGh5WB+kS2QcHhULLQ3TnIeU8FBhDfn1QWlwashl2mRmk+X dP4fCdKFhtQLjC7Pfu/l28RUGnTBeVDxPLEnPax9FWGRfaqtRR7N13uiGQ/2YYSSpvYw=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1pKQ7a-0033Bh-5c; Tue, 24 Jan 2023 21:42:22 +0100 Date: Tue, 24 Jan 2023 21:42:22 +0100 From: Andrew Lunn To: Michael Walle Cc: Jiri Pirko , Jakub Kicinski , Heiner Kallweit , Russell King , netdev@vger.kernel.org, Keller Jacob E Subject: Re: PHY firmware update method Message-ID: References: <20220929071209.77b9d6ce@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org > So if you'd do this during the PHY probe, it might try to update the > firmware on every boot and fail. Would that be acceptable? Do you have a feeling how long that takes? Also, is it possible to put the firmware into RAM and run it from there, rather than put it into the EEPROM? > How long could can a firmware update during probe run? Do we need > to do it in the background with the PHY being offline. Sounds like > not something we want. One device being slow to probe will slow down the probe of that bus. But probe of other busses should be unaffected. I _guess_ it might have a global affect on EPROBE_DEFER, the next cycle could be delayed? Probably a question for GregKH, or reading the code. If it going to be really slow, then i would suggest making use of devlink and it being a user initiated operation. Andrew