Re: [U-Boot] [PATCH 5/8] net: tsec: Common handling of MAC station address for DM_ETH

2019-07-12 Thread Bin Meng
On Mon, Jun 24, 2019 at 1:50 AM Vladimir Oltean wrote: > > In tsec_init, the MAC address is retrieved from 2 different structures > depending on whether DM_ETH is enabled or not. > > But since the field name is the same inside both structures, we can > conditionally define the structure of the cor

Re: [U-Boot] [PATCH 5/8] net: tsec: Common handling of MAC station address for DM_ETH

2019-07-12 Thread Joe Hershberger
On Sun, Jun 23, 2019 at 12:52 PM Vladimir Oltean wrote: > > In tsec_init, the MAC address is retrieved from 2 different structures > depending on whether DM_ETH is enabled or not. > > But since the field name is the same inside both structures, we can > conditionally define the structure of the co

[U-Boot] [PATCH 5/8] net: tsec: Common handling of MAC station address for DM_ETH

2019-06-23 Thread Vladimir Oltean
In tsec_init, the MAC address is retrieved from 2 different structures depending on whether DM_ETH is enabled or not. But since the field name is the same inside both structures, we can conditionally define the structure of the correct type and simplify the assignments. Signed-off-by: Vladimir Ol