From: Harvey Harrison <harvey.harrison@gmail.com>
To: Zhu Yi <yi.zhu@intel.com>
Cc: linville@tuxdriver.com, linux-wireless@vger.kernel.org,
ipw3945-devel@lists.sourceforge.net, "Winkler,
Tomas" <tomas.winkler@intel.com>
Subject: Re: [PATCH 01/10] iwl3945: rearrange 3945 tfd
Date: Sun, 21 Dec 2008 19:55:20 -0800 [thread overview]
Message-ID: <1229918120.22856.4.camel@brick> (raw)
In-Reply-To: <1229916683-9772-2-git-send-email-yi.zhu@intel.com>
A few small things I noticed:
On Mon, 2008-12-22 at 11:31 +0800, Zhu Yi wrote:
> From: Winkler, Tomas <tomas.winkler@intel.com>
> diff --git a/drivers/net/wireless/iwlwifi/iwl-3945-fh.h b/drivers/net/wireless/iwlwifi/iwl-3945-fh.h
> index bbcd0ce..53ed249 100644
> --- a/drivers/net/wireless/iwlwifi/iwl-3945-fh.h
> +++ b/drivers/net/wireless/iwlwifi/iwl-3945-fh.h
> @@ -172,7 +172,17 @@
>
> #define FH39_RSSR_CHNL0_RX_STATUS_CHNL_IDLE (0x01000000)
>
> -#define TFD_QUEUE_SIZE_MAX (256)
> +struct iwl3945_tfd_tb {
> + __le32 addr;
> + __le32 len;
> +} __attribute__ ((packed));
> +
> +struct iwl3945_tfd {
> + __le32 control_flags;
> + struct iwl3945_tfd_tb tbs[4];
> + u8 __pad[28];
> +} __attribute__ ((packed));
> +
Packed doesn't really buy anything with these two structs, if you still
want it, you can also use plain __packed (see compiler-gcc.h)
> static inline u8 iwl3945_hw_get_rate(__le16 rate_n_flags)
> {
> return le16_to_cpu(rate_n_flags) & 0xFF;
> diff --git a/drivers/net/wireless/iwlwifi/iwl-3945.c b/drivers/net/wireless/iwlwifi/iwl-3945.c
> index 131bae7..24cdc5c 100644
> --- a/drivers/net/wireless/iwlwifi/iwl-3945.c
> +++ b/drivers/net/wireless/iwlwifi/iwl-3945.c
> @@ -38,6 +38,7 @@
> #include <asm/unaligned.h>
> #include <net/mac80211.h>
>
> +#include "iwl-fh.h"
> #include "iwl-3945-fh.h"
> #include "iwl-commands.h"
> #include "iwl-3945.h"
> @@ -307,7 +308,7 @@ static void iwl3945_tx_queue_reclaim(struct iwl_priv *priv,
> {
> struct iwl3945_tx_queue *txq = &priv->txq39[txq_id];
> struct iwl_queue *q = &txq->q;
> - struct iwl3945_tx_info *tx_info;
> + struct iwl_tx_info *tx_info;
>
> BUG_ON(txq_id == IWL_CMD_QUEUE_NUM);
>
> @@ -728,7 +729,7 @@ int iwl3945_hw_txq_attach_buf_to_tfd(struct iwl_priv *priv, void *ptr,
> {
> int count;
> u32 pad;
> - struct iwl3945_tfd_frame *tfd = (struct iwl3945_tfd_frame *)ptr;
> + struct iwl3945_tfd *tfd = (struct iwl3945_tfd *)ptr;
void pointer, no cast needed (although maybe that should get cleaned up.
Cheers,
Harvey
prev parent reply other threads:[~2008-12-22 3:55 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-22 3:31 [PATCH 00/10] iwlwifi driver 12/22 updates Zhu Yi
2008-12-22 3:31 ` [PATCH 01/10] iwl3945: rearrange 3945 tfd Zhu Yi
2008-12-22 3:31 ` [PATCH 02/10] iwl3945: adding utils ops Zhu Yi
2008-12-22 3:31 ` [PATCH 03/10] iwl3945: sync tx queue data structure with iwlagn Zhu Yi
2008-12-22 3:31 ` [PATCH 04/10] iwl3945: remove iwl-3945-led.[ch] Zhu Yi
2008-12-22 3:31 ` [PATCH 05/10] iwl3945: switch to the iwl-core send_card_state routine Zhu Yi
2008-12-22 3:31 ` [PATCH 06/10] iwl3945: use iwl3945_tx_cmd instead of iwl_tx_cmd Zhu Yi
2008-12-22 3:31 ` [PATCH 07/10] iwlwifi: move sysfs status entry to debugfs Zhu Yi
2008-12-22 3:31 ` [PATCH 08/10] iwlwifi: kill retry_rate sysfs for iwlagn Zhu Yi
2008-12-22 3:31 ` [PATCH 09/10] iwlwifi: fix warning 'Should it be static' Zhu Yi
2008-12-22 3:31 ` [PATCH 10/10] iwl3945: use rx queue management infrastructure from iwlcore Zhu Yi
2008-12-22 14:07 ` Kalle Valo
2008-12-23 2:58 ` Zhu Yi
2008-12-23 7:39 ` Sedat Dilek
2008-12-23 12:49 ` Sedat Dilek
2008-12-23 20:43 ` Kalle Valo
2008-12-25 2:20 ` Sedat Dilek
2008-12-22 3:55 ` Harvey Harrison [this message]
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=1229918120.22856.4.camel@brick \
--to=harvey.harrison@gmail.com \
--cc=ipw3945-devel@lists.sourceforge.net \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
--cc=tomas.winkler@intel.com \
--cc=yi.zhu@intel.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).