Re: [PATCH 2/2] sh_eth: get Ether port # only when needed

2018-01-15 Thread Geert Uytterhoeven
On Sun, Jan 14, 2018 at 6:47 PM, Sergei Shtylyov wrote: > The dual-port Ether configurations always have a shared TSU to e.g. pass > the packets between those ports. With the TSU init. code gathered under > the single *if*, we now can only get the port #

[PATCH 2/2] sh_eth: get Ether port # only when needed

2018-01-14 Thread Sergei Shtylyov
The dual-port Ether configurations always have a shared TSU to e.g. pass the packets between those ports. With the TSU init. code gathered under the single *if*, we now can only get the port # from 'platform_device::id' only when we actually need it (and not recalculate it each time)...