From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Lunn Subject: Re: [PATCH net-next v3 2/3] net: dsa: b53: Stop using dev->cpu_port incorrectly Date: Fri, 10 Nov 2017 21:34:33 +0100 Message-ID: <20171110203433.GC30830@lunn.ch> References: <20171110193327.25070-1-f.fainelli@gmail.com> <20171110193327.25070-3-f.fainelli@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: netdev@vger.kernel.org, davem@davemloft.net, vivien.didelot@savoirfairelinux.com To: Florian Fainelli Return-path: Received: from vps0.lunn.ch ([185.16.172.187]:52349 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753271AbdKJUef (ORCPT ); Fri, 10 Nov 2017 15:34:35 -0500 Content-Disposition: inline In-Reply-To: <20171110193327.25070-3-f.fainelli@gmail.com> Sender: netdev-owner@vger.kernel.org List-ID: On Fri, Nov 10, 2017 at 11:33:26AM -0800, Florian Fainelli wrote: > dev->cpu_port is the driver local information that should only be used > to look up register offsets for a particular port, when they differ > (e.g: IMP port override), but it should certainly not be used in place > of the DSA configured CPU port. > > Since the DSA switch layer calls port_vlan_{add,del}() on the CPU port > as well, we can remove the specific setting of the CPU port within > port_vlan_{add,del}. > > Fixes: ff39c2d68679 ("net: dsa: b53: Add bridge support") > Fixes: 967dd82ffc52 ("net: dsa: b53: Add support for Broadcom RoboSwitch") > Signed-off-by: Florian Fainelli Reviewed-by: Andrew Lunn Andrew