Re: [PATCH v2] of_net: Implement of_get_nvmem_mac_address helper

2018-03-26 Thread Andrew Lunn
> fwnode_get_mac_address looks really new, there's only one user so far. Is it > the intention that all drivers eventually migrate to that? Hi Mike Probably not. But any driver which needs to work with both ACPI and OF is likely to use this API. So server class ARM64 chips for example. Andrew

Re: [PATCH v2] of_net: Implement of_get_nvmem_mac_address helper

2018-03-26 Thread Mike Looijmans
On 26-03-18 17:50, Andrew Lunn wrote: On Mon, Mar 26, 2018 at 08:41:29AM +0200, Mike Looijmans wrote: It's common practice to store MAC addresses for network interfaces into nvmem devices. However the code to actually do this in the kernel lacks, so this patch adds of_get_nvmem_mac_address() for

Re: [PATCH v2] of_net: Implement of_get_nvmem_mac_address helper

2018-03-26 Thread Mike Looijmans
On 26-03-18 19:05, Florian Fainelli wrote: On 03/26/2018 09:58 AM, David Miller wrote: From: Mike Looijmans Date: Mon, 26 Mar 2018 08:41:29 +0200 It's common practice to store MAC addresses for network interfaces into nvmem devices. However the code to actually do this in the kernel lacks, so

Re: [PATCH v2] of_net: Implement of_get_nvmem_mac_address helper

2018-03-26 Thread Florian Fainelli
On 03/26/2018 09:58 AM, David Miller wrote: > From: Mike Looijmans > Date: Mon, 26 Mar 2018 08:41:29 +0200 > >> It's common practice to store MAC addresses for network interfaces into >> nvmem devices. However the code to actually do this in the kernel lacks, >> so this patch adds of_get_nvmem_ma

Re: [PATCH v2] of_net: Implement of_get_nvmem_mac_address helper

2018-03-26 Thread David Miller
From: Mike Looijmans Date: Mon, 26 Mar 2018 08:41:29 +0200 > It's common practice to store MAC addresses for network interfaces into > nvmem devices. However the code to actually do this in the kernel lacks, > so this patch adds of_get_nvmem_mac_address() for drivers to obtain the > address from

Re: [PATCH v2] of_net: Implement of_get_nvmem_mac_address helper

2018-03-26 Thread Andrew Lunn
On Mon, Mar 26, 2018 at 08:41:29AM +0200, Mike Looijmans wrote: > It's common practice to store MAC addresses for network interfaces into > nvmem devices. However the code to actually do this in the kernel lacks, > so this patch adds of_get_nvmem_mac_address() for drivers to obtain the > address fr

[PATCH v2] of_net: Implement of_get_nvmem_mac_address helper

2018-03-25 Thread Mike Looijmans
It's common practice to store MAC addresses for network interfaces into nvmem devices. However the code to actually do this in the kernel lacks, so this patch adds of_get_nvmem_mac_address() for drivers to obtain the address from an nvmem cell provider. This is particulary useful on devices where