From: Florian Fainelli Subject: Re: [PATCH net-next 2/3] net: dsa: b53: Stop using dev->cpu_port incorrectly Date: Thu, 9 Nov 2017 14:27:43 -0800 Message-ID: References: <20171109222606.2987-1-f.fainelli@gmail.com> <20171109222606.2987-3-f.fainelli@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: andrew@lunn.ch, vivien.didelot@savoirfairelinux.com To: netdev@vger.kernel.org, davem@davemloft.net Return-path: Received: from mail-qk0-f195.google.com ([209.85.220.195]:54491 "EHLO mail-qk0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751709AbdKIW1q (ORCPT ); Thu, 9 Nov 2017 17:27:46 -0500 Received: by mail-qk0-f195.google.com with SMTP id l69so3157529qkl.11 for ; Thu, 09 Nov 2017 14:27:46 -0800 (PST) In-Reply-To: <20171109222606.2987-3-f.fainelli@gmail.com> Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: On 11/09/2017 02:26 PM, 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 > --- > drivers/net/dsa/b53/b53_common.c | 11 ++++------- > 1 file changed, 4 insertions(+), 7 deletions(-) > > diff --git a/drivers/net/dsa/b53/b53_common.c b/drivers/net/dsa/b53/b53_common.c > index a7ca62ba27b7..5e48e98b6187 100644 > --- a/drivers/net/dsa/b53/b53_common.c > +++ b/drivers/net/dsa/b53/b53_common.c > @@ -325,7 +325,6 @@ static void b53_get_vlan_entry(struct b53_device *dev, u16 vid, > > static void b53_set_forwarding(struct b53_device *dev, int enable) > { > - struct dsa_switch *ds = dev->ds; > u8 mgmt; This hunk would break bisectability, let me respin something quickly with that corrected. -- Florian