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 12FE8C433F5 for ; Thu, 29 Sep 2022 14:12:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235550AbiI2OMO (ORCPT ); Thu, 29 Sep 2022 10:12:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56210 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235596AbiI2OMM (ORCPT ); Thu, 29 Sep 2022 10:12:12 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D4BC1684F2 for ; Thu, 29 Sep 2022 07:12:12 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id ACCBB61482 for ; Thu, 29 Sep 2022 14:12:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CF056C433C1; Thu, 29 Sep 2022 14:12:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1664460731; bh=nVQQMfndFpNhOEf3IU2aC4m3m852txkEqCypF8B9bm8=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Zixk6t5XcuXGy4+DNCm/9z4Z2RsSvGAaUA2DFUT9kJLL0s8aKBadoymg3rFrX5stD oIUSY/k6wqwUS6gYBTKQncEHPqNmbU9r+DVZLzd0kNCn96GoaxyW3nqH98QC+earx5 QZhThEV/oCmdTnMme2ZYTq14qpR54YkZIO9oKfg8eJeB0LURtC9E3FCYSWXU6ec9Gt NWn1eImwm6TZ+R0WmfNgaOfQVoO+nYz7g4HFfBvqNa1xxBRGljVqCraa2MhDlb7e8r 7svaYM4R3zZyC9gnS3RzGwEK4FY+xylZ/nKZfBaMpDQp6kGixPQcZ/b8A0TwXBZqC8 jmIN4JZrcaf0w== Date: Thu, 29 Sep 2022 07:12:09 -0700 From: Jakub Kicinski To: Andrew Lunn Cc: Jiri Pirko , Michael Walle , Heiner Kallweit , Russell King , netdev@vger.kernel.org Subject: Re: PHY firmware update method Message-ID: <20220929071209.77b9d6ce@kernel.org> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Thu, 29 Sep 2022 14:28:13 +0200 Andrew Lunn wrote: > If we want to make the PHY a component of an existing devlink for a > MAC, we somehow have to find that devlink instance. A PHY is probably > a property of a port, so we can call netdev_to_devlink_port(), which > gives us a way into devlink. > > However, the majority of MAC drivers don't have a devlink > instance. What do we do then? Have phylib create the devlink instance > for the MAC driver? That seems very wrong. > > Which is why i was thinking the PHY should have its own devlink > instance. Tricky stuff, how would you expose the topology of the system to the user? My initial direction would also be component. Although it may be weird if MAC has a way to flash "all" components in one go, and that did not flash the PHY :S Either way I don't think we can avoid MACs having a devlink instance because there needs to be some form of topology formed.