Re: [PATCH] IP1000A: IC Plus update 2006-08-22

From: Randy.Dunlap
Date: Tue Aug 22 2006 - 02:13:13 EST


On Tue, 22 Aug 2006 13:37:14 -0400 Jesse Huang wrote:

> Dear All:
> I had regenerate this patch from:
> git://git.kernel.org/pub/scm/linux/kernel/git/penberg/netdev-ipg-2.6.git
>
> And, submit those modifications as one patch.
>
> Add: "Remove and add some whitespace"
>
> From: Jesse Huang <jesse@xxxxxxxxxxxxx>
>
> Change Logs:
> - update maintainer information
> - remove some default phy params
> - remove threshold config from ipg_io_config
> - ip1000 ipg_config_autoneg rewrite
> - modify coding style of ipg_config_autoneg
> - Add IPG_AC_FIFO flag when Tx reset
> - For compatible at PCI 66MHz issue
> - Remove and add some whitespace
>
> Signed-off-by: Jesse Huang <jesse@xxxxxxxxxxxxx>


- u8 phyctrl;
+ long mac_ctrl_value;

Should mac_ctrl_value be unsigned long or u32 instead of signed long?

We try to keep source lines limited to < 80 columns when feasible
so that they fit nicely into an xterm. There are a few lines here
that are > 80 columns.

+ if((NextToFree != sp->CurrentTFD) && (NextToFree != CurrentTxTFDPtr))
+ {

Style: need space after if; opening brace not on line by itself.

+ // Re-configure after DMA reset.

Line ends with a space. :(

+ if (sp->ResetCurrentTFD != 0)
+ {

Opening brace not on line by itself -- put it on the previous line,
with a space between ) and {.

+ if (sp->LastTFDHoldAddr == sp->CurrentTFD) sp->LastTFDHoldCnt++;
+ else {sp->LastTFDHoldAddr = sp->CurrentTFD; sp->LastTFDHoldCnt=0; }

Split lines as:
if (condition)
action;
else {
action2;
}


---
~Randy
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/