From patchwork Tue Aug 20 09:16:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: MD Danish Anwar X-Patchwork-Id: 13769650 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 352F3C5320E for ; Tue, 20 Aug 2024 09:19:38 +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:Content-Type: Content-Transfer-Encoding:MIME-Version: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=I7ZRMszLONWGT9rU/+fUWOeX9vZN1R9Vo1ubOC9KAFo=; b=RRIrkwiGEZZDhWAz/kU56TKDM7 MY826fPT4k6Q/s67yrMkwrKIpthBjmcLS/D2yAvwKAhTekGQFbX4A2KcwPkXUfFbokOEd4JRKNG2k qId1eWCYLqKjfcPEqsahTJA8f3ELsenq9uX+iCMIUK8C1t3DDJALZKaEN+MBi8E9lmyPrE43xHNeB gtnLB00REXayQ2U9PVvLKjpZcWhdPUhNogwUqneo88t8NCR2SlH2sJVrMCPhM6kfKRVUUHRIjO7A/ 4OMRA3+PBq7xCc0YBEgjDQ1Tgsqx90E/i14IZ339JcJTUc8JX0otalEwtmrp4GXzFXslSQHvRHUtI aA1bosfQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sgL1U-00000004XFE-11Fw; Tue, 20 Aug 2024 09:19:28 +0000 Received: from lelv0142.ext.ti.com ([198.47.23.249]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sgKzH-00000004WRZ-331b for linux-arm-kernel@lists.infradead.org; Tue, 20 Aug 2024 09:17:13 +0000 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 47K9H0Zb007330; Tue, 20 Aug 2024 04:17:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1724145420; bh=I7ZRMszLONWGT9rU/+fUWOeX9vZN1R9Vo1ubOC9KAFo=; h=From:To:CC:Subject:Date; b=KqaHAff8YVoPGjm4cMn4GZHAjC1AhAV9Q1nr23+ro9ulk4FAG8WIRuVZ2v+kSljCs l8lJsh3s/21E3hHzfBnrp5TFq19PzcsJT0I/PyNbN28kpLPSaaO0rKhOw5LIGKeIkc iqgxbz53za6VvgcGCYokjRpC5yaw7p6stQYy81VA= Received: from DFLE102.ent.ti.com (dfle102.ent.ti.com [10.64.6.23]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 47K9H0nn028025 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 20 Aug 2024 04:17:00 -0500 Received: from DFLE104.ent.ti.com (10.64.6.25) by DFLE102.ent.ti.com (10.64.6.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Tue, 20 Aug 2024 04:17:00 -0500 Received: from fllvsmtp7.itg.ti.com (10.64.40.31) by DFLE104.ent.ti.com (10.64.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Tue, 20 Aug 2024 04:16:59 -0500 Received: from fllv0122.itg.ti.com (fllv0122.itg.ti.com [10.247.120.72]) by fllvsmtp7.itg.ti.com (8.15.2/8.15.2) with ESMTP id 47K9H0WB084730; Tue, 20 Aug 2024 04:17:00 -0500 Received: from localhost (danish-tpc.dhcp.ti.com [10.24.69.25]) by fllv0122.itg.ti.com (8.14.7/8.14.7) with ESMTP id 47K9Gxn2016984; Tue, 20 Aug 2024 04:16:59 -0500 From: MD Danish Anwar To: Suman Anna , Sai Krishna , Jan Kiszka , Dan Carpenter , Diogo Ivo , Kory Maincent , Heiner Kallweit , Andrew Lunn , Simon Horman , Paolo Abeni , Jakub Kicinski , Eric Dumazet , "David S. Miller" , Roger Quadros , MD Danish Anwar , Conor Dooley , Krzysztof Kozlowski , Rob Herring , Santosh Shilimkar , Nishanth Menon CC: , , , , , Vignesh Raghavendra Subject: [PATCH net-next v6 0/2] Add support for ICSSG PA_STATS Date: Tue, 20 Aug 2024 14:46:55 +0530 Message-ID: <20240820091657.4068304-1-danishanwar@ti.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240820_021711_989936_1588F311 X-CRM114-Status: GOOD ( 11.78 ) 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 Hi, This series adds support for PA_STATS. Previously this series was a standalone patch adding documentation for PA_STATS in dt-bindings file ti,pruss.yaml. As discussed in v4, posting driver and binding patch together. Changes since v5: *) Used ARRAY_SIZE(icssg_all_pa_stats) instead of ICSSG_NUM_PA_STATS so that it's consistent with the loop as suggested by Dan Carpenter *) Created emac->pa_stats array for storing pa_stats as suggested by Dan Carpenter *) Renamed `icssg_all_stats` to `icssg_mii_g_rt_stats`. *) Added entry for pa_stats in kernel doc for structure prueth as asked by Simon Horman . *) Improved syntax for kernel doc of pa_stats_regs register by dropping u32 from kernel doc. Changes since v4: *) Added net-next to both driver and binding patch as they are both now meant to be merged via net-next. *) Added Acked by tag of Nishanth Menon *) Dropped device tree patches as they don't need merge now. *) Modified patch 2 to use ethtool_puts() as suggested by Jakub Kicinski Changes since v3: *) Added full series as asked by Nishanth Menon Changes from v2 to v3: *) Added RB tag of Krzysztof Kozlowski to patch 2/2 *) Added patch 1/2 to the series as the binding file is orphan. Changes from v1 to v2: *) Added ^ in pa-stats as suggested by Krzysztof Kozlowski *) Moved additionalProperties: false to right after type:object as suggested by Krzysztof Kozlowski *) Updated description of pa-stats to explain the purpose of PA_STATS module in context of ICSSG. v1 https://lore.kernel.org/all/20240430121915.1561359-1-danishanwar@ti.com/ v2 https://lore.kernel.org/all/20240529115149.630273-1-danishanwar@ti.com/ v3 https://lore.kernel.org/all/20240625153319.795665-1-danishanwar@ti.com/ v4 https://lore.kernel.org/all/20240729113226.2905928-1-danishanwar@ti.com/ v5 https://lore.kernel.org/all/20240814092033.2984734-1-danishanwar@ti.com/ MD Danish Anwar (2): dt-bindings: soc: ti: pruss: Add documentation for PA_STATS support net: ti: icssg-prueth: Add support for PA Stats .../devicetree/bindings/soc/ti/ti,pruss.yaml | 20 +++++++++++ drivers/net/ethernet/ti/icssg/icssg_ethtool.c | 19 ++++++----- drivers/net/ethernet/ti/icssg/icssg_prueth.c | 6 ++++ drivers/net/ethernet/ti/icssg/icssg_prueth.h | 9 +++-- drivers/net/ethernet/ti/icssg/icssg_stats.c | 31 ++++++++++++----- drivers/net/ethernet/ti/icssg/icssg_stats.h | 34 ++++++++++++++++++- 6 files changed, 98 insertions(+), 21 deletions(-) base-commit: dca9d62a0d7684a5510645ba05960529c5066457