Re: [net-next PATCH v7 1/6] Documentation: ACPI: DSD: Document MDIO PHY
From: Andrew Lunn <andrew@lunn.ch>
Date: 2020-09-29 15:06:33
Also in:
linux-acpi
From: Andrew Lunn <andrew@lunn.ch>
Date: 2020-09-29 15:06:33
Also in:
linux-acpi
quoted
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