Re: [U-Boot] [PATCH v2 1/5] net: expose eth_is_active() function to test network device state

2015-08-26 Thread Joe Hershberger
Hi Bernhard, On Wed, Aug 26, 2015 at 7:35 AM, Bernhard Nortmann bernhard.nortm...@web.de wrote: The previous eth_device struct returned by eth_get_dev() allowed code to directly query the state member field. However, with CONFIG_DM_ETH this data gets encapsulated (i.e. private), and

[U-Boot] [PATCH v2 1/5] net: expose eth_is_active() function to test network device state

2015-08-26 Thread Bernhard Nortmann
The previous eth_device struct returned by eth_get_dev() allowed code to directly query the state member field. However, with CONFIG_DM_ETH this data gets encapsulated (i.e. private), and eth_get_dev() returns a udevice struct 'abstraction' instead. This breaks legacy code relying on the former