Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3693135ybv; Mon, 10 Feb 2020 04:49:51 -0800 (PST) X-Google-Smtp-Source: APXvYqzVnQVPJgCVROrGx8zrHTOHGbpwvW49E+oqzLdlLYIFMj0VobWRRf2Cik1Mxb/dv5V38+bF X-Received: by 2002:aca:4d06:: with SMTP id a6mr719561oib.27.1581338991031; Mon, 10 Feb 2020 04:49:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581338991; cv=none; d=google.com; s=arc-20160816; b=kc3nn+rPXc0Wp5hAcce1GEy8lNmvXr8iVEL6gzTyCu8TkzF2is6adbi6amMZiGDZNV vHWxfLBi8dMLxXe6I2BpJIAHGqrhjYJm3eCK9yOMtogF4EV3Wb2u8dRNHR8t5V0j4K8i uIomGyQ4iaAm5KhrSfAIc0VUtK+j0x5zlgDfUB+72JXGCbFVTSgm4L1gyebSXiKWzj1x siIm2Z3rDf5+JJ31TnxzdbnpevRl4XITVPenUCZiiBlOsZGFtndF1knKqXiIplEd4etu /HzB/hriam+bdPQU3WPpE5PupXeM0i25+Vtm+cy8DKZKOX2AWeEPYIrwN9OODVBzb7pO PnIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=KFPJE4RqHboIBqK//G67Pq/iwQj2AICWtjNVD69KLgs=; b=M/LkY083aZKBIJei90k0akmpgHKNZg3P4Z6QCkiWAic9GbtuV+ExJJDaHfBVIAuEnE P4pWfAsfM6MBXgOmfV4dD0GUsifJRbhDcg8cOsTQVhIMu4VLkM4VLbIV+H71bUgNEBsX wpg3eynoTmtAv+10pLNo1Z316L/1FUNvYK4ajH8kgR4IBj+WN7YL0KiynKArFjodUavJ 7dPE0Bdi8pCKvAzi7klZecJGgvIsWybN0avZNMPtqMz1cCxc0z9WbUZXqbZVwG/P57fl PAFf3uimGbs9mMku4GelvgYrpCJ9kE0SW53GQrjs+255SLtn4AHDG8xecBEEp2iCWowq TlWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=aghBVY2n; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n25si120878oij.175.2020.02.10.04.49.39; Mon, 10 Feb 2020 04:49:51 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=aghBVY2n; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730426AbgBJMqy (ORCPT + 99 others); Mon, 10 Feb 2020 07:46:54 -0500 Received: from mail.kernel.org ([198.145.29.99]:44986 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729821AbgBJMlx (ORCPT ); Mon, 10 Feb 2020 07:41:53 -0500 Received: from localhost (unknown [209.37.97.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5F6202085B; Mon, 10 Feb 2020 12:41:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581338513; bh=QLp1kilJwM9rYN1UD+VjRxyJRyHTKObrmrGVxgyj8pU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aghBVY2nza8qfKLxP9lKdUfQFFxY2iMHV+WSlQvVPZsVLKk5c1u/CCchJdf4Uw6ow Ly5Ikd7MdZ9yIQWKqeV6XxRSetAvf00r/BEkaUro1PyuMRQinBfqswzGMRalCVbXNJ aOEIzRcgDWppzaCDxiY3vJislhERwOyVic+jlAOc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Florian Fainelli , "David S. Miller" Subject: [PATCH 5.5 319/367] net: dsa: b53: Always use dev->vlan_enabled in b53_configure_vlan() Date: Mon, 10 Feb 2020 04:33:52 -0800 Message-Id: <20200210122452.539223743@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200210122423.695146547@linuxfoundation.org> References: <20200210122423.695146547@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Florian Fainelli [ Upstream commit df373702bc0f8f2d83980ea441e71639fc1efcf8 ] b53_configure_vlan() is called by the bcm_sf2 driver upon setup and indirectly through resume as well. During the initial setup, we are guaranteed that dev->vlan_enabled is false, so there is no change in behavior, however during suspend, we may have enabled VLANs before, so we do want to restore that setting. Fixes: dad8d7c6452b ("net: dsa: b53: Properly account for VLAN filtering") Fixes: 967dd82ffc52 ("net: dsa: b53: Add support for Broadcom RoboSwitch") Signed-off-by: Florian Fainelli Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/dsa/b53/b53_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/net/dsa/b53/b53_common.c +++ b/drivers/net/dsa/b53/b53_common.c @@ -680,7 +680,7 @@ int b53_configure_vlan(struct dsa_switch b53_do_vlan_op(dev, VTA_CMD_CLEAR); } - b53_enable_vlan(dev, false, ds->vlan_filtering); + b53_enable_vlan(dev, dev->vlan_enabled, ds->vlan_filtering); b53_for_each_port(dev, i) b53_write16(dev, B53_VLAN_PAGE,