linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Rafał Miłecki" <zajec5@gmail.com>
To: Hauke Mehrtens <hauke@hauke-m.de>
Cc: Arend van Spriel <arend@broadcom.com>,
	linux-wireless@vger.kernel.org,
	"Saul St. John" <saul.stjohn@gmail.com>,
	Larry Finger <Larry.Finger@lwfinger.net>
Subject: Re: [RFC] bcma: add support for on-chip OTP memory used for SPROM storage
Date: Sat, 25 Feb 2012 15:29:15 +0100	[thread overview]
Message-ID: <CACna6rysAAEdowZagwnis6W20tcpbtc05jE_ongzcMPEMDBfeg@mail.gmail.com> (raw)
In-Reply-To: <4F48D997.1060400@hauke-m.de>

2012/2/25 Hauke Mehrtens <hauke@hauke-m.de>:
> On 02/23/2012 10:52 PM, Arend van Spriel wrote:
>> +#define BCMA_CC_OTPL                 0x001C          /* OTP layout */
>> +#define  BCMA_CC_OTPL_GURGN_OFFSET   0x00000FFF      /* offset of general use region */
>>  #define BCMA_CC_IRQSTAT                      0x0020
>>  #define BCMA_CC_IRQMASK                      0x0024
>>  #define       BCMA_CC_IRQ_GPIO               0x00000001      /* gpio intr */
>> @@ -79,6 +84,10 @@
>>  #define       BCMA_CC_IRQ_WDRESET            0x80000000      /* watchdog reset occurred */
>>  #define BCMA_CC_CHIPCTL                      0x0028          /* Rev >= 11 only */
>>  #define BCMA_CC_CHIPSTAT             0x002C          /* Rev >= 11 only */
>> +#define  BCMA_CC_CHIPST_4313_SPROM_PRESENT   1
>> +#define  BCMA_CC_CHIPST_4313_OTP_PRESENT     2
>> +#define  BCMA_CC_CHIPST_4331_SPROM_PRESENT   2
>> +#define       BCMA_CC_CHIPST_4331_OTP_PRESENT        4
>>  #define BCMA_CC_JCMD                 0x0030          /* Rev >= 10 only */
>>  #define  BCMA_CC_JCMD_START          0x80000000
>>  #define  BCMA_CC_JCMD_BUSY           0x80000000
>
> What is the correct way to format this file? BCMA_CC_JCMD_BUSY uses two
> spaces after the define and BCMA_CC_OTPS_CID_PROTECT uses a tabulator
> and a space, what is the correct or intended way to format this? This
> does not have directly something to do with this patches as both ways
> are currently coded in this file.

I tried to use two spaces, I didn't mean to add tabs after "define".
If I did, it was done by a mistake.

I also used to use hexadecimal numbers for values (like
BCMA_CC_CHIPST_4331_OTP_PRESENT):
0x00000004 rather than 4

I don't really have any arguments for that choice, I've just copied
ssb (and b43?) coding style. However keeping one styles sounds
reasonable.

-- 
Rafał

  reply	other threads:[~2012-02-25 14:29 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-23 21:52 [RFC] bcma: add support for on-chip OTP memory used for SPROM storage Arend van Spriel
2012-02-24  2:42 ` Saul St. John
2012-02-24  9:55   ` Arend van Spriel
2012-02-24  7:52 ` Rafał Miłecki
2012-02-24 10:15   ` Arend van Spriel
2012-02-24 10:39   ` Arend van Spriel
2012-02-24 10:58     ` Johannes Berg
2012-02-24 11:18       ` Arend van Spriel
2012-02-25 12:52 ` Hauke Mehrtens
2012-02-25 14:29   ` Rafał Miłecki [this message]
2012-02-27 10:12   ` Arend van Spriel
2012-02-28 20:11     ` Hauke Mehrtens
2012-03-01 14:12       ` Arend van Spriel
2012-03-01 14:35         ` Hauke Mehrtens
2012-03-01 15:16           ` Arend van Spriel
2012-03-01 16:14             ` Hauke Mehrtens
2012-03-03 22:44       ` Rafał Miłecki
2012-03-05  9:16         ` Arend van Spriel
2012-03-06  8:52           ` Rafał Miłecki
2012-03-06 12:26             ` Arend van Spriel
2012-03-01 21:26     ` Arend van Spriel
2012-03-01 21:42       ` Larry Finger
2012-03-01 21:56       ` Hauke Mehrtens
2012-03-02 10:39         ` Arend van Spriel

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=CACna6rysAAEdowZagwnis6W20tcpbtc05jE_ongzcMPEMDBfeg@mail.gmail.com \
    --to=zajec5@gmail.com \
    --cc=Larry.Finger@lwfinger.net \
    --cc=arend@broadcom.com \
    --cc=hauke@hauke-m.de \
    --cc=linux-wireless@vger.kernel.org \
    --cc=saul.stjohn@gmail.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).