Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4444425ybg; Tue, 29 Oct 2019 07:16:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqzmCCGTSW+TzSUOrsVIZU8t6gGp0MzQNRVtLQME5UzrioWqR5L0QwNbPz+cTZwk7aIXQFEx X-Received: by 2002:aa7:d552:: with SMTP id u18mr26044505edr.86.1572358601066; Tue, 29 Oct 2019 07:16:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572358601; cv=none; d=google.com; s=arc-20160816; b=wBpcQiLcy8pUk4gO24c12J7QQUg0OzXT5FOSBtbExJ6P2jPW9PRhTaJlxmf8o3Wy6U l9UF/mPoyRhqabmwqANcmpplCSPALmVhIc/93lSzQEAemtUUOYB3QcqDps8hA1loSI8B vTXHBxvvOIT23T0YkLd8GZLFHOpYcwMVS2AkrXGnxXz33nQ8z9E7ys/ThDBnpznxKfjc Wx7+rLnRxAbw3p+XsYlhN+4M8X1cMQQRD94L8XJpdBCo1JLPQAiFZhMeoqHpMyR5LtCW ph1qVWsIyDgyde+oz77Tc/hZjiEKKmPrY87gY3dQxMthll4rOSHOAOwW4xPk9CC/7rAy Pq0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=6zu96O6nW8G+BQtgil5/02CqVD3AHOFR6gyIA+He8Uk=; b=Zq3YPyua4vjir4pkxf0Je3wCpiUTiPw1Jigv6l3d/GnG927E9sfzHC9Gk49p/LJhPR IbsetZZKgCTwHpsoRP5W41APn9F2e+lrih3aieKjgdJs7ia62EkN4BjcFD2LWa86xVg7 F9Key6e27R/GfizZ3r2owm2/OLZh1cvzqhFbltOgrXV4kIBc/2aXvRQFLAykqPvxhyxi NLdVUwfK4Xx1lyp4L7CMIICLJvrurPpPgEmu7jzeR9BshMwgTOjMOObOYnxMl4B89VaD xAFZdYDoeXmSIsVKBwZ/3+lJfebqLW7SxdeoP/iUB2sBvHw3R20RUH217J6PwF/f0aAx Dwjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=iNG18Otb; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f27si8488060ejb.310.2019.10.29.07.16.17; Tue, 29 Oct 2019 07:16:41 -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=@synopsys.com header.s=mail header.b=iNG18Otb; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389270AbfJ2OP3 (ORCPT + 99 others); Tue, 29 Oct 2019 10:15:29 -0400 Received: from us03-smtprelay2.synopsys.com ([149.117.87.133]:53394 "EHLO smtprelay-out1.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389207AbfJ2OPU (ORCPT ); Tue, 29 Oct 2019 10:15:20 -0400 Received: from mailhost.synopsys.com (mdc-mailhost2.synopsys.com [10.225.0.210]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by smtprelay-out1.synopsys.com (Postfix) with ESMTPS id 3731FC04BB; Tue, 29 Oct 2019 14:15:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1572358520; bh=nGvMdw6v8QDeKK9JnNRRIrf2w9HChn1Wdr+DNEOBHYA=; h=From:To:Cc:Subject:Date:From; b=iNG18OtbHULWKiWvg4ptyuJZJ/uwepsJ4ZxfBLvqzEPhb6abo/kHUWLbhYAev+oYm mAsJiltcGBwyFA0hqWlhQ9D7f1WoSnonrGO1w604iQQEH9JFOrkj2SAveDuU6AVn+m a07foVBen1Qu8Ie+fjtuv0utJN9SvCUbfryp5dlPfOg4p+8gl37g3WYUY++x8FDpWc wuGaWTo7OO1LzTcG+M0TA6XBfnZ0TZDOWq9dY6zKG6w4BXhkekfjCgJLD5KyPb/IJH a4MRmhkwRsbWhKktXJ1/X4g5m3B0MFTyn50B91Gf5oqfL+2YrLcTZlR9WMdf7+bCMZ LSqW4UXNqJx1A== Received: from de02dwia024.internal.synopsys.com (de02dwia024.internal.synopsys.com [10.225.19.81]) by mailhost.synopsys.com (Postfix) with ESMTP id BA0ECA0057; Tue, 29 Oct 2019 14:15:08 +0000 (UTC) From: Jose Abreu To: netdev@vger.kernel.org Cc: Joao Pinto , Jose Abreu , Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , "David S. Miller" , Maxime Coquelin , linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH net 0/9] net: stmmac: Fixes for -net Date: Tue, 29 Oct 2019 15:14:44 +0100 Message-Id: X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Misc fixes for stmmac. Patch 1/9, corrects a sparse warning reported by kbuild. Patch 2/9 and 3/9, use the correct variable type for bitrev32() calls. Patch 4/9, fixes the random failures the we were seing when running selftests. Patch 5/9, prevents a crash that can occur when receiving AVB packets and with SPH feature enabled on XGMAC. Patch 6/9, fixes the correct settings for CBS on XGMAC. Patch 7/9, corrects the interpretation of AVB feature on XGMAC. Patch 8/9, disables Flow Control for AVB enabled queues on XGMAC. Patch 9/9, disables MMC interrupts on XGMAC, preventing a storm of interrupts. --- Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Jose Abreu Cc: "David S. Miller" Cc: Maxime Coquelin Cc: netdev@vger.kernel.org Cc: linux-stm32@st-md-mailman.stormreply.com Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org --- Jose Abreu (9): net: stmmac: Fix sparse warning net: stmmac: gmac4: bitrev32 returns u32 net: stmmac: xgmac: bitrev32 returns u32 net: stmmac: selftests: Must remove UC/MC addresses to prevent false positives net: stmmac: xgmac: Only get SPH header len if available net: stmmac: xgmac: Fix TSA selection net: stmmac: xgmac: Fix AV Feature detection net: stmmac: xgmac: Disable Flow Control when 1 or more queues are in AV net: stmmac: xgmac: Disable MMC interrupts by default drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c | 4 +- .../net/ethernet/stmicro/stmmac/dwxgmac2_core.c | 5 +- .../net/ethernet/stmicro/stmmac/dwxgmac2_descs.c | 3 +- drivers/net/ethernet/stmicro/stmmac/dwxgmac2_dma.c | 4 +- drivers/net/ethernet/stmicro/stmmac/hwif.h | 2 +- drivers/net/ethernet/stmicro/stmmac/mmc_core.c | 6 +- drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 5 +- .../net/ethernet/stmicro/stmmac/stmmac_selftests.c | 104 +++++++++++++++------ 8 files changed, 94 insertions(+), 39 deletions(-) -- 2.7.4