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 F2EC5C4727C for ; Tue, 29 Sep 2020 15:06:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9CD2F20773 for ; Tue, 29 Sep 2020 15:06:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731390AbgI2PGc (ORCPT ); Tue, 29 Sep 2020 11:06:32 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:33822 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725710AbgI2PGc (ORCPT ); Tue, 29 Sep 2020 11:06:32 -0400 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1kNHCw-00Gljc-7s; Tue, 29 Sep 2020 17:06:22 +0200 Date: Tue, 29 Sep 2020 17:06:22 +0200 From: Andrew Lunn To: Andy Shevchenko Cc: Calvin Johnson , Grant Likely , "Rafael J . Wysocki" , Jeremy Linton , Russell King - ARM Linux admin , Jon , Cristi Sovaiala , Ioana Ciornei , Florian Fainelli , Madalin Bucur , netdev , "linux.cj" , ACPI Devel Maling List , nd Subject: Re: [net-next PATCH v7 1/6] Documentation: ACPI: DSD: Document MDIO PHY Message-ID: <20200929150622.GK3950513@lunn.ch> References: <20200715090400.4733-1-calvin.johnson@oss.nxp.com> <20200715090400.4733-2-calvin.johnson@oss.nxp.com> <20200929051703.GA10849@lsv03152.swis.in-blr01.nxp.com> <20200929134302.GF3950513@lunn.ch> <20200929143239.GI3950513@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org > > Does it have a standardized way of > > saying a device is big endian, swap words around if appropriate when > > doing IO? > > I guess this is not applicable to ACPI. Does Linux have a standardized way? DT does. You add the property 'little-endian' to indicate you should do IO to the device using little endian. > So, what did you mean under doing I/O? I mean in which context? NXP can synthesise the MDIO controller either big endian, or little endian. So on some SoCs we need to tell the driver to talk to the hardware using big endian accesses. On other SoCs we need to tell the driver to talk to the hardware using little endian. Is there a standard way in ACPI to describe this? Andrew