]> git.baikalelectronics.ru Git - kernel.git/commit
[BNX2]: Fix nvram write logic.
authorMichael Chan <mchan@broadcom.com>
Fri, 30 Mar 2007 21:53:06 +0000 (14:53 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Mon, 2 Apr 2007 20:30:55 +0000 (13:30 -0700)
commit17b8922c1d460ac2b3aa6324f1a5459a1448c43f
tree66823c4e4b9cd88fc4c4d7df91746a043894840f
parent6c1638bb9f5e88d5f9ce1434331a870668e30885
[BNX2]: Fix nvram write logic.

The nvram dword alignment logic was broken when writing less than 4
bytes on a non-aligned offset.  It was missing logic to round the
length to 4 bytes.

The page erase code is also moved so that it is only called when
using non-buffered flash for better code clarity.

Update version to 1.5.7.

Based on initial patch from Tony Cureington <tony.cureington@hp.com>.

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bnx2.c