[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <cea1eb6d-833f-c007-887c-7c1b70654692@gmail.com>
Date: Thu, 9 Nov 2017 14:27:43 -0800
From: Florian Fainelli <f.fainelli@...il.com>
To: netdev@...r.kernel.org, davem@...emloft.net
Cc: andrew@...n.ch, vivien.didelot@...oirfairelinux.com
Subject: Re: [PATCH net-next 2/3] net: dsa: b53: Stop using dev->cpu_port
incorrectly
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 <f.fainelli@...il.com>
> ---
> 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
Powered by blists - more mailing lists