The patch titled AVR32 MTD: Unlock flash if necessary has been removed from the -mm tree. Its filename is avr32-mtd-unlock-flash-if-necessary-try-2.patch This patch was dropped because it is obsolete ------------------------------------------------------ Subject: AVR32 MTD: Unlock flash if necessary From: Haavard Skinnemoen <hskinnemoen@xxxxxxxxx> If a cfi_cmdset_0002 fixup installs an unlock() operation, use it to unlock the whole flash after the erase regions have been set up. I wanted to do this in the fixup itself, but it wouldn't work because the erase regions hadn't been initialized, and mtd->size was zero. Signed-off-by: Haavard Skinnemoen <hskinnemoen@xxxxxxxxx> Cc: David Woodhouse <dwmw2@xxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- drivers/mtd/chips/cfi_cmdset_0002.c | 9 +++++++++ 1 files changed, 9 insertions(+) diff -puN drivers/mtd/chips/cfi_cmdset_0002.c~avr32-mtd-unlock-flash-if-necessary-try-2 drivers/mtd/chips/cfi_cmdset_0002.c --- a/drivers/mtd/chips/cfi_cmdset_0002.c~avr32-mtd-unlock-flash-if-necessary-try-2 +++ a/drivers/mtd/chips/cfi_cmdset_0002.c @@ -416,6 +416,15 @@ static struct mtd_info *cfi_amdstd_setup } #endif + /* + * If an unlock() operation was installed by a fixup, use it + * now to unlock the whole flash. + */ + if (mtd->unlock && mtd->unlock(mtd, 0, mtd->size)) + printk(KERN_WARNING "%s: unlock failed, writes may not work\n", + map->name); + + /* FIXME: erase-suspend-program is broken. See http://lists.infradead.org/pipermail/linux-mtd/2003-December/009001.html */ printk(KERN_NOTICE "cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.\n"); _ Patches currently in -mm which might be from hskinnemoen@xxxxxxxxx are git-mtd.patch avr32-arch.patch avr32-config_debug_bugverbose-and-config_frame_pointer.patch avr32-fix-invalid-constraints-for-stcond.patch avr32-add-support-for-irq-flags-state-tracing.patch avr32-turn-off-support-for-discontigmem-and-sparsemem.patch avr32-always-enable-config_embedded.patch avr32-export-the-find__bit-functions.patch avr32-add-defconfig-for-at32stk1002.patch avr32-use-autoconf-instead-of-marker.patch avr32-dont-assume-anything-about-max_nr_zones.patch avr32-add-i-o-port-access-primitives.patch avr32-use-linux-pfnh.patch avr32-kill-config_discontigmem-support-completely.patch avr32-fix-bug-in-__avr32_asr64.patch avr32-switch-to-generic-timekeeping-framework.patch avr32-set-kbuild_defconfig.patch avr32-kprobes-compile-fix.patch avr32-asm-ioh-should-include-asm-byteorderh.patch avr32-fix-output-constraints-in-asm-bitopsh.patch avr32-standardize-pxx_page-macros-fix.patch avr32-rename-at32stk100x-atstk100x.patch avr32-dont-leave-dbe-set-when-resetting-cpu.patch avr32-make-prot_write-prot_exec-imply-prot_read.patch avr32-remove-set_wmb.patch avr32-use-parse_early_param.patch avr32-fix-exported-headers.patch avr32-fix-__const_udelay-overflow-bug.patch avr32-mtd-static-memory-controller-driver-try-2.patch avr32-mtd-unlock-flash-if-necessary-try-2.patch avr32-mtd-at49bv6416-platform-device-for-atstk1000.patch avr32-mtd-unlock-flash-if-necessary.patch generic-ioremap_page_range-implementation.patch generic-ioremap_page_range-implementation-fix.patch generic-ioremap_page_range-implementation-nommu-fix.patch generic-ioremap_page_range-flush_cache_vmap.patch generic-ioremap_page_range-alpha-conversion.patch generic-ioremap_page_range-avr32-conversion.patch generic-ioremap_page_range-cris-conversion.patch generic-ioremap_page_range-i386-conversion.patch generic-ioremap_page_range-i386-conversion-fix.patch generic-ioremap_page_range-m32r-conversion.patch generic-ioremap_page_range-mips-conversion.patch generic-ioremap_page_range-mips-conversion-fix.patch generic-ioremap_page_range-parisc-conversion.patch generic-ioremap_page_range-s390-conversion.patch generic-ioremap_page_range-sh-conversion.patch generic-ioremap_page_range-sh64-conversion.patch generic-ioremap_page_range-x86_64-conversion.patch generic-ioremap_page_range-x86_64-conversion-fix.patch avr32-implement-kernel_execve.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html