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 AA318C433FE for ; Tue, 8 Nov 2022 13:37:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232896AbiKHNhE (ORCPT ); Tue, 8 Nov 2022 08:37:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232693AbiKHNhE (ORCPT ); Tue, 8 Nov 2022 08:37:04 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9013012AA3 for ; Tue, 8 Nov 2022 05:37:03 -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=hkqgs8tXew55CcjbQ4pxmXbRvq+I6kAtErrhQFXPGLY=; b=s4movJtUINmBfkOzQStWjaqtJz MXw2ijw9xbKN4p5u8A7YAoEh7JklQ1kmmDsujFR1S8wiy+fs2glkJa1j42WM5dUGFdm1CzN/hNH58 5cbfnZH2M6r/1HuNtXwflXLNDwvCyq8PBcC7SoEMCjKj5pRda8jtDS4FZgprQGcyPg5Y=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1osOmZ-001p3X-US; Tue, 08 Nov 2022 14:36:51 +0100 Date: Tue, 8 Nov 2022 14:36:51 +0100 From: Andrew Lunn To: Vladimir Oltean Cc: Lukasz Majewski , Vivien Didelot , Florian Fainelli , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, Matthias Schiffer Subject: Re: [PATCH 3/9] net: dsa: mv88e6xxx: implement get_phy_address Message-ID: References: <20221108082330.2086671-1-lukma@denx.de> <20221108082330.2086671-4-lukma@denx.de> <20221108091220.zpxsduscpvgr3zna@skbuf> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221108091220.zpxsduscpvgr3zna@skbuf> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org > Would it be possible to do like armada-3720-turris-mox.dts does, and put > the phy-handle in the device tree, avoiding the need for so many PHY > address translation quirks? > > If you're going to have U-Boot support for this switch as well, the > phy-handle mechanism is the only thing that U-Boot supports, so device > trees written in this way will work for both (and can be passed by > U-Boot to Linux): This is how i expect any board using the MV88E6141 and MV88E6341 work. It has the same issue that it is not a 1:1 mapping. Portability with U-boot is an interesting argument. Maybe there are patches to u-boot to add the same sort of quirks? Andrew