From patchwork Tue Oct 5 11:06:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Biju Das X-Patchwork-Id: 12536277 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 51778C433EF for ; Tue, 5 Oct 2021 11:06:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3BA6561139 for ; Tue, 5 Oct 2021 11:06:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234286AbhJELIk (ORCPT ); Tue, 5 Oct 2021 07:08:40 -0400 Received: from relmlor1.renesas.com ([210.160.252.171]:29930 "EHLO relmlie5.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S233449AbhJELIj (ORCPT ); Tue, 5 Oct 2021 07:08:39 -0400 X-IronPort-AV: E=Sophos;i="5.85,348,1624287600"; d="scan'208";a="96017410" Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie5.idc.renesas.com with ESMTP; 05 Oct 2021 20:06:47 +0900 Received: from localhost.localdomain (unknown [10.226.93.104]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id 1BAE040078B9; Tue, 5 Oct 2021 20:06:44 +0900 (JST) From: Biju Das To: "David S. Miller" , Jakub Kicinski Cc: Biju Das , Sergey Shtylyov , Lad Prabhakar , Andrew Lunn , Sergei Shtylyov , Geert Uytterhoeven , Adam Ford , Yoshihiro Shimoda , netdev@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Chris Paterson , Biju Das Subject: [RFC 00/12] Add functional support for Gigabit Ethernet driver Date: Tue, 5 Oct 2021 12:06:30 +0100 Message-Id: <20211005110642.3744-1-biju.das.jz@bp.renesas.com> X-Mailer: git-send-email 2.17.1 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-State: RFC The DMAC and EMAC blocks of Gigabit Ethernet IP found on RZ/G2L SoC are similar to the R-Car Ethernet AVB IP. The Gigabit Ethernet IP consists of Ethernet controller (E-MAC), Internal TCP/IP Offload Engine (TOE) and Dedicated Direct memory access controller (DMAC). With a few changes in the driver we can support both IPs. This patch series is aims to add functional support for Gigabit Ethernet driver by filling all the stubs. Ref:- https://lore.kernel.org/linux-renesas-soc/OS0PR01MB5922240F88E5E0FD989ECDF386AC9@OS0PR01MB5922.jpnprd01.prod.outlook.com/T/#m8dee0a1b14d505d4611cad8c10e4017a30db55d6 RFC changes: * used ALIGN macro for calculating the value for max_rx_len. * used rx_max_buf_size instead of rx_2k_buffers feature bit. * moved struct ravb_rx_desc *gbeth_rx_ring near to ravb_private::rx_ring and allocating it for 1 RX queue. * Started using gbeth_rx_ring instead of gbeth_rx_ring[q]. * renamed ravb_alloc_rx_desc to ravb_alloc_rx_desc_rcar * renamed ravb_rx_ring_free to ravb_rx_ring_free_rcar * renamed ravb_rx_ring_format to ravb_rx_ring_format_rcar * renamed ravb_rcar_rx to ravb_rx_rcar * renamed "tsrq" variable * Updated the comments Biju Das (12): ravb: Use ALIGN macro for max_rx_len ravb: Add rx_max_buf_size to struct ravb_hw_info ravb: Fillup ravb_set_features_gbeth() stub ravb: Fillup ravb_alloc_rx_desc_gbeth() stub ravb: Fillup ravb_rx_ring_free_gbeth() stub ravb: Fillup ravb_rx_ring_format_gbeth() stub ravb: Fillup ravb_rx_gbeth() stub ravb: Add carrier_counters to struct ravb_hw_info ravb: Add support to retrieve stats for GbEthernet ravb: Rename "tsrq" variable ravb: Optimize ravb_emac_init_gbeth function ravb: Update/Add comments drivers/net/ethernet/renesas/ravb.h | 51 +++- drivers/net/ethernet/renesas/ravb_main.c | 349 +++++++++++++++++++++-- 2 files changed, 367 insertions(+), 33 deletions(-)