From mboxrd@z Thu Jan 1 00:00:00 1970 From: Geert Uytterhoeven Subject: Re: [PATCH 2/2] sh_eth: get Ether port # only when needed Date: Mon, 15 Jan 2018 09:12:48 +0100 Message-ID: References: <20180114175203.191929089@cogentembedded.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Cc: netdev , Linux-Renesas , Linux-sh list To: Sergei Shtylyov Return-path: Received: from mail-qt0-f196.google.com ([209.85.216.196]:43234 "EHLO mail-qt0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753838AbeAOIMt (ORCPT ); Mon, 15 Jan 2018 03:12:49 -0500 In-Reply-To: <20180114175203.191929089@cogentembedded.com> Sender: netdev-owner@vger.kernel.org List-ID: 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 # from 'platform_device::id' > only when we actually need it (and not recalculate it each time)... > > Signed-off-by: Sergei Shtylyov Reviewed-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert