From: Emil Tantilov Date: Wed, 29 May 2013 06:23:10 +0000 (+0000) Subject: ixgbe: fix SFF data dumps of SFP+ modules X-Git-Tag: v3.12-rc1~132^2~416^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a4b6fc6bc61e6aeb24af73c5b195a6aec27d88ff;p=pandora-kernel.git ixgbe: fix SFF data dumps of SFP+ modules This patch fixes several issues with the previous implementation of the SFF data dump of SFP+ modules: - removed the __IXGBE_READ_I2C flag - I2C access locking is handled in the HW specific routines - fixed the read loop to read data from ee->offset to ee->len - the reads fail if __IXGBE_IN_SFP_INIT is set in the process - this is needed because on some HW I2C operations can take long time and disrupt the SFP and link detection process Signed-off-by: Emil Tantilov Reported-by: Ben Hutchings Tested-by: Phil Schmitt Signed-off-by: Jeff Kirsher --- Reading git-diff-tree failed