From: Bruce Allan Date: Fri, 7 Aug 2009 07:41:56 +0000 (+0000) Subject: e1000e: fix potential NVM corruption on ICH9 with 8K bank size X-Git-Tag: v2.6.31-rc7~27^2~30 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=148675a7b2061b5a5eb194530b7c4d8de1f2887e;p=pandora-kernel.git e1000e: fix potential NVM corruption on ICH9 with 8K bank size The bank offset was being incorrectly calculated on ICH9 parts with a bank size of 8K (instead of the more common 4K bank) which would cause any NVM writes to be done on the wrong address after switching from bank 1 to bank 0. Additionally, assume we are meant to use bank 0 if a valid bank is not detected, and remove the unnecessary acquisition of the SW/FW/HW semaphore when writing to the shadow ram version of the NVM image. Signed-off-by: Bruce Allan Signed-off-by: Jeff Kirsher Signed-off-by: David S. Miller --- Reading git-diff-tree failed