Re: [PATCH 1/2] Add a matching set of device_ functions for determining mac/phy

2015-08-14 Thread Jeremy Linton
On 08/12/2015 05:13 PM, Florian Fainelli wrote: On 12/08/15 15:06, Jeremy Linton wrote: + +static void *device_get_mac_addr(struct device *dev, +const char *name, char *addr, +int alen) +{ + int ret = device_property_read_u8_a

Re: [PATCH 1/2] Add a matching set of device_ functions for determining mac/phy

2015-08-13 Thread Jeremy Linton
Hello Robin, On 08/13/2015 06:57 AM, Robin Murphy wrote: +static void *device_get_mac_addr(struct device *dev, +const char *name, char *addr, +int alen) +{ + int ret = device_property_read_u8_array(dev, name, addr, alen); + +

Re: [PATCH 1/2] Add a matching set of device_ functions for determining mac/phy

2015-08-13 Thread Robin Murphy
Hi Jeremy, On 12/08/15 23:06, Jeremy Linton wrote: [...] +static void *device_get_mac_addr(struct device *dev, +const char *name, char *addr, +int alen) +{ + int ret = device_property_read_u8_array(dev, name, addr, alen); + +

Re: [PATCH 1/2] Add a matching set of device_ functions for determining mac/phy

2015-08-12 Thread Florian Fainelli
On 12/08/15 15:06, Jeremy Linton wrote: > OF has some helper functions for parsing MAC and PHY settings. > In cases where the platform is providing this information rather > than the device itself, there needs to be similar functions for ACPI. > > These functions are slightly modified versions of

[PATCH 1/2] Add a matching set of device_ functions for determining mac/phy

2015-08-12 Thread Jeremy Linton
OF has some helper functions for parsing MAC and PHY settings. In cases where the platform is providing this information rather than the device itself, there needs to be similar functions for ACPI. These functions are slightly modified versions of the ones in of_net which can use information provi