From: Wey-Yi Guy Date: Thu, 13 Aug 2009 20:30:54 +0000 (-0700) Subject: iwlwifi: traverse linklist to find the valid OTP block X-Git-Tag: v2.6.32-rc1~703^2~335^2~94 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=415e49936b4b29b34c2fb561eeab867d41fc43a6;p=pandora-kernel.git iwlwifi: traverse linklist to find the valid OTP block For devices using OTP memory, EEPROM image can start from any one of the OTP blocks. If shadow RAM is disabled, we need to traverse link list to find the last valid block, then start the EEPROM image reading. If OTP is not full, the valid block is the block _before_ the last block on the link list; the last block on the link list is the empty block ready for next OTP refresh/update. If OTP is full, then the last block is the valid block to be used for configure the device. Signed-off-by: Wey-Yi Guy Signed-off-by: Reinette Chatre Signed-off-by: John W. Linville --- Reading git-diff-tree failed