[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190510181631.GE11588@lunn.ch>
Date: Fri, 10 May 2019 20:16:31 +0200
From: Andrew Lunn <andrew@...n.ch>
To: Andy Duan <fugang.duan@....com>
Cc: "davem@...emloft.net" <davem@...emloft.net>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"ynezz@...e.cz" <ynezz@...e.cz>,
"john@...ozen.org" <john@...ozen.org>,
"bgolaszewski@...libre.com" <bgolaszewski@...libre.com>
Subject: Re: [PATCH net 1/3] net: ethernet: add property "nvmem_macaddr_swap"
to swap macaddr bytes order
On Fri, May 10, 2019 at 08:24:00AM +0000, Andy Duan wrote:
> ethernet controller driver call .of_get_mac_address() to get
> the mac address from devictree tree, if these properties are
> not present, then try to read from nvmem.
>
> For example, read MAC address from nvmem:
> of_get_mac_address()
> of_get_mac_addr_nvmem()
> nvmem_get_mac_address()
>
> i.MX6x/7D/8MQ/8MM platforms ethernet MAC address read from
> nvmem ocotp eFuses, but it requires to swap the six bytes
> order.
>
> The patch add optional property "nvmem_macaddr_swap" to swap
Please use nvmem-macaddr-swap. It is very unusal to use _ in property
names.
Andrew
Powered by blists - more mailing lists