From: Jeff Garzik <jeff@garzik.org>
To: James Ketrenos <jketreno@linux.intel.com>
Cc: Randy Dunlap <randy.dunlap@oracle.com>,
"John W. Linville" <linville@tuxdriver.com>,
linux-wireless <linux-wireless@vger.kernel.org>
Subject: Re: [PATCH] Add iwlwifi wireless drivers
Date: Thu, 17 May 2007 01:57:04 -0400 [thread overview]
Message-ID: <464BEEB0.8030402@garzik.org> (raw)
In-Reply-To: <464BD9D4.4020909@linux.intel.com>
Lindent is only the first step.
You then have to go through the code and undo the damage it does.
For instance,
> + rc = wait_event_interruptible_timeout(priv->
> + wait_command_queue,
> + !(priv->
> + status &
> + STATUS_HCMD_ACTIVE),
> + HOST_COMPLETE_TIMEOUT);
you SHOULD (using IETF RFC language) violate the 80-column limit, when
the alternative is word-wrapping at silly boundaries like the middle of
a de-ref.
Or,
> + iwl_write_restricted(priv, FH_RCSR_CONFIG(0),
> + ALM_FH_RCSR_RX_CONFIG_REG_VAL_DMA_CHNL_EN_ENABLE
> + |
> + ALM_FH_RCSR_RX_CONFIG_REG_VAL_RDRBD_EN_ENABLE
> + |
> + ALM_FH_RCSR_RX_CONFIG_REG_BIT_WR_STTS_EN
> + |
> + ALM_FH_RCSR_RX_CONFIG_REG_VAL_MAX_FRAG_SIZE_128
> + | (RX_QUEUE_SIZE_LOG <<
> + ALM_FH_RCSR_RX_CONFIG_REG_POS_RBDC_SIZE)
> + |
> + ALM_FH_RCSR_RX_CONFIG_REG_VAL_IRQ_DEST_INT_HOST
> + | (1 << ALM_FH_RCSR_RX_CONFIG_REG_POS_IRQ_RBTH)
> + | ALM_FH_RCSR_RX_CONFIG_REG_VAL_MSG_MODE_FH);
> +
you SHOULD NOT waste an entire line on a single '|'.
As an aside, remove the redundant "_REG_BIT_" and "_REG_VAL_" stuff. It
makes too-long symbols even longer.
As an aside #2,
> +#if IWL == 4965
> + (rxon1->ofdm_ht_single_stream_basic_rates ==
> + rxon2->ofdm_ht_single_stream_basic_rates) &&
> + (rxon1->ofdm_ht_dual_stream_basic_rates ==
> + rxon2->ofdm_ht_dual_stream_basic_rates) &&
> + (rxon1->rx_chain == rxon2->rx_chain) &&
> +#endif
those #if's should go away.
Jeff
next prev parent reply other threads:[~2007-05-17 5:57 UTC|newest]
Thread overview: 52+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-16 21:45 [PATCH] Add iwlwifi wireless drivers James Ketrenos
2007-05-17 1:27 ` Randy Dunlap
2007-05-17 4:28 ` James Ketrenos
2007-05-17 5:57 ` Jeff Garzik [this message]
2007-05-22 21:38 ` James Ketrenos
2007-05-18 19:01 ` James Ketrenos
2007-05-18 20:57 ` Jeff Garzik
2007-05-18 20:54 ` James Ketrenos
2007-05-18 21:06 ` Randy Dunlap
2007-05-22 18:39 ` John W. Linville
2007-05-22 18:29 ` James Ketrenos
2007-05-17 1:51 ` Michael Wu
2007-05-17 2:56 ` Jeff Garzik
2007-05-17 3:55 ` Michael Wu
2007-05-17 8:52 ` Christoph Hellwig
2007-05-22 19:16 ` James Ketrenos
2007-05-22 23:00 ` Jeff Garzik
2007-05-22 21:49 ` James Ketrenos
2007-05-22 23:41 ` Jeff Garzik
2007-05-22 22:56 ` James Ketrenos
2007-05-23 0:58 ` Jeff Garzik
2007-05-23 18:17 ` James Ketrenos
2007-05-23 19:59 ` Jeff Garzik
2007-05-23 19:30 ` James Ketrenos
2007-05-23 1:06 ` Michael Wu
2007-05-23 1:46 ` Jeff Garzik
2007-05-17 3:35 ` [PATCH] Add iwlwifi wireless drivers [part 2/2] Randy Dunlap
2007-05-17 15:03 ` Stephen Hemminger
2007-05-17 15:05 ` Stephen Hemminger
2007-05-18 7:04 ` Johannes Berg
2007-05-18 20:33 ` James Ketrenos
2007-05-18 22:05 ` Jeff Garzik
2007-05-18 21:31 ` James Ketrenos
2007-05-18 22:50 ` Jeff Garzik
2007-05-18 23:04 ` Christoph Hellwig
2007-05-21 14:56 ` James Ketrenos
2007-05-21 16:26 ` Christoph Hellwig
2007-05-21 16:48 ` James Ketrenos
2007-05-21 18:15 ` Christoph Hellwig
2007-05-21 20:12 ` Cohen, Guy
2007-05-21 21:02 ` Jeff Garzik
2007-05-21 21:10 ` Randy Dunlap
2007-05-21 21:43 ` Cohen, Guy
2007-05-21 22:15 ` Jeff Garzik
2007-05-21 21:22 ` Joerg Mayer
2007-05-21 21:46 ` Cohen, Guy
2007-05-18 22:13 ` Randy Dunlap
2007-05-18 23:05 ` [PATCH] Add iwlwifi wireless drivers Christoph Hellwig
2007-05-18 23:22 ` Michael Wu
2007-05-22 21:50 ` [PATCH v3] " James Ketrenos
2007-05-23 1:06 ` Jeff Garzik
2007-05-23 15:16 ` James Ketrenos
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=464BEEB0.8030402@garzik.org \
--to=jeff@garzik.org \
--cc=jketreno@linux.intel.com \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
--cc=randy.dunlap@oracle.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).