netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: igor.russkikh@aquantia.com
Cc: netdev@vger.kernel.org, darcari@redhat.com,
	pavel.belous@aquantia.com, Nadezhda.Krupnina@aquantia.com,
	simon.edelhaus@aquantia.com
Subject: Re: [PATCH net 2/4] net: aquantia: Fix hardware DMA stream overload on large MRRS
Date: Thu, 07 Dec 2017 14:23:31 -0500 (EST)	[thread overview]
Message-ID: <20171207.142331.906125407031062563.davem@davemloft.net> (raw)
In-Reply-To: <5e0faf4821c3d01d1de296da18f6c07877223c4f.1512548097.git.igor.russkikh@aquantia.com>

From: Igor Russkikh <igor.russkikh@aquantia.com>
Date: Thu,  7 Dec 2017 11:39:43 +0300

> @@ -2343,6 +2343,9 @@
>  #define tx_dma_desc_base_addrmsw_adr(descriptor) \
>  			(0x00007c04u + (descriptor) * 0x40)
>  
> +/* tx dma total request limit */
> +#define tx_dma_total_req_limit_adr 0x00007b20u
> +
>  /* tx interrupt moderation control register definitions
>   * Preprocessor definitions for TX Interrupt Moderation Control Register
>   * Base Address: 0x00008980
> @@ -2369,6 +2372,9 @@
>  /* default value of bitfield reg_res_dsbl */
>  #define pci_reg_res_dsbl_default 0x1
>  
> +/* PCI core control register */
> +#define pci_reg_control6_adr 0x1014u
> +

I should have given you this feedback a long time ago, but better late
than never...

CPP macros, especially those which define register numbers or bit
valus, should never use lowercase.  They should always use uppercase
names.

This is a coding style convention we use in the entire kernel which
makes it easy to visually see whether something is a bonafide C
symbol or a CPP macro.

Thank you.

  reply	other threads:[~2017-12-07 19:23 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-07  8:39 [PATCH net 0/4] net: aquantia: Atlantic driver 12/2017 updates Igor Russkikh
2017-12-07  8:39 ` [PATCH net 1/4] net: aquantia: Fix actual speed capabilities reporting Igor Russkikh
2017-12-07  8:39 ` [PATCH net 2/4] net: aquantia: Fix hardware DMA stream overload on large MRRS Igor Russkikh
2017-12-07 19:23   ` David Miller [this message]
2017-12-08  9:56     ` Igor Russkikh
2017-12-07  8:39 ` [PATCH net 3/4] net: aquantia: Improve and fix statistics on device Igor Russkikh
2017-12-07 19:08   ` Andrew Lunn
2017-12-08  9:43     ` Igor Russkikh
2017-12-07  8:39 ` [PATCH net 4/4] net: atlantic: Increment driver version Igor Russkikh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20171207.142331.906125407031062563.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=Nadezhda.Krupnina@aquantia.com \
    --cc=darcari@redhat.com \
    --cc=igor.russkikh@aquantia.com \
    --cc=netdev@vger.kernel.org \
    --cc=pavel.belous@aquantia.com \
    --cc=simon.edelhaus@aquantia.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).