From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sergei Shtylyov Subject: Re: [PATCH 1/2] sh_eth: fix *enum* RPADIR_BIT Date: Tue, 26 Jun 2018 13:37:10 +0300 Message-ID: References: <2809eba8-4c9a-1d5f-a47d-8125777e365b@cogentembedded.com> <8c72d27f-8b1a-23cf-3f41-781944cd1388@cogentembedded.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: netdev , "David S. Miller" , Linux-Renesas To: Geert Uytterhoeven Return-path: Received: from mail-wm0-f68.google.com ([74.125.82.68]:52086 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933721AbeFZKhM (ORCPT ); Tue, 26 Jun 2018 06:37:12 -0400 Received: by mail-wm0-f68.google.com with SMTP id w137-v6so1320189wmw.1 for ; Tue, 26 Jun 2018 03:37:12 -0700 (PDT) In-Reply-To: Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: On 6/26/2018 10:25 AM, Geert Uytterhoeven wrote: >> The *enum* RPADIR_BIT was declared in the commit 86a74ff21a7a ("net: >> sh_eth: add support for Renesas SuperH Ethernet") adding SH771x support, >> however the SH771x manual doesn't have the RPADIR register described and, >> moreover, tells why the padding insertion must not be used. The newer SoC >> manuals do have RPADIR documented, though with somewhat different layout -- >> update the *enum* according to these manuals... >> >> Signed-off-by: Sergei Shtylyov > > Thanks for your patch! > > Reviewed-by: Geert Uytterhoeven > >> --- net-next.orig/drivers/net/ethernet/renesas/sh_eth.h >> +++ net-next/drivers/net/ethernet/renesas/sh_eth.h >> @@ -403,8 +403,7 @@ enum DESC_I_BIT { >> >> /* RPADIR */ >> enum RPADIR_BIT { >> - RPADIR_PADS1 = 0x20000, RPADIR_PADS0 = 0x10000, >> - RPADIR_PADR = 0x0003f, >> + RPADIR_PADS = 0x1f0000, RPADIR_PADR = 0xffff, > > Perhaps add some comments? > > RPADIR_PADS = 0x1f0000; /* Padding Size (insert N bytes of padding) */ > RPADIR_PADR = 0xffff; /* Padding Slot (insert padding at byte N) */ It would be nice but inconsistent with what we do for the other registers... >> }; > > Note that none of the RPADIR enums are actually used. I'd surely noted that. :-) > Gr{oetje,eeting}s, > > Geert > MBR, Sergei