Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp838510ybi; Fri, 12 Jul 2019 05:30:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqy2NV+PNjNbPWwC1WtMjhuJLayosnsnb4ctkxnrvxQOhVaWrFUe4Xwbu3gcx2E1+prusXSz X-Received: by 2002:a17:90a:2446:: with SMTP id h64mr12046358pje.0.1562934605801; Fri, 12 Jul 2019 05:30:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562934605; cv=none; d=google.com; s=arc-20160816; b=fVkoM9dqNRfeiBkcwjxbUC6xstnq0o8hY1mco6en4R6olZIcYAVJpPFAZwnEDrljow ue0KH8ml84jd4deHy2u5M2sXVQXy4Zl6AD6XAtJyuaiTbqe8aDaGt9mFKNWjZ8CejSd9 c+QLDAaoQlR62WMy4d5kV/j2RElyVbav+VQ/6L5RNoUyHXbiXWkeX1yj2UeMowf4U8t/ hGdnJqQMlHyy/WmwXRf2YPV/pABE/o6YQtaNOTEHEu4z7GqsFcnucssAeLbtwPObcUJz iyIUgz+NhSNpj9W+Kvb8+d6Sy3v4RWJaGzTHBtaPVjApp0LbJrouIDANgEapCTTvbmUv VtZQ== 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=700naDn2w7Sq0mBuPndkhJ1gpJbeb8aB2YuSeX9+xQk=; b=cAX3Cc30IeS+kyGkSBeCCZkjz8bembLSdfMah+/7LUdso7QIvlaxG7OA1/l+bHzf16 D+u+yV3MGPr7k/0mP/tLtWl+mRwJJ3CeGcApueVftiKUDpqTF8WN45qbrUOEIBfSBQoY Rz5pHsFykVYRB2j8/MX+PmNHxDjvhfMp0VAyqbXnnav+Dba2yhi+cCmughqbqraeXfgY LpeeOv+TIvorZGUxIEpVGcpyg74wfkqkak2spIq66XMeAObbrXUHwgIffPcESx3h3Ha8 l7h1H3743TWQ92HiWDJ5zAvMRFg9OzXNpYo+pG9cOSNuubpPXV+UkOrZ7MnMMzTuaOss bBYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=vkWaWozr; 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 x190si2074426pgd.146.2019.07.12.05.29.50; Fri, 12 Jul 2019 05:30:05 -0700 (PDT) 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=vkWaWozr; 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 S1728502AbfGLM2u (ORCPT + 99 others); Fri, 12 Jul 2019 08:28:50 -0400 Received: from mail.kernel.org ([198.145.29.99]:43072 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728327AbfGLM2q (ORCPT ); Fri, 12 Jul 2019 08:28:46 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 E0044216C4; Fri, 12 Jul 2019 12:28:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1562934525; bh=hOKXLOrtNFOb/GmQlkG2DFICOr/oDnmKtqy0JV8Jau8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vkWaWozrLs7BZhiS3cmHEe/uAYvBacXHlbErbTpdZiYC8gLaTJSe/6rubrVXncXsl d0R4yioNrYOtyk/7hc+x9hW4PJ5zEi2TjzDBFH9+ofwSqV7ivmpr0uOoFFQktID6P+ FFk6QwZv185afbx08kRl7FbSzz2hChvK9ftq/oJo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Rasmus Villemoes , "David S. Miller" , Sasha Levin Subject: [PATCH 5.1 085/138] net: dsa: mv88e6xxx: fix shift of FID bits in mv88e6185_g1_vtu_loadpurge() Date: Fri, 12 Jul 2019 14:19:09 +0200 Message-Id: <20190712121632.001665758@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190712121628.731888964@linuxfoundation.org> References: <20190712121628.731888964@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 [ Upstream commit 48620e341659f6e4b978ec229f6944dabe6df709 ] The comment is correct, but the code ends up moving the bits four places too far, into the VTUOp field. Fixes: 11ea809f1a74 (net: dsa: mv88e6xxx: support 256 databases) Signed-off-by: Rasmus Villemoes Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/dsa/mv88e6xxx/global1_vtu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/dsa/mv88e6xxx/global1_vtu.c b/drivers/net/dsa/mv88e6xxx/global1_vtu.c index 058326924f3e..7a6667e0b9f9 100644 --- a/drivers/net/dsa/mv88e6xxx/global1_vtu.c +++ b/drivers/net/dsa/mv88e6xxx/global1_vtu.c @@ -419,7 +419,7 @@ int mv88e6185_g1_vtu_loadpurge(struct mv88e6xxx_chip *chip, * VTU DBNum[7:4] are located in VTU Operation 11:8 */ op |= entry->fid & 0x000f; - op |= (entry->fid & 0x00f0) << 8; + op |= (entry->fid & 0x00f0) << 4; } return mv88e6xxx_g1_vtu_op(chip, op); -- 2.20.1