From: Gertjan van Wingerde Date: Sat, 14 Nov 2009 19:20:36 +0000 (+0100) Subject: rt2x00: Fix BUG on rt2800usb when trying to read eFuse EEPROM. X-Git-Tag: v2.6.33-rc1~388^2~280^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=31a4cf1f22677ba1ea90be055bc20aac25b8e7c4;p=pandora-kernel.git rt2x00: Fix BUG on rt2800usb when trying to read eFuse EEPROM. Current tree hits a BUG_ON in rt2x00_regbusy_read, because the eFuse EEPROM reading code of rt2800lib uses the function without the csr_mutex locked. Fix this by locking the csr_mutex for the of the EEPROM reading cycly and using the _lock variants of the register reading and writing functions. This also introcudes the register_read_lock function pointer in the rt2800_ops structure. Signed-off-by: Gertjan van Wingerde Acked-by: Ivo van Doorn Signed-off-by: John W. Linville --- Reading git-diff-tree failed