From: Håvard Skinnemoen Date: Fri, 22 Sep 2006 09:07:08 +0000 (+0100) Subject: [MTD] Unlock NOR flash automatically where necessary X-Git-Tag: v2.6.19-rc1~1299^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=187ef15268e638603dea55a91fdfa29feaed6d13;p=pandora-kernel.git [MTD] Unlock NOR flash automatically where necessary Introduce the MTD_STUPID_LOCK flag which indicates that the flash chip is always locked after power-up, so all sectors need to be unlocked before it is usable. If this flag is set, and the chip provides an unlock() operation, mtd_add_device will unlock the whole MTD device if it's writeable. This means that non-writeable partitions will stay locked. Set MTD_STUPID_LOCK in fixup_use_atmel_lock() so that these chips will work as expected. Signed-off-by: Håvard Skinnemoen Signed-off-by: Andrew Morton Signed-off-by: David Woodhouse --- Reading git-diff-tree failed