aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mtd (follow)
AgeCommit message (Collapse)AuthorFilesLines
2005-01-05MTD: Cosmetic ident catchup.David Woodhouse2-2/+2
Let the CVS idents catch up where changes have been made upstream. Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2005-01-05[MTD] Bug in 2.6.10 mtd driver for physmem mapped flash chipsDavid Woodhouse1-2/+2
The patch below fixes a small but fatal bug in the code that handles non-buswidth-aligned writes. The problem is that the code used the same index in both map_word and buf, therefore putting the wrong words in the map_word that partially contains old data and partially contains new data. The result: corrupt data is being written. Signed-off-by: Koen Martens <kmartens@sonologic.nl> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2005-01-04Merge shinybook.infradead.org:/home/dwmw2/bk/linus-2.6David Woodhouse4-10/+123
into shinybook.infradead.org:/home/dwmw2/bk/mtd-2.6
2005-01-01[PATCH] diskonchip missing iomem annotationsAlexander Viro1-2/+2
some trivial iomem annotations were still missing Signed-off-by: Al Viro <viro@parcelfarce.linux.theplanet.co.uk> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-12-13MTD XIP support: allyesconfig compile fix.Nicolas Pitre1-2/+10
People insist on turning stuff on which doesn't make sense. Make it compile in the case where the platform doesn't provide the necessary XIP primitives. Signed-off-by: Nicolas Pitre <nico@cam.org> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2004-11-20MTD: Use msleep() in cfi_udelay() helper function.David Woodhouse1-8/+6
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2004-11-16MTD: NAND driver updatesDavid Woodhouse1-1/+7
- Support 2048-byte HW ECC (from Juha Yrjölä <juha.yrjola@nokia.com>) - Allow board drivers to provide pattern for bad block scanning Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2004-11-16MTD: Provide XIP support for Intel flash chips.David Woodhouse2-1/+102
This allows for MTD support to be used on flash memory which is also used for XIP purposes, either XIP kernel or XIP userspace. The whole idea is to relocate functions actually modifying the flash state away from array mode to ram and run them with interrupt disabled. When the flash needs some time to complete a certain operation, we poll the processor for pending (but still masked) interrupts, and when they occur we suspend the flash operation in order to unmask interrupts and let the system run again. Signed-off-by: Nicolas Pitre <nico@cam.org> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2004-11-16MTD: some cleanupsDavid Woodhouse1-2/+1
The patch below makes the following cleanups for code under drivers/mtd/ : - make some needlessly global code static Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2004-11-16MTD: Fix detection of hardware partitions in Intel flash chipsDavid Woodhouse1-1/+19
Determine it from the CFI query data instead of hard-coding it. Signed-off-by: Nicolas Pitre <nico@cam.org> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2004-10-21MTD: NAND flash driver updates.Thomas Gleixner1-3/+17
- Use new RS library for ECC - Add support for new NAND flash chips - New board support: - iPAQ H1910 - Renesas AG-AND devel board - Simtec S3C210 - Support for shared controllers on multiple chips. Signed-Off-By: Thomas Gleixner <tglx@linutronix.de> Signed-Off-By: David Woodhouse <dwmw2@infradead.org>
2004-10-21MTD: NOR flash chip driver updatesDavid Woodhouse1-14/+26
Mostly from Eric Biederman for supporting BIOS flash. - Move support firmware hub style lock and unlock into fhw_lock.h (from cfi_cmdset_0002) - Move cfi_varsize_frob into cfi_util from cfi_cmdset_0001.c and cfi_cmdset_0002.c - reduce gen_probe probe failuers to a debug level message - Modify cfi_fixup to take a struct mtd_info instead of a struct map_info So that the fixup routines can modify the mtd functions. - Modify cfi_cmdset_0001() to allocate and initialize the mtd structure before calling cfi_fixup. - Modify cfi_cmdset_0002() to allocate and initialize the mtd structure before calling cfi_fixup. - Refactor the hard coded fixups in cfi_cmdset_0001 and cfi_cmdset_0002 so the improved cfi_fixup infrastructure. - Rewrote amd76xrom and ichxrom. They now report their starting physical address in their name. They now both handle multiple bankwidth configurations They both can create multipe mtd devices. They both now assume the rom windows are properly opened by the BIOS or whatever runs previous to them. Their code is now synchromized so it is almost identical, and could be a starting point for a x86_rom_probe. Signed-Off-By: David Woodhouse <dwmw2@infradead.org>
2004-10-21MTD map access: Fix calculation of the number of longs in a bus accessDavid Woodhouse1-7/+13
Patch from Ben Dooks <ben-mtd@fluff.org> Signed-Off-By: David Woodhouse <dwmw2@infradead.org>
2004-10-21MTD updates for __iomemThomas Gleixner1-4/+4
Signed-Off-By: Thomas Gleixner <tglx@linutronix.de> Signed-Off-By: David Woodhouse <dwmw2@infradead.org>
2004-10-19[PATCH] #include <asm/bitops.h> -> #include <linux/bitops.h>Adrian Bunk1-1/+1
There's no reason to directly #include <asm/bitops.h> since it's available on all architectures and also included by #include <linux/bitops.h>. This patch changes #include <asm/bitops.h> to #include <linux/bitops.h>. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-09-11Fix up and annotate MTD map usage of PCI memory accessLinus Torvalds1-1/+1
2004-08-10Restore physmap configure-time settings according to user requests.Josh Boyer1-3/+3
Patch from Jun Sun. Signed-Off-By: David Woodhouse <dwmw2@infradead.org>
2004-08-10Fix use-after-free bug in MTD partitioning code.David Woodhouse1-1/+13
Define callback wrapper function mtd_erase_callback() to handle partition offsets during the callback, rather than attempting to fix them up in the freed erase_info structure after the callback has already happened.
2004-07-20MTD: remove some kernel 2.0 and 2.2 #ifdef'sAdrian Bunk1-3/+1
The patch below (applies against 2.6.8-rc2) removes some #ifdef's for kernel 2.0 and 2.2 from the MTD code. Signed-off-by: Adrian Bunk <bunk@fs.tum.de> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2004-07-15NOR flash drivers updateDavid Woodhouse5-383/+574
- Handle cached access to flash chips on supporting platforms - Handle arrangements of chips larger than a single bus width - Clean up the AMD/Fujitsu chip driver - Update board 'mapping' drivers to match - New mapping drivers for new platforms.
2004-07-15MTD core include and device code cleanupDavid Woodhouse6-263/+56
- Move user-visible bits from headers to include/mtd/ directory. - Update old DiskOnChip drivers for newer hardware. - Switch NFTL and INFTL support to work with new DiskOnChip/NAND code. - New phram driver, reimplenting the ugly slram driver. - Bug fixes in partitioning code
2004-07-15NAND flash driver updates.David Woodhouse2-103/+310
Update the core NAND code: - support multiple chips - support bad block tables - improved generic ECC support and 'spare area' usage. - 16-bit NAND - Large-block NAND devices - Renesas AG-AND devices - M-Systems DiskOnChip devices - Other new board support wrappers Most of the work was done by Thomas Gleixner. Signed-Off-By: David Woodhouse <dwmw2@infradead.org>
2004-07-12[PATCH] sparse: switching afs to kvecAlexander Viro1-5/+0
- afs and rxrpc switched to kvec; definition of kvec moved to uio.h (duh). - afs/mntpt.c got missing cast added. at that point afs is sparse-clean and rxrpc has only one remaining warning (setsockopt from local variable, protected by set_fs()).
2004-07-10[PATCH] sparse: removal of iovec use in mtdAlexander Viro1-7/+12
mtd, jffs and jffs2 switched from iovec to kvec
2004-06-23[PATCH] sparse: trivial drivers/char/* annotation and format fixesAlexander Viro1-1/+1
- trivial annotation in several places in drivers/mtd - a bunch of debugging printks switched from %x to %llx (they get 64bit values) - in doc200[01].c fixed type of (unused) last argument in their doc_read_ecc().
2003-06-23Replace mtd_blktrans ->ioctl() method with ->getgeo() and ->flush()David Woodhouse1-10/+7
... and also fix the embarrassing bug where NFTL and INFTL will barf and exit if the add_mtd_blktrans_dev() function _exists_, rather than actually calling it and barfing if it returns non-zero :)
2003-06-23MTD driver cleanups...David Woodhouse1-2/+2
- Fix AFS partitioning oops when no partitions are found - Add missing spin_unlock, optimise buffer writes in Intel NOR driver - Fix DiskOnChip Millennium Plus register OutputControl register definition - Fix DiskOnChip drivers to indicate correct ECC type - Fix map drivers to use ARRAY_SIZE instead of redefining it. - Make uCLinux map driver depend on !MMU - Fix NAND write verify problem on some chips - Other trivia from Rusty.
2003-05-28Final cleanups for MTD merge. David Woodhouse1-1/+2
2003-05-28MTD and JFFS2 update.David Woodhouse16-390/+703
- JFFS2 bugfixes and performance improvements - Support for 64-bit flash arrangements - Optimise for linear mappings of flash, without out-of-line access functions - New map drivers - Updated NAND flash support, new board drivers - Support for DiskOnChip Millennium Plus and INFTL translation layer - Clean up all translation layers with a single blkdev helper library. - Fix races in MTD device registration/deregistration - Add support for new flash chips - Clean up partition parsing code More detailed comments in per-file changelogs.
2003-05-26[PATCH] better debug macro safetyRusty Russell1-4/+5
From: Rusty Russell <rusty@rustcorp.com.au> I don't think it's misused anywhere, but it's better to be safe. Pointed out by Joern Engel.
2003-04-07[PATCH] continued compatmac exterminationsAlan Cox1-1/+0
2003-03-30[SOFTIRQ]: Move softirq implementation to common area, add debug check.David S. Miller1-1/+0
1) Every arch implemented local_bh_foo identically, move to linux/interrupt.h 2) Kill all asm/softirq.h references 3) Kill asm/softirq.h itself 4) Move local_bh_disable() out of line to kernel/softirq.c 5) Add BUG check on irqs_disabled() to local_bh_disable()
2002-12-29[PATCH] more obsolete module API fixesChristoph Hellwig1-4/+1
completly remove the old try_inc_mod_count()
2002-12-29[PATCH] more module warning fixesChristoph Hellwig2-6/+2
this is only for the module-related warning introduced by my __deprecated patch.
2002-11-05MergeLinus Torvalds1-1/+1
2002-11-05[PATCH] PATCH: small attribution fixesDavid Hinds1-1/+1
This cleans up some obsolete email addresses.
2002-10-31[PATCH] fixes for building kernel 2.5.45 using Intel compilerJun Nakajima1-0/+1
I like Alan's idea: IGNLABEL("HmacRxAccepted")
2002-10-14[MTD] Update 2.5 MTD code from MTD CVS and ARM treeRussell King1-0/+23
This cset updates the 2.5 MTD code from the MTD CVS. David Woodhouse is happy with me sending this. Summary of changes: - Add MTD device concatenation support module. - Bootldr MTD partition parsing is obsolete, replaced by command-line based partition information. - Add support for ARM map drivers: AUTCPU12, Ceiva, Camelot, Fortunet, edb7312, Impa7, PCI - Add support for PCMCIA memory cards - Update help texts for: Ocelot, ITE QED-4N-S01B, Flaga Please note that this does not completely synchronise the 2.5 kernel tree with MTD CVS.
2002-08-10[PATCH] clean up major_nameAlexander Viro1-0/+1
->major_name for per-disk gendisks set to full name - i.e. IDE gendisks have "hda", "hdb", etc. instead of "hd". As the result, we kill a lot of crap in check.c::disk_name(). In particular, now we can afford ->minor_shift set to 0 for ide-cd (disk_name() was the only obstacle)
2002-04-02[PATCH] Fix up broken do while macros.Dave Jones1-2/+2
2002-02-05v2.5.2.1 -> v2.5.2.1.1Linus Torvalds1-1/+1
- David Howells: abtract out "current->need_resched" as "need_resched()" - Frank Davis: ide-tape update for bio - various: header file fixups - Jens Axboe: fix up bio/ide/highmem issues - Kai Germaschewski: ISDN update - Tim Waugh: parport update - Patrik Mochel: initcall update - Greg KH: USB and Compaq PCI hotplug updates
2002-02-04v2.4.14.1 -> v2.4.14.2Linus Torvalds1-3/+1
- Ivan Kokshaysky: fix alpha dec_and_lock with modules, for alpha config entry - Kai Germaschewski: ISDN updates - Jeff Garzik: network driver updates, sysv fs update - Kai Mäkisara: SCSI tape update - Alan Cox: large drivers merge - Nikita Danilov: reiserfs procfs information - Andrew Morton: ext3 merge - Christoph Hellwig: vxfs livelock fix - Trond Myklebust: NFS updates - Jens Axboe: cpqarray + cciss dequeue fix - Tim Waugh: parport_serial base_baud setting - Matthew Dharm: usb-storage Freecom driver fixes - Dave McCracken: wait4() thread group race fix
2002-02-04v2.4.10.3 -> v2.4.10.4Linus Torvalds8-111/+52
- Al Viro: separate out superblocks and FS namespaces: fs/super.c fathers fs/namespace.c - David Woodhouse: large MTD and JFFS[2] update - Marcelo Tosatti: resurrect oom handling - Hugh Dickins: add_to_swap_cache racefix cleanup - Jean Tourrilhes: IrDA update - Martin Bligh: support clustered logical APIC for >8 CPU x86 boxes - Richard Henderson: alpha update
2002-02-04v2.4.9.9 -> v2.4.9.10Linus Torvalds1-1/+1
- Alan Cox: continued merging - Mingming Cao: make msgrcv/shmat check the queue/segment ID's properly - Greg KH: USB serial init failure fix, Xircom serial converter driver - Neil Brown: nsfd/raid/md/lockd cleanups - Ingo Molnar: multipath RAID personality, raid xor update - Hugh Dickins/Marcelo Tosatti: swapin read-ahead race fix - Vojtech Pavlik: fix up some of the infrastructure for x86-64 - Robert Love: AMD 761 AGP GART support - Jens Axboe: fix SCSI-generic queue handling race - me: be sane about page reference bits
2002-02-04v2.4.8.4 -> v2.4.9Linus Torvalds1-4/+0
- David Miller: sparc updates, FAT fs fixes, btaudio build fix - David Gibson: Orinoco driver update - Kevin Fleming: more disks the HPT controller doesn't like - David Miller: "min()/max()" cleanups. Understands signs and sizes. - Ben LaHaise: make vma merging more generous, help Mozilla /proc/<>/maps - Jens Axboe: CD updates - Trond Myklebust: save away NFS credentials in inode, so that mmap can writeout. - Mark Hemment: HIGHMEM ops cleanups - Jes Sorensen: use "unsigned long" for flags in various drivers
2002-02-04v2.4.6.9 -> v2.4.7Linus Torvalds1-1/+2
- me: fix ptrace and /proc issues with new core-dump permissions - numerous: IDE tape driver update for completion handlers - Ben Collins: ieee1394 GUID cleanups - Jacek Stepniewski: nasty deadlock in rename()
2002-02-04v2.4.5.2 -> v2.4.5.3Linus Torvalds10-174/+563
- remember to increment the version number - Chris Mason: reiserfs mark_journal_new and bh leak fix - Richard Gooch: devfs update - Alexander Viro: further FS cleanup (superblock list) - David Woodhouse: MTD update - Kai Germaschewski: ISDN update (stanford checker fixes etc) - Rich Baum: gcc-3.0 warning fixes - Jeff Garzik: network driver updates - Geert Uytterhoeven: m68k fbdev logo merge glitch fix - Andrea Arcangeli: fix signal return path - David Miller: Sparc updates - Johannes Erdfelt: USB update - Carsten Otte, Andries Brouwer: don't clear blk_size unconditionally on partition check - Martin Frey: alpha Sable irq fix - Paul Mackerras: PPC softirq update - Patrick Mochel: PCI power management infrastructure - Robert Siemer: miroSOUND driver update - Neil Brown: knfsd updates, including ability to export ReiserFS filesystems - Trond Myklebust: NFS readdir fixup, don't update atime on client - Andrew Morton: truncate_inode_pages speedup - Paul Menage: make inode quota count all inodes..
2002-02-04v2.4.1.2 -> v2.4.1.3Linus Torvalds1-1/+1
- Jens: better ordering of requests when unable to merge - Neil Brown: make md work as a module again (we cannot autodetect in modules, not enough background information) - Neil Brown: raid5 SMP locking cleanups - Neil Brown: nfsd: handle Irix NFS clients named pipe behavior and dentry leak fix - maestro3 shutdown fix - fix dcache hash calculation that could cause bad hashes under certain circumstances (Dean Gaudet) - David Miller: networking and sparc updates - Jeff Garzik: include file cleanups - Andy Grover: ACPI update - Coda-fs error return fixes - rth: alpha Jensen update
2002-02-04v2.4.1.1 -> v2.4.1.2Linus Torvalds2-5/+5
- driver sync up with Alan - Andrew Morton: wakeup cleanup and race fix - Paul Mackerras: macintosh driver updates. - don't trust "page_count()" on reserved pages! - Russell King: fix serious IDE multimode write bug! - me, Jens, others: fix elevator problem - ARM, MIPS and cris architecture updates - alpha updates: better page clear/copy, avoid kernel lock in execve - USB and firewire updates - ISDN updates - Irda updates
2002-02-04Import changesetLinus Torvalds15-0/+1657