From patchwork Thu Nov 7 06:36:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ley Foon Tan X-Patchwork-Id: 13865891 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 26434D5AE6B for ; Thu, 7 Nov 2024 06:39:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Content-Type: Content-Transfer-Encoding:Message-ID:Date:Subject:Cc:To:From:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=2+DSId5tgjrYNGj0oXSE9OIEN3QQ/X1J3SEAnuRbync=; b=kuWDMQsvyFH90waWNNzmVFrGYc n+Cu/x87vCdrkM2Vmiln7Umtc0TQa0FBzpGGx9PVdTQypezuvmE/ujMVTn2XvtU3I9imKLUQYrflK 3z3v9iOnjIZ4X1PQB3BmmAzCJRIqO9BFmdgB1NK/GUE42TZsEfcWkKctQOezh5hntkWkm5xpz4dJU QuBmWXBfY+/4hCzIAchcmhP5BjyQ3NCSAQihVfDT3hqSwQMNxd4Z1qNXOAycMwa/ydGQj6GHkPzvr rbcPwy9ZV9lq8TkeDgC5NTYCTQ9P6TUNCaHvnm2rkJDr2OXd1ffB++A5TEbUnxRbAk38BBunW0kwD KQ/OHUpg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t8wAL-00000005rlf-2Z0b; Thu, 07 Nov 2024 06:38:49 +0000 Received: from mail-bjschn02on2070f.outbound.protection.partner.outlook.cn ([2406:e500:4440:2::70f] helo=CHN02-BJS-obe.outbound.protection.partner.outlook.cn) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t8w8Y-00000005rIa-2ybT for linux-arm-kernel@lists.infradead.org; Thu, 07 Nov 2024 06:37:01 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hRdCICiVTUs2FSW1RM/+oeNzt3bMYf/p3x9GWkF5PsEK45yzBhy28isVC72oSpcb01bJSrZna4QsO2cx06dvflplKid96lIxpS+tjameJ3d3QKX1ywVRJtjF5D+PlxocP7WQjYsWWoeU8d8GGFPPs6MSgIeroLQC91tbYN+u6qDjFUcAz6e5Ad5xeOVeyiVbW/3My2PEt2hFaLf7+zTUCXX4vVked/kQq90ngNwpcz03f7DYFQY41UIljre1i9XNpkIWINDyPYremo/iGQYNEqAyo3lf0x9Xz2k1RTkBdaUAJl2xVORAEMVUplQxUPOu82P1ysSH88bKTXYI3rryjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=2+DSId5tgjrYNGj0oXSE9OIEN3QQ/X1J3SEAnuRbync=; b=Ct5ZdRdxCBa0a5uu1bngI9mBLyq4jJmow1HO2zr1gfP9hmMhm19TBt2Es/4tTetsD8FsK8fRUpYIcs22gqgcpljRMBsIc5/rQEnp9XILqZFFrnOstkdMUZQ714/0Vgmf7ZvZ80F0pSAVLbGc/DlNA/5xqXWVb/UcPvA6hIKBZdhEjzpeP6c+eTea0NfVBbZR4DFpxtf9nw1YbgykWNTv6uSvtPcNZ+/pdZyd4Mlpuo++ukN+nG/Q4GevH3I+vqELFaOcaKVvfcp7ejIwN+YcdpCRnSW4XmrjLcP2+/F3Lpe4xm08KdHWVDkBSmIP1NhprxCvuHjM9lM1Wo4CtTEdeg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=starfivetech.com; dmarc=pass action=none header.from=starfivetech.com; dkim=pass header.d=starfivetech.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=starfivetech.com; Received: from ZQZPR01MB0979.CHNPR01.prod.partner.outlook.cn (2406:e500:c550:f::12) by ZQZPR01MB0963.CHNPR01.prod.partner.outlook.cn (2406:e500:c550:f::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8114.26; Thu, 7 Nov 2024 06:37:03 +0000 Received: from ZQZPR01MB0979.CHNPR01.prod.partner.outlook.cn ([fe80::617c:34a2:c5bf:8095]) by ZQZPR01MB0979.CHNPR01.prod.partner.outlook.cn ([fe80::617c:34a2:c5bf:8095%5]) with mapi id 15.20.8114.023; Thu, 7 Nov 2024 06:37:03 +0000 From: Ley Foon Tan To: Alexandre Torgue , Jose Abreu , Andrew Lunn Cc: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin , netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, lftan.linux@gmail.com, leyfoon.tan@starfivetech.com Subject: [PATCH net-next v3 0/3] net: stmmac: dwmac4: Fixes issues in dwmac4 Date: Thu, 7 Nov 2024 14:36:33 +0800 Message-ID: <20241107063637.2122726-1-leyfoon.tan@starfivetech.com> X-Mailer: git-send-email 2.46.0 X-ClientProxiedBy: NT0PR01CA0034.CHNPR01.prod.partner.outlook.cn (2406:e500:c510:c::11) To ZQZPR01MB0979.CHNPR01.prod.partner.outlook.cn (2406:e500:c550:f::12) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: ZQZPR01MB0979:EE_|ZQZPR01MB0963:EE_ X-MS-Office365-Filtering-Correlation-Id: b111c088-61a4-4ab5-fea3-08dcfef696fa X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|1800799024|52116014|7416014|41320700013|38350700014; X-Microsoft-Antispam-Message-Info: SWXKjiJE0ljF8HoNqygNsJ4DBpcAfeLxNTzp6jwOVCZ66FIMMvmFqvaKL29dlUH8xhqoa+tGBEzXnFMilzCQEA+oaMeBzQYE5fv5RO/JlIRwi/FLabIln4fBN/i6IrudctdQfr1m/auTHKgzFDU9GHADyPpsuSnFkwtremMQEku4001nXRKAgPXVdZ1bHM1dFMmtZQwj0BozEsvLUZjqeDvT+9eK3VVuwzNK0GAfcZhJDfXsA6dDTv9NGSs2VptLgwA0Ex5mAiwkstxgiAlW8uDwWxmFzhEUBB8S5dktcQgs9BSBGyTAdmlbgouZtdWIXu249NYXckpvRTqh+m/NFc+S/bbWRcKaJ7k83rn4xa8pDm7oYXyS/g6JmcsXJvXsTARIg8EBCwk1JxNOvxgt3oBaCurgkMrqeqAG/VReTw2ZM7mJyBOt7PJZAU5KVfIMqE4XwuLSenFaNptu9tRtvRtOxUn9yaZIUfS40zIftPGLaDZI3valTPec7fWn7UQByNyYSlkc7SA7KcNSubJJ1nnsWdlU9dclJ5UldMlA9HDAm+pbptwnMVgrsi3psrb7BhUo5PqhdWC5ft6rxz79jXPfKHtM12bE8e0BeuWxqop4Sf2SstcCI/zVtw9xA3lm X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:ZQZPR01MB0979.CHNPR01.prod.partner.outlook.cn;PTR:;CAT:NONE;SFS:(13230040)(366016)(1800799024)(52116014)(7416014)(41320700013)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-Anti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5R4b3UQZZqU88PwhX0GThiLChxFxB5FeDsHb0GoPxPExxf/cMolhH0OAT4IwJJT8Egsri/bROw9FEOsOhqPonaQ6O0Fx7Te7LGeK8FrGN6aLeW7qBfPKkt93kadM/ocbo4LmGEC+vk8RuFCG793NuG7CVdZSreDZj2Lb5r/WUmEMtNF+6HbaMGGe3fmq2ZjQN/+CtwpXy2KV89sYHWAsHg04KfBjYeS8WU8q7oFClqk7ZP2/Ii5WG7UE9V+SPwjnXYwsZe82njIBl9Y9NKFkKHoMLkrlP2v7M3btKUG/nRMuC+zuVF67/SxoRTl8XpxsD458CWzpIQ0bNL6d2azt8jyh1PA3xi2JoDmjxtj1Q3SI8dMViu+MD7sK2eNUddOR3ZIRv9XpjcS0tS+GKIx96PL9ub3h93mm3R3JhAwseQA9v6spBZ6BvFtQXwhjOyFg4fP8WfDovBoAdwZeJD52vBXIkRQlkU93cy/S9wbM7a71uDyRE1m8C9QC5FMV7SpKx7+ta0MF3yKUnZ8D55Ti38Ey+Qkm3RniF4Qq8F+TjQ== X-OriginatorOrg: starfivetech.com X-MS-Exchange-CrossTenant-Network-Message-Id: b111c088-61a4-4ab5-fea3-08dcfef696fa X-MS-Exchange-CrossTenant-AuthSource: ZQZPR01MB0979.CHNPR01.prod.partner.outlook.cn X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Nov 2024 06:37:02.9850 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 06fe3fa3-1221-43d3-861b-5a4ee687a85c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: SWwc7lWb+RTIJATE75PWnl44j3SUhNmYrkeuVTcNltQz/q62i7G0XMoQddj+tXClCn7zczMZaE/ZD2KRJ3R4igV9CG3+lEqw7JEAPvIy0Ro= X-MS-Exchange-Transport-CrossTenantHeadersStamped: ZQZPR01MB0963 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241106_223658_778729_7F696933 X-CRM114-Status: UNSURE ( 9.26 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This patch series fixes issues in the dwmac4 driver. These three patches don't cause any user-visible issues, so they are targeted for net-next. Patch #1: Corrects the masking logic in the MTL Operation Mode RTC mask and shift macros. The current code lacks the use of the ~ operator, which is necessary to clear the bits properly. Patch #2: Addresses inaccuracies in the MTL_OP_MODE_*_MASK macros. The RTC fields are located in bits [1:0], and this patch ensures the mask and shift macros use the appropriate values to reflect this. Patch #3: Moves the handling of the Receive Watchdog Timeout (RWT) out of the Abnormal Interrupt Summary (AIS) condition. According to the databook, the RWT interrupt is not included in the AIS. Changes since v2: - Added more description in cover letter. - Fixed subject for the cover letter Changes since v1: - Updated CC list from get_maintainers.pl. - Removed Fixes tag. - Add more description in cover letter. History: v1: https://lore.kernel.org/linux-arm-kernel/20241023112005.GN402847@kernel.org/T/ v2: https://lore.kernel.org/netdev/20241101082336.1552084-3-leyfoon.tan@starfivetech.com/T/ Ley Foon Tan (3): net: stmmac: dwmac4: Fix MTL_OP_MODE_RTC mask and shift macros net: stmmac: dwmac4: Fix the MTL_OP_MODE_*_MASK operation net: stmmac: dwmac4: Receive Watchdog Timeout is not in abnormal interrupt summary drivers/net/ethernet/stmicro/stmmac/dwmac4.h | 4 ++-- drivers/net/ethernet/stmicro/stmmac/dwmac4_dma.c | 4 ++-- drivers/net/ethernet/stmicro/stmmac/dwmac4_lib.c | 6 ++++-- 3 files changed, 8 insertions(+), 6 deletions(-)