]> asedeno.scripts.mit.edu Git - linux.git/commit
sh_eth: get Ether port # only when needed
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Sun, 14 Jan 2018 17:47:44 +0000 (20:47 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Jan 2018 20:09:46 +0000 (15:09 -0500)
commit9662ec19229c89825acac1d62a9d78fb89f8dda5
treee70392bc439e7e364300a69972613636900e4c68
parent3e14c969a4ecdb4b4a05fb5c806d4f525fe56cff
sh_eth: get Ether port # only when needed

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)...

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/renesas/sh_eth.c