From: Jeff Garzik <jeff@garzik.org>
To: Ananda Raju <Ananda.Raju@neterion.com>
Cc: netdev@vger.kernel.org, leonid.grossman@neterion.com,
alicia.pena@neterion.com, ramkrishna.vepa@neterion.com,
sivakumar.subramani@neterion.com, sreenivasa.honnur@neterion.com,
sriram.rapuru@neterion.com
Subject: Re: [PATCH 2.6.20 2/5] S2IO: Fixes for reset and link handling.
Date: Tue, 23 Jan 2007 00:45:22 -0500 [thread overview]
Message-ID: <45B5A0F2.5040108@garzik.org> (raw)
In-Reply-To: <Pine.GSO.4.10.10701190231190.22012-100000@guinness>
Ananda Raju wrote:
> 1. Fix for reset and link handling.
> 2. Allow for promiscuos mode and multicast state be maintained through
> ifconfig up and down.
> 3. Support to print adapter serial number.
>
> Signed-off-by: Sivakumar Subramani <sivakumar.subramani@neterion.com>
overall, looks OK, but have small nits noted inline:
> + /*
> + * Andrew: in PCI 33 mode, the P_PLL is not used, and therefore,
> + * the the P_PLL_LOCK bit in the adapter_status register will
> + * not be asserted.
> + */
don't address somebody in a code comment ("Andrew:")
> @@ -537,9 +539,9 @@ typedef struct _RxD_block {
>
> #define SIZE_OF_BLOCK 4096
>
> -#define RXD_MODE_1 0
> -#define RXD_MODE_3A 1
> -#define RXD_MODE_3B 2
> +#define RXD_MODE_1 0 //One Buffer mode
> +#define RXD_MODE_3A 1 //Three Buffer mode
> +#define RXD_MODE_3B 2 //Two Buffer mode
C++ comments discouraged
> @@ -849,8 +851,9 @@ struct s2io_nic {
> spinlock_t rx_lock;
> atomic_t isr_cnt;
> u64 *ufo_in_band_v;
> -#define VPD_PRODUCT_NAME_LEN 50
> - u8 product_name[VPD_PRODUCT_NAME_LEN];
> +#define VPD_STRING_LEN 80
> + u8 product_name[VPD_STRING_LEN];
> + u8 serial_num[VPD_STRING_LEN];
> };
>
> #define RESET_ERROR 1;
> @@ -893,10 +896,10 @@ static inline void SPECIAL_REG_WRITE(u64
> writel((u32) (val), addr);
> ret = readl(addr);
> writel((u32) (val >> 32), (addr + 4));
> - ret = readl(addr + 4);
> + ret = readl((addr + 4));
> } else {
> writel((u32) (val >> 32), (addr + 4));
> - ret = readl(addr + 4);
> + ret = readl((addr + 4));
> writel((u32) (val), addr);
> ret = readl(addr);
> }
adds pointless parens
next prev parent reply other threads:[~2007-01-23 5:45 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-19 7:34 [PATCH 2.6.20 2/5] S2IO: Fixes for reset and link handling Ananda Raju
2007-01-23 5:45 ` Jeff Garzik [this message]
-- strict thread matches above, loose matches on Subject: below --
2007-01-23 19:29 Ananda Raju
2007-01-29 5:53 Ananda Raju
2007-01-31 18:30 Sivakumar Subramani
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=45B5A0F2.5040108@garzik.org \
--to=jeff@garzik.org \
--cc=Ananda.Raju@neterion.com \
--cc=alicia.pena@neterion.com \
--cc=leonid.grossman@neterion.com \
--cc=netdev@vger.kernel.org \
--cc=ramkrishna.vepa@neterion.com \
--cc=sivakumar.subramani@neterion.com \
--cc=sreenivasa.honnur@neterion.com \
--cc=sriram.rapuru@neterion.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.