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 X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 70290C2D0A8 for ; Sun, 27 Sep 2020 01:03:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1E4FC23719 for ; Sun, 27 Sep 2020 01:03:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727369AbgI0BDD (ORCPT ); Sat, 26 Sep 2020 21:03:03 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:57574 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726311AbgI0BDD (ORCPT ); Sat, 26 Sep 2020 21:03:03 -0400 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1kML5g-00GKvL-5k; Sun, 27 Sep 2020 03:03:00 +0200 Date: Sun, 27 Sep 2020 03:03:00 +0200 From: Andrew Lunn To: Vladimir Oltean Cc: David Miller , netdev , Florian Fainelli , Vladimir Oltean , Jiri Pirko , Jakub Kicinski Subject: Re: [PATCH net-next v2 7/7] net: dsa: mv88e6xxx: Add per port devlink regions Message-ID: <20200927010300.GD3889809@lunn.ch> References: <20200926210632.3888886-1-andrew@lunn.ch> <20200926210632.3888886-8-andrew@lunn.ch> <20200926235246.sk6jmeqdrd5oivj4@skbuf> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200926235246.sk6jmeqdrd5oivj4@skbuf> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org > I was meaning to ask this since the global regions patchset, but I > forgot. > > Do we not expect to see, under the same circumstances, the same region > snapshot on a big endian and on a little endian system? We have never had any issues with endinness with MDIO. PHY/DSA drivers work with host endian. The MDIO bus controller does what it needs to do when shifting the bits out, as required by class 22 or 45. netlink in general assume host endian, as far as i know. So a big endian and a little endian snapshot are going to be different. Arnd did an interesting presentation for LPC. He basically shows that big endian is going away, with the exception of IBM big iron. I don't expect an IBM Z to have a DSA switch! Andrew