aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
Commit message (Collapse)AuthorAgeFilesLines
* [MTD] CFI DEBUG_LOCK_BITS fixes for Intel NOR flash:Todd Poynor2005-05-231-2/+3
| | | | | | | | adjust chip-relative offsets to block address, write to block address + 2 per recent datasheets. Signed-off-by: Todd Poynor <tpoynor@mvista.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* [MTD] mtdram: Quick cleanup of the driver:Joern Engel2005-05-231-169/+96
| | | | | | | | | - Lindent - Removal of slram/phram functionality - Removal of most #ifdefs Signed-off-by: Joern Engel <joern@wohnheim.fh-wedel.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* [MTD] NAND: Fix the broken dynamic array allocationsJarkko Lavinen2005-05-231-5/+5
| | | | | | | | Reverting the change from 1.136 to 1.137 (back to static allocation of ecc arrays) due to stack corruption and ecc errors. Signed-off-by: Jarkko Lavinen <jarkko.lavinen@nokia.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* [MTD] DiskOnChip: Add some commentsDan Brown2005-05-231-1/+11
| | | | | | | | Add helpful comment about oobfree so I can't claim two years from now that I don't remember what I was thinking. Signed-off-by: Dan Brown <dan_brown@ieee.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* [MTD] DiskOnChip: Fix compile w/o CONFIG_MTD_PARTITIONS.Dan Brown2005-05-231-3/+1
| | | | | Signed-off-by: Dan Brown <dan_brown@ieee.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* [MTD] DiskOnChip: Prevent problems with existing filesystemsDan Brown2005-05-231-2/+2
| | | | | | | | Try not to break existing jffs2 installs, instead break oobfree into two out-of-order pieces. Signed-off-by: Dan Brown <dan_brown@ieee.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* [MTD] NAND: Fix reading of autoplaced OOB when there are multiple free sections.Dan Brown2005-05-231-4/+3
| | | | | Signed-off-by: Dan Brown <dan_brown@ieee.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* [MTD] DiskOnChip: Fix (?) free OOB array info.Dan Brown2005-05-231-2/+2
| | | | | | | I really hope this doesn't break something. Signed-off-by: Dan Brown <dan_brown@ieee.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* [MTD] NAND: Move the NULL check into the calling functionThomas Gleixner2005-05-231-8/+8
| | | | Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* [MTD] NAND: Fix missing NULL pointer checkDan Brown2005-05-231-7/+7
| | | | | | | Version 1.137 broke nand_read_ecc clients who pass NULL oobsel. Fixed. Signed-off-by: Dan Brown <dan_brown@ieee.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* [MTD] Fix OTP for top-parameter devicesNicolas Pitre2005-05-231-2/+14
| | | | | Signed-off-by: Nicolas Pitre <nico@cam.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* [MTD] Reset file position when switching OTP modeNicolas Pitre2005-05-231-1/+2
| | | | | Signed-off-by: Nicolas Pitre <nico@cam.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* [MTD] NAND: Fix oob available calculationThomas Gleixner2005-05-231-7/+4
| | | | | | Use oobfree to calculate the number of oob bytes available for fs usage Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* [MTD] Add reboot notifier to Intel NOR flash driverNicolas Pitre2005-05-231-2/+43
| | | | | | | | | to make sure the flash is in array mode whenever we're about to reboot. This is especially useful to allow "soft" reboot to work which consists of branching back into the bootloader. Signed-off-by: Nicolas Pitre <nico@cam.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* [MTD] Avoid compile warnings for Intel CFI flash without OTP support.Todd Poynor2005-05-231-1/+3
| | | | | Signed-off-by: Todd Poynor <tpoynor@mvista.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* [MTD] cfi_cmdset_0001: Skip delay if Instant Block Locking is setTodd Poynor2005-05-231-4/+12
| | | | | | | | Skip jiffy delay after each block lock/unlock for Intel CFI flash with the "Instant Individual Block Locking" feature bit set. Signed-off-by: Todd Poynor <tpoynor@mvista.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* [MTD] DiskOnChip: Scan the entire device for Media Headers. Dan Brown2005-05-231-22/+28
| | | | | | | Add a new module param, show_firmware_partition. Signed-off-by: Dan Brown <dan_brown@ieee.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* [MTD] NAND: Use arrays of needed size instead of constant-sized.Artem B. Bityuckiy2005-05-231-5/+5
| | | | | Signed-off-by: Artem B. Bityuckiy <dedekind@infradead.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* [MTD] sharpsl-flash: Correct error pathsRichard Purdie2005-05-231-5/+10
| | | | | Signed-off-by: Richard Purdie <rpurdie@rpsys.net> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* [MTD] Add support for more SharpSL machines and fix missing mapping initRichard Purdie2005-05-231-6/+20
| | | | | Signed-off-by: Richard Purdie <rpurdie@rpsys.net> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* [MTD] plat-ram: Make it usable on non ARM platformsThomas Gleixner2005-05-231-2/+2
| | | | | | Use memset instead of ARM only memzero function Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* [MTD] block2mtd: Fix incompatible pointer typeThomas Gleixner2005-05-231-9/+8
| | | | Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* [MTD] cfi_cmdset_0001: Fix compiler warningsThomas Gleixner2005-05-231-5/+5
| | | | Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* [MTD] NAND nandsim: Use NAND_SKIP_BBT optionArtem B. Bityuckiy2005-05-231-29/+12
| | | | | | | | Use the new NAND_SKIP_BBT option instead of defining a fake scan_bbt handler. Signed-off-by: Artem B. Bityuckiy <dedekind@infradead.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* [MTD] ixp2000: Remove port setting codeLennert Buytenhek2005-05-231-6/+1
| | | | | | | | | | | | | | Setting the slowport to 8-bit mode is something that ought to be done in the IXP2000 generic code, not in the MTD map driver. See the description for ARM patch 2493/1 for an explanation. http://www.arm.linux.org.uk/developer/patches/viewpatch.php?id=2493/1 Now that 2493/1 has been accepted and will be upstream soon, this doesn't need to be done in the map driver anymore. Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* [MTD] Kernel Janitor fixes.Domen Puncer2005-05-234-8/+8
| | | | | Signed-off-by: Domen Puncer <domen@coderock.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* [MTD] Fix typo in KconfigThomas Gleixner2005-05-231-2/+2
| | | | Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* [MTD] NAND s3c2410: Simplify command handlingBen Dooks2005-05-231-106/+12
| | | | | | | | Updated with tglx's suggestion to simply the command invocation by simply changing the address of the IO write area Signed-off-by: Ben Dooks <ben@simtec.co.uk> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* [MTD] cfi_cmdset_0001: Fix state after syncNicolas Pitre2005-05-231-1/+2
| | | | | | | oldstate has to be reset to FL_READY after sync completion. Signed-off-by: Nicolas Pitre <nico@cam.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* [MTD] cfi_cmdset_0001: Fix the buggy status check. Thomas Gleixner2005-05-231-13/+3
| | | | | | | The change makes the code endianess aware and replaces the bogus nested loop to or the status flags together. Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* [MTD] plat-ram: removed extraneous debugging codeBen Dooks2005-05-231-10/+2
| | | | | | | | removed define of DEBUG removed extraneous debugging code Signed-off-by: Ben Dooks <ben@simtec.co.uk> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* [MTD] NAND: Fixed unused loop variableBen Dooks2005-05-231-2/+2
| | | | | Signed-off-by: Ben Dooks <ben@simtec.co.uk> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* [MTD] phram: Allow short reads. Joern Engel2005-05-231-8/+22
| | | | | | | | Jffs2 apparently needs this. Accept newline at the end of input. Signed-off-by: Joern Engel <joern@wohnheim.fh-wedel.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* [MTD] block2mtd: Remove copyright. Fix offset calculationJoern Engel2005-05-231-4/+3
| | | | | | | | - Remove Gareth from the Copyrights (at his own request) - Fix the "fscking embarrassment" Signed-off-by: Joern Engel <joern@wohnheim.fh-wedel.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* [MTD] Remove Elan-104NCDavid Vrabel2005-05-233-241/+2
| | | | | | | Remove support for the Arcom Elan-104NC since it's no longer being maintained. Signed-off-by: David Vrabel <dvrabel@arcom.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* [MTD] NAND: Use cond_resched instead of msleepThomas Gleixner2005-05-231-2/+2
| | | | | | | Replace msleep by cond_resched. On machines with HZ=100 (e.g. ARM) msleep slows down the operation by factor 10 Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* [MTD] Replace all the Au1x mapping drivers with a simplified single driverPete Popov2005-05-237-867/+199
| | | | | | | | This driver does not have as many options but it's easier to maintain. And, it turns out AMD never shipped boards with different flash densities. Signed-off-by: Pete Popov <ppopov@pacbell.net> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* [MTD] Use after free, found by the Coverity toolJoern Engel2005-05-231-3/+3
| | | | | | Signed-off-by: Alexander Nyberg <alexn@dsv.su.se> Signed-off-by: Joern Engel <joern@wohnheim.fh-wedel.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* [MTD] NAND: Check command timeoutThomas Gleixner2005-05-231-11/+26
| | | | | | | | | Check timeout while we wait for the command to finish. No worry about a false result. This prevents deadlocking when detecting an unknown number of chips and is useful for removable media too. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* [MTD] DiskOnChip: Wait for the command to finish.Thomas Gleixner2005-05-231-2/+9
| | | | | | | Do not use the ready function here, as it might hang for ever. The result will show, whether the chip is there or not Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* [MTD] Sparse fixesBen Dooks2005-05-231-9/+11
| | | | | | | | | Fix sparse errors due to lack of address-space markers Updated header comments Small re-format of initialiser Signed-off-by: Ben Dooks <ben@simtec.co.uk> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* [MTD] Fix unregister_mtd_user() public function documentation.Artem B. Bityuckiy2005-05-231-3/+3
| | | | | Signed-off-by: Artem B. Bityuckiy <dedekind@infradead.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* [MTD] Update BAST driver configurationBen Dooks2005-05-231-4/+5
| | | | | | | | update the BAST driver config (which already supports the vr1000) to be selected only if the vr1000 has been configured Signed-off-by: Ben Dooks <ben@simtec.co.uk> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* [MTD] Make OTP actually work.Nicolas Pitre2005-05-231-3/+5
| | | | | | | The OTP code is rather broken without this. Signed-off-by: Nicolas Pitre <nico@cam.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* [MTD] NAND: Fix bad block table scan for small page devicesArtem B. Bityuckiy2005-05-231-29/+30
| | | | | | | | Scan 1st and 2nd pages of SP devices for BB marker by default. Fix more then one page scanning in create_bbt.c. Signed-off-by: Artem B. Bityuckiy <dedekind@infradead.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* [MTD] NAND: Early Manufacturer ID lookupKyungmin Park2005-05-232-12/+11
| | | | | | | | Move manufacturer ID search to display correct ID in case of buswidth mismatch. Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* [MTD] Add SST 39VF1601 (MPF+) IDBen Dooks2005-05-231-1/+17
| | | | | Signed-off-by: Ben Dooks <ben@simtec.co.uk> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* [MTD] Fixup probing logic for single 16bit devicesBen Dooks2005-05-231-1/+11
| | | | | | | | | | | | | | | | | | | The change to the generic probe to look for the smallest width of chip first is causing some problems on boards with a single 16bit device. The problem seems to be the jedec_match() is truncating the device-id read from the table to match against the one read from the hardware, causing a match against the partial id of some chips with 16bit IDs (such as the SST39LF160) This fixes things for my own board, but something may need to be done if the same problem is exhibited for chips with an 8bit ID Signed-off-by: Ben Dooks <ben@simtec.co.uk> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* [MTD] NAND: Read only OOB bytes during bad block scanArtem B. Bityuckiy2005-05-231-14/+38
| | | | | | | | | | | | When scanning NAND for bad blocks, don't read the whole page, read only needed OOB bytes instead. Also check the return code of the nand_read_raw() function. Correctly free the this->bbt array in case of failure. Tested with Large page NAND. Fix debugging message. Signed-off-by: Artem B. Bityuckiy <dedekind@infradead.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
* [MTD] NAND: Allow operation without bad block tableArtem B. Bityuckiy2005-05-231-2/+3
| | | | | | | | Small bugfix. Sometimes it may be handy not to have bbt. So, this->bbt might be NULL. Signed-off-by: Artem B. Bityuckiy <dedekind@infradead.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>