From mboxrd@z Thu Jan 1 00:00:00 1970 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 63F98C433FE for ; Wed, 6 Oct 2021 17:00:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4CF3561056 for ; Wed, 6 Oct 2021 17:00:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239442AbhJFRCG (ORCPT ); Wed, 6 Oct 2021 13:02:06 -0400 Received: from mxout04.lancloud.ru ([45.84.86.114]:46292 "EHLO mxout04.lancloud.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230108AbhJFRCF (ORCPT ); Wed, 6 Oct 2021 13:02:05 -0400 Received: from LanCloud DKIM-Filter: OpenDKIM Filter v2.11.0 mxout04.lancloud.ru 0102120A2A5B Received: from LanCloud Received: from LanCloud Received: from LanCloud Subject: Re: [RFC 08/12] ravb: Add carrier_counters to struct ravb_hw_info To: Biju Das , "David S. Miller" , Jakub Kicinski CC: Sergei Shtylyov , Geert Uytterhoeven , Sergey Shtylyov , "Adam Ford" , Andrew Lunn , Yuusuke Ashizuka , Yoshihiro Shimoda , , , Chris Paterson , Biju Das , "Prabhakar Mahadev Lad" References: <20211005110642.3744-1-biju.das.jz@bp.renesas.com> <20211005110642.3744-9-biju.das.jz@bp.renesas.com> <5be0aed7-ba46-3b5f-e49f-8edf7cb9c193@omp.ru> From: Sergey Shtylyov Organization: Open Mobile Platform Message-ID: <4eac039d-1a4e-fdfa-37e7-8a774a88c69a@omp.ru> Date: Wed, 6 Oct 2021 20:00:07 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <5be0aed7-ba46-3b5f-e49f-8edf7cb9c193@omp.ru> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [192.168.11.198] X-ClientProxiedBy: LFEXT02.lancloud.ru (fd00:f066::142) To LFEX1907.lancloud.ru (fd00:f066::207) Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On 10/6/21 7:41 PM, Sergey Shtylyov wrote: >> RZ/G2L E-MAC supports carrier counters. >> Add a carrier_counter hw feature bit to struct ravb_hw_info >> to add this feature only for RZ/G2L. >> >> Signed-off-by: Biju Das >> Reviewed-by: Sergey Shtylyov > > [...] > >> diff --git a/drivers/net/ethernet/renesas/ravb.h b/drivers/net/ethernet/renesas/ravb.h >> index 8c7b2569c7dd..899e16c5eb1a 100644 >> --- a/drivers/net/ethernet/renesas/ravb.h >> +++ b/drivers/net/ethernet/renesas/ravb.h >> [...] >> @@ -1061,6 +1065,7 @@ struct ravb_hw_info { >> unsigned nc_queue:1; /* AVB-DMAC has NC queue */ >> unsigned magic_pkt:1; /* E-MAC supports magic packet detection */ >> unsigned half_duplex:1; /* E-MAC supports half duplex mode */ >> + unsigned carrier_counters:1; /* E-MAC has carrier counters */ I thought I'd typed here that this field should be declared next to the 'tx_counters' field. :-) [...] MBR, Sergey