Re: [PATCH v2 1/4] of_net: Add NVMEM support to of_get_mac_address

2019-05-08 Thread Petr Štetiar
Rob Herring [2019-05-07 11:06:43]: Hi, > > Honestly I don't know if it's necessary to have it, but so far address, > > mac-address and local-mac-address properties provide this DT nodes, so I've > > simply thought, that it would be good to have it for MAC address from NVMEM > > as > > well in o

Re: [PATCH v2 1/4] of_net: Add NVMEM support to of_get_mac_address

2019-05-02 Thread Petr Štetiar
Rob Herring [2019-05-01 15:19:25]: Hi Rob, > > + struct property *pp; ... > > + pp = kzalloc(sizeof(*pp), GFP_KERNEL); > > + if (!pp) > > + return NULL; > > + > > + pp->name = "nvmem-mac-address"; > > + pp->length = ETH_ALEN; > > + pp->value = kmemdup(mac, ETH_ALEN, GFP_K