]> git.karo-electronics.de Git - mv-sheeva.git/log
mv-sheeva.git
19 years ago[MTD] core: Clean up trailing white spaces
Thomas Gleixner [Mon, 7 Nov 2005 11:15:26 +0000 (11:15 +0000)]
[MTD] core: Clean up trailing white spaces

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[MTD] chips cfi_cmdset_0002: Prevent timeout race
Konstantin Baidarov [Mon, 7 Nov 2005 09:00:05 +0000 (09:00 +0000)]
[MTD] chips cfi_cmdset_0002: Prevent timeout race

We've noticed that sometimes "MTD do_write_buffer(): software timeout"
message was printed out when writing to a Fujitsu NOR flash.
It turned out that this was because of a race in the timeout handling
do_write_buffer(). A small timeout of (HZ / 1000) + 1 is used there, and
sometimes if the timer interrupt handling takes more than one or even two
jiffies (which is 1-2 ms with HZ == 1000) and that interrupt happens just
after chip_ready() call, the driver bails out from a ready polling loop
despite the chip has actually become ready while all those interrupts were
handled. To deal with this issue, extra check for chip ready is neccessary on
timeout expiration (and the checks should better be reordered).
As do_write_oneword() uses the same approach, it needs to also be changed.

Signed-off-by: Konstantin Baidarov <kbaidarov@ru.mvista.com>
Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[MTD] maps: Add support for the "TQM834x" Boards
Marian Balakowicz [Mon, 7 Nov 2005 08:33:38 +0000 (08:33 +0000)]
[MTD] maps: Add support for the "TQM834x" Boards

The following patch adds support for the TQ Systems  TQM834x  Boards.
Verified on TQM8349L.

This is a resubmit after integrating the suggested changes.

Signed-off-by: Marian Balakowicz <m8@semihalf.com>
Signed-off-by: Wolfgang Denk <wd@denx.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[MTD] maps ixp2000: fix compile warnings in ixp2000 map driver
Lennert Buytenhek [Mon, 7 Nov 2005 08:09:05 +0000 (08:09 +0000)]
[MTD] maps ixp2000: fix compile warnings in ixp2000 map driver

Fix two compile warnings that occur because of treating two
'unsigned long's as 'void *'s.

Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[MTD] NAND Kconfig: Simplify dependencies
Thomas Gleixner [Mon, 7 Nov 2005 01:49:43 +0000 (02:49 +0100)]
[MTD] NAND Kconfig: Simplify dependencies

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[MTD] maps/plat-ram: Avoid gcc 4.0 warning
Thomas Gleixner [Mon, 7 Nov 2005 00:52:27 +0000 (00:52 +0000)]
[MTD] maps/plat-ram: Avoid gcc 4.0 warning

The assignement of a "const char *" to a "char *" variable
is emitting a warning with gcc 4.0. We cannot change
mtd->name to "const char *" as we have dynamic assignements
of the name. So casting is the correct solution here

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[MTD] NAND: nand_write_ecc memory and OOB corruption
Todd Poynor [Sat, 5 Nov 2005 03:21:15 +0000 (03:21 +0000)]
[MTD] NAND: nand_write_ecc memory and OOB corruption

Nathan Roberts noticed the nand_write_ecc index into oobbuf goes out of
bounds when crossing an erase block boundary, causing incorrect OOB data
to be written and corrupting memory.  Reset the index to zero after
re-preparing oobbuf for a new erase block.

Signed-off-by: Todd Poynor <tpoynor@mvista.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[MTD] NAND nand_base: Fix shift for bad block check (16bit devices only)
Vitaly Wool [Wed, 2 Nov 2005 16:54:46 +0000 (16:54 +0000)]
[MTD] NAND nand_base: Fix shift for bad block check (16bit devices only)

In case of an odd offset, the result was shifted by 1 instead of 8

Signed-off-by: Vitaly Wool <vwool@ru.mvista.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[MTD] OneNAND/Kconfig: Fix dependencies
Thomas Gleixner [Mon, 7 Nov 2005 00:14:05 +0000 (01:14 +0100)]
[MTD] OneNAND/Kconfig: Fix dependencies

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years agoRevert "[PATCH] OneNAND: Add simulator"
Thomas Gleixner [Mon, 7 Nov 2005 00:11:04 +0000 (01:11 +0100)]
Revert "[PATCH] OneNAND: Add simulator"

This reverts 405c829f98d216925de00af2ee52f969f2c2891c commit.

19 years ago[MTD] maps/Kconfig: Simplify and update dependencies
Sean Young [Wed, 29 Jun 2005 09:46:19 +0000 (09:46 +0000)]
[MTD] maps/Kconfig: Simplify and update dependencies

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[MTD] maps/ts5500: Fix partition support. Code cleanup
Sean Young [Wed, 29 Jun 2005 09:46:19 +0000 (09:46 +0000)]
[MTD] maps/ts5500: Fix partition support. Code cleanup

Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[MTD] Tidy up Tims include cleanup
Thomas Gleixner [Sun, 6 Nov 2005 23:14:42 +0000 (00:14 +0100)]
[MTD] Tidy up Tims include cleanup

While we are at it, reorder the includes and
remove the silly /* TASK */ comment

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[MTD] maps/ixp4xx: kill some warnings
David Vrabel [Tue, 1 Nov 2005 16:46:19 +0000 (16:46 +0000)]
[MTD] maps/ixp4xx: kill some warnings

- Use map.virt instead of map.map_priv_1 since it has the correct type.
- Use readw/writew instead of dereferencing an ioremap'd cookie.
- Remove an unused variable.

Signed-off-by: David Vrabel <dvrabel@arcom.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[MTD] NAND sharpsl.c: Add support for akita and borzoi models
Richard Purdie [Thu, 3 Nov 2005 11:36:45 +0000 (11:36 +0000)]
[MTD] NAND sharpsl.c: Add support for akita and borzoi models

The Sharp Zaurus akita and borzoi models are large page flash devices.
This patch adds support for them to the sharpsl MTD NAND driver but
keeps the oob layout and bad block positions compatible with the Sharp
Zaurus 2.4 kernel and ROM bootloader.

Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[MTD] chips/cfi_cmdset_0001: fix for P30 cfi parsing
Nicolas Pitre [Tue, 25 Oct 2005 20:28:43 +0000 (21:28 +0100)]
[MTD] chips/cfi_cmdset_0001: fix for P30 cfi parsing

Change to the extended cfi table parsing for Intel NOR flash that uses
the info in the extended table to 'walk' the table rather than using
hard coding for various primary extended query table version numbers.

From: Jared Hulbert <jaredeh@gmail.com>
Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[JFFS2] Fix broken compile when debug level = 2
Artem B. Bityutskiy [Mon, 24 Oct 2005 16:22:36 +0000 (17:22 +0100)]
[JFFS2] Fix broken compile when debug level = 2

Signed-off-by: Artem B. Bityutskiy <dedekind@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[MTD] NAND s3c2410.c: Fix timing calculation bugs
Ben Dooks [Thu, 20 Oct 2005 21:22:58 +0000 (22:22 +0100)]
[MTD] NAND s3c2410.c: Fix timing calculation bugs

Spotted by basprog@mail.ru

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[JFFS2] Return 0, not number of bytes written, for success at commit_write
Todd Poynor [Tue, 18 Oct 2005 23:29:38 +0000 (00:29 +0100)]
[JFFS2] Return 0, not number of bytes written, for success at commit_write

Some callers to block-layer commit_write function treat non-zero return as
error, notably the loopback mount driver sometimes used in conjunction with
JFFS2 on NAND flash for bad block avoidance, etc.  Return zero for success
as do various other commit_write functions.

Signed-off-by: Todd Poynor <tpoynor@mvista.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[MTD] Don't let gcc inline functions marked __xipram
Nicolas Pitre [Mon, 17 Oct 2005 21:03:19 +0000 (22:03 +0100)]
[MTD] Don't let gcc inline functions marked __xipram

If they get inlined into non __xipram functions we're screwed.

Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[MTD] NAND s3c2410.c: Fix missing dev parameter to dev_err
Ben Dooks [Mon, 10 Oct 2005 10:27:05 +0000 (11:27 +0100)]
[MTD] NAND s3c2410.c: Fix missing dev parameter to dev_err

Signed-off-by: Ben Dooks <ben@simtec.co.uk>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[MTD] maps/plat-ram.c: Initialize owner in device_driver struct
Ben Dooks [Mon, 10 Oct 2005 00:51:30 +0000 (01:51 +0100)]
[MTD] maps/plat-ram.c: Initialize owner in device_driver struct

Added .owner initialisation to allow the
tracking of the device_driver owners when
built as a module

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[MTD] maps/bast-flash.c: Initialize owner in device_driver struct
Ben Dooks [Mon, 10 Oct 2005 00:13:41 +0000 (01:13 +0100)]
[MTD] maps/bast-flash.c: Initialize owner in device_driver struct

Added owner to device driver field for tracking
when loaded as a module.

Signed-off-by: Ben Dooks <ben@simtec.co.uk>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[MTD] NAND: s3c2410.c Initialize owner in device_driver struct
Ben Dooks [Mon, 10 Oct 2005 00:09:19 +0000 (01:09 +0100)]
[MTD] NAND: s3c2410.c Initialize owner in device_driver struct

Added owner fields to the device_driver for tracking
ownership when built as a module

Signed-off-by: Ben Dooks <ben@simtec.co.uk>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[MTD] mtdpart.c: Allow eraseblock size != power of 2
Artem B. Bityutskiy [Fri, 30 Sep 2005 14:49:12 +0000 (15:49 +0100)]
[MTD] mtdpart.c: Allow eraseblock size != power of 2

Don't assume eraseblock size is power of 2.
Dataflash can have aligned eraseblock size.

From: Peter Menzebach <pm-mtd@mw-itcon.de>
Acked-by: Artem B. Bityutskiy <dedekind@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[JFFS2] Fix dataflash support
Artem B. Bityutskiy [Fri, 30 Sep 2005 13:59:17 +0000 (14:59 +0100)]
[JFFS2] Fix dataflash support

- assume wbuf may be of size which is not power of 2
- don't make strange assumption about not padding wbuf for DataFlash
- use wbuf = DataFlash page and eraseblock >= 8 Dataflash pages

From: Peter Menzebach <pm-mtd@mw-itcon.de>
Acked-by: Artem B. Bityutskiy <dedekind@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[MTD] OneNAND: Enhanced support for DDP (Dual Densitiy Packages)
Kyungmin Park [Thu, 29 Sep 2005 03:53:16 +0000 (04:53 +0100)]
[MTD] OneNAND: Enhanced support for DDP (Dual Densitiy Packages)

Add density mask for better support of DDP chips.

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[MTD] OneNAND: Power Management (PM) support
Kyungmin Park [Thu, 29 Sep 2005 02:55:31 +0000 (03:55 +0100)]
[MTD] OneNAND: Power Management (PM) support

Add suspend/resume

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[JFFS2] Use memset(struct) instead of nulling struct members one by one
Artem B. Bityutskiy [Tue, 27 Sep 2005 13:40:52 +0000 (14:40 +0100)]
[JFFS2] Use memset(struct) instead of nulling struct members one by one

Signed-off-by: Artem B. Bityutskiy <dedekind@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[JFFS2] Remove stale comment
Artem B. Bityutskiy [Tue, 27 Sep 2005 13:17:32 +0000 (14:17 +0100)]
[JFFS2] Remove stale comment

Signed-off-by: Artem B. Bityutskiy <dedekind@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[MTD] OneNAND: Add missing files
Kyungmin Park [Tue, 27 Sep 2005 10:26:39 +0000 (11:26 +0100)]
[MTD] OneNAND: Add missing files

Simple bad block table source and header files

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[MTD] NAND: s3c2410 use dev_err() to report errors instead of printk()
Ben Dooks [Mon, 26 Sep 2005 21:42:57 +0000 (22:42 +0100)]
[MTD] NAND: s3c2410 use dev_err() to report errors instead of printk()

Signed-off-by: Ben Dooks <ben@simtec.co.uk>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[JFFS2] Rename jffs2_summary_node to jffs2_raw_summary
Ferenc Havasi [Mon, 26 Sep 2005 11:37:25 +0000 (12:37 +0100)]
[JFFS2] Rename jffs2_summary_node to jffs2_raw_summary

Signed-off-by: Ferenc Havasi <havasi@inf.u-szeged.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[MTD] NAND: Alchemy board driver cleanup
Pete Popov [Fri, 23 Sep 2005 01:44:58 +0000 (02:44 +0100)]
[MTD] NAND: Alchemy board driver cleanup

- cleaned up the partitions and include files
- added more flexible CS and address detection and setup

Regression tested on db1200 and db1550.

Signed-off-by: Pete Popov <ppopov@pacbell.net>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[JFFS2] Debug code simplification, update TODO
Artem B. Bityutskiy [Thu, 22 Sep 2005 11:25:00 +0000 (12:25 +0100)]
[JFFS2] Debug code simplification, update TODO

Simplify the debugging code further.
Update the TODO list

Signed-off-by: Artem B. Bityutskiy <dedekind@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[MTD] maps: Add support for MTX-1 Flash device
Joern Engel [Sun, 18 Sep 2005 10:46:45 +0000 (11:46 +0100)]
[MTD] maps: Add support for MTX-1 Flash device

Add support for "4G Systems MTX-1 Flash device", better known as meshcube.

From: Bruno Randolf <bruno.randolf@4g-systems.biz>
Signed-off-by: Joern Engel <joern@wohnheim.fh-wedel.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[JFFS2] Account summary space in reserved_size.
Ferenc Havasi [Fri, 16 Sep 2005 12:58:20 +0000 (13:58 +0100)]
[JFFS2] Account summary space in reserved_size.

Always keep valid data in reserved_size.

It did not cause problems, but the reservation code was unoptimal
when centralized summary was active or the size of the erase block
was very small.

Signed-off-by: Ferenc Havasi <havasi@inf.u-szeged.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[MTD] NAND: Add suspend/resume functionality
Vitaly Wool [Thu, 15 Sep 2005 13:58:53 +0000 (14:58 +0100)]
[MTD] NAND: Add suspend/resume functionality

The changes introduced allow to suspend/resume NAND flash.
A new state (FL_PM_SUSPENDED) is introduced, as well as
routines for mtd->suspend and mtd->resume to put the flash in
suspended state from software pov.

Signed-off-by: Vitaly Wool <vwool@ru.mvista.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[MTD] maps: Add mapping driver for PQ2FADS boards.
Todd Poynor [Wed, 14 Sep 2005 19:14:17 +0000 (20:14 +0100)]
[MTD] maps: Add mapping driver for PQ2FADS boards.

From: Vitaly Bordug <vbordug@ru.mvista.com>
Signed-off-by: Todd Poynor <tpoynor@mvista.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[JFFS2] Debug message format clean up
Artem B. Bityutskiy [Wed, 14 Sep 2005 16:57:35 +0000 (17:57 +0100)]
[JFFS2] Debug message format clean up

Signed-off-by: Artem B. Bityutskiy <dedekind@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[JFFS2] Call summary collector for all mtd devices with writev support
Ferenc Havasi [Fri, 9 Sep 2005 15:12:01 +0000 (16:12 +0100)]
[JFFS2] Call summary collector for all mtd devices with writev support

Do the summary collection in the right place. If the device
was not writebuffered but had c->mtd->writev function
(e.g. blkmtd) the summary collector function was not called.

Signed-off-by: Ferenc Havasi <havasi@inf.u-szeged.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years agoOneNAND: Remove OMAP platform driver
Kyungmin Park [Fri, 9 Sep 2005 06:43:16 +0000 (07:43 +0100)]
OneNAND: Remove OMAP platform driver

Now we can use the generic platform driver

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[MTD] OneNAND: Add generic platform driver
Kyungmin Park [Fri, 9 Sep 2005 06:39:50 +0000 (07:39 +0100)]
[MTD] OneNAND: Add generic platform driver

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[MTD] maps/ixp4xx: remove platform specific bits
David Vrabel [Thu, 8 Sep 2005 10:32:23 +0000 (11:32 +0100)]
[MTD] maps/ixp4xx: remove platform specific bits

- Intel chip driver has a reboot notifier so no need to reset the chip here.
- Don't play with chip selects (platform code should do this if necessary).

Signed-off-by: David Vrabel <dvrabel@arcom.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[JFFS2] Return real jffs2_sum_init() error code
Ferenc Havasi [Wed, 7 Sep 2005 11:22:01 +0000 (12:22 +0100)]
[JFFS2] Return real jffs2_sum_init() error code

Signed-off-by: Ferenc Havasi <havasi@inf.u-szeged.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[JFFS2] Add erase block summary support (mount time improvement)
Ferenc Havasi [Wed, 7 Sep 2005 08:35:26 +0000 (09:35 +0100)]
[JFFS2] Add erase block summary support (mount time improvement)

The goal of summary is to speed up the mount time. Erase block summary (EBS)
stores summary information at the end of every (closed) erase block. It is
no longer necessary to scan all nodes separetly (and read all pages of them)
just read this "small" summary, where every information is stored which is
needed at mount time.

This summary information is stored in a JFFS2_FEATURE_RWCOMPAT_DELETE. During
the mount process if there is no summary info the orignal scan process will
be executed. EBS works with NAND and NOR flashes, too.

There is a user space tool called sumtool to generate this summary
information for a JFFS2 image.

Signed-off-by: Ferenc Havasi <havasi@inf.u-szeged.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[MTD] OneNAND: Remove experimental Kconfig dependency
Kyungmin Park [Sat, 3 Sep 2005 06:37:19 +0000 (07:37 +0100)]
[MTD] OneNAND: Remove experimental Kconfig dependency

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[PATCH] OneNAND: Fix bug in write verify
Kyungmin Park [Sat, 3 Sep 2005 06:36:21 +0000 (07:36 +0100)]
[PATCH] OneNAND: Fix bug in write verify

- Remove unused block, page parameters
- Add constant instead of runtime value

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[PATCH] OneNAND: Add simulator
Kyungmin Park [Sat, 3 Sep 2005 06:32:30 +0000 (07:32 +0100)]
[PATCH] OneNAND: Add simulator

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[PATCH] OneNAND: Update OMAP OneNAND mapping using device driver model
Kyungmin Park [Sat, 3 Sep 2005 06:20:08 +0000 (07:20 +0100)]
[PATCH] OneNAND: Update OMAP OneNAND mapping using device driver model

- Update OMAP OneNAND mapping file using device driver model
- Remove board specific macro and values.

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[PATCH] OneNAND: Simple Bad Block handling support
Kyungmin Park [Sat, 3 Sep 2005 06:15:48 +0000 (07:15 +0100)]
[PATCH] OneNAND: Simple Bad Block handling support

Based on NAND memory bad block table code

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[PATCH] OneNAND: Sync. Burst Read support
Kyungmin Park [Sat, 3 Sep 2005 06:07:19 +0000 (07:07 +0100)]
[PATCH] OneNAND: Sync. Burst Read support

Add OneNAND Sync. Burst Read support
Tested with OMAP platform

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[MTD] Add initial support for OneNAND flash chips
Kyungmin Park [Mon, 11 Jul 2005 10:41:53 +0000 (11:41 +0100)]
[MTD] Add initial support for OneNAND flash chips

OneNAND is a new flash technology from Samsung with integrated SRAM
buffers and logic interface.

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[JFFS2] Remove support for virtual blocks
Ferenc Havasi [Wed, 31 Aug 2005 13:51:04 +0000 (14:51 +0100)]
[JFFS2] Remove support for virtual blocks

Remove support for virtual blocks, which are build by
concatenation of multiple physical erase blocks.

For more information please read the MTD mailing list thread
"[PATCH] remove support for virtual blocks"

Signed-off-by: Ferenc Havasi <havasi@inf.u-szeged.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[JFFS2] Solve BUG caused by frag->node representing a hole in fragtree
Artem B. Bityutskiy [Mon, 22 Aug 2005 09:07:12 +0000 (10:07 +0100)]
[JFFS2] Solve BUG caused by frag->node representing a hole in fragtree

Signed-off-by: Artem B. Bityutskiy <dedekind@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[JFFS2] Calculate CRC check starting point correctly
Artem B. Bityutskiy [Wed, 17 Aug 2005 14:57:43 +0000 (15:57 +0100)]
[JFFS2] Calculate CRC check starting point correctly

When data starts from the beginning of NAND page, 'len' must be zero, not
c->wbuf_page.

Thanks to Zoltan Sogor for reporting this problem.

Signed-off-by: Artem B. Bityutskiy <dedekind@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[JFFS2] More message formatting cleanups
Artem B. Bityutskiy [Wed, 17 Aug 2005 14:13:48 +0000 (15:13 +0100)]
[JFFS2] More message formatting cleanups

Signed-off-by: Artem B. Bityutskiy <dedekind@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[JFFS2] Fix JFFS2 [mc]time handling
Artem B. Bityutskiy [Wed, 17 Aug 2005 13:46:26 +0000 (14:46 +0100)]
[JFFS2] Fix JFFS2 [mc]time handling

From: David Woodhouse <dwmw2@infradead.org>

Signed-off-by: Artem B. Bityutskiy <dedekind@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[JFFS2] Make the JFFS2 messages a bit nicer
Artem B. Bityutskiy [Wed, 17 Aug 2005 13:42:09 +0000 (14:42 +0100)]
[JFFS2] Make the JFFS2 messages a bit nicer

Signed-off-by: Artem B. Bityutskiy <dedekind@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[MTD] NAND: Use correct mask for OOB size calculation
Thomas Gleixner [Thu, 11 Aug 2005 17:13:46 +0000 (18:13 +0100)]
[MTD] NAND: Use correct mask for OOB size calculation

The bit mask used for oob size calculation was using 2 bits instead
of one. Fortunately the next bit has been 0 all the time.

Thanks to Nathan H. for pointing this out

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[MTD] Remove deprecated power management functions
Thomas Gleixner [Thu, 11 Aug 2005 17:13:46 +0000 (18:13 +0100)]
[MTD] Remove deprecated power management functions

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[MTD] Missing check on kmalloc return in INFTL mount.
David Woodhouse [Mon, 8 Aug 2005 08:56:22 +0000 (09:56 +0100)]
[MTD] Missing check on kmalloc return in INFTL mount.

Signed-off-by: Youssef Hmamouche <hyoussef@gmail.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[JFFS2] Teach JFFS2 about Sibley flash
Nicolas Pitre [Sat, 6 Aug 2005 04:51:33 +0000 (05:51 +0100)]
[JFFS2] Teach JFFS2 about Sibley flash

Intels Sibley flash needs JFFS2 write buffer functionality

Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[MTD] writev support for cfi-cmdset-0001
Nicolas Pitre [Sat, 6 Aug 2005 04:46:59 +0000 (05:46 +0100)]
[MTD] writev support for cfi-cmdset-0001

While this might be useful for all supported flash types, it is mandatory
for proper JFFS2 support with Sibley flash.

Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago{MTD] add support for Intel's "Sibley" flash
Nicolas Pitre [Sat, 6 Aug 2005 04:40:46 +0000 (05:40 +0100)]
{MTD] add support for Intel's "Sibley" flash

This updates the Primary Vendor-Specific Extended Query parsing to
version 1.4 in order to get the information about the Configurable
Programming Mode regions implemented in the Sibley flash, as well as
selecting the appropriate write command code.

This flash does not behave like traditional NOR flash when writing data.
While mtdblock should just work, further changes are needed for JFFS2 use.

Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[MTD] cleanups to cfi_cmdset_0001
Nicolas Pitre [Sat, 6 Aug 2005 04:16:52 +0000 (05:16 +0100)]
[MTD] cleanups to cfi_cmdset_0001

This includes improved error handling/reporting plus some other
message cleanups.

Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[MTD] Add Resident Flash Disk (RFD) support
Sean Young [Thu, 16 Jun 2005 08:49:33 +0000 (09:49 +0100)]
[MTD] Add Resident Flash Disk (RFD) support

This type of flash translation layer (FTL) is used by the Embedded BIOS
by General Software. It is known as the Resident Flash Disk (RFD), see:

http://www.gensw.com/pages/prod/bios/rfd.htm

Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[JFFS2] Debug code clean up - step 7
Artem B. Bityutskiy [Fri, 5 Aug 2005 11:43:47 +0000 (12:43 +0100)]
[JFFS2] Debug code clean up - step 7

Remove more noisy debugs. Add current->pid to debug messages.
Remove bogus includes.

Signed-off-by: Artem B. Bityutskiy <dedekind@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[JFFS2] Correct buggy length checks
Artem B. Bityutskiy [Thu, 4 Aug 2005 11:40:02 +0000 (12:40 +0100)]
[JFFS2] Correct buggy length checks

The previous changes introduced wrong length calculations.

Signed-off-by: Artem B. Bityutskiy <dedekind@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[JFFS2] Debug code clean up - step 6
Artem B. Bityutskiy [Wed, 3 Aug 2005 09:26:50 +0000 (10:26 +0100)]
[JFFS2] Debug code clean up - step 6

Remove extra noisy debugs

Signed-off-by: Artem B. Bityutskiy <dedekind@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[JFFS2] Build fragtree in reverse order
Artem B. Bityutskiy [Mon, 1 Aug 2005 12:05:22 +0000 (13:05 +0100)]
[JFFS2] Build fragtree in reverse order

Instead of building fragtree starting from node with the smallest version
number, start from the highest. This helps to avoid reading and checking
obsolete nodes.

Signed-off-by: Artem B. Bityutskiy <dedekind@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[JFFS2] Refine fragtree debug macros
Artem B. Bityutskiy [Sun, 31 Jul 2005 09:08:41 +0000 (10:08 +0100)]
[JFFS2] Refine fragtree debug macros

Signed-off-by: Artem B. Bityutskiy <dedekind@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[JFFS2] Move another fragtree-related function to nodelist.c
Artem B. Bityutskiy [Sun, 31 Jul 2005 08:20:48 +0000 (09:20 +0100)]
[JFFS2] Move another fragtree-related function to nodelist.c

Signed-off-by: Artem B. Bityutskiy <dedekind@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[JFFS2] Fix up new debug code for eCos build
Andrew Lunn [Sat, 30 Jul 2005 15:29:30 +0000 (16:29 +0100)]
[JFFS2] Fix up new debug code for eCos build

The debug code cleanup broke the eCos build.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[JFFS2] Debug code clean up - step 5
Artem B. Bityutskiy [Thu, 28 Jul 2005 14:46:43 +0000 (15:46 +0100)]
[JFFS2] Debug code clean up - step 5

Replace the D1(printk()) style debugging with the new debug macros

Signed-off-by: Artem B. Bityutskiy <dedekind@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[JFFS2] Move scattered function into related files
Artem B. Bityutskiy [Wed, 27 Jul 2005 14:46:14 +0000 (15:46 +0100)]
[JFFS2] Move scattered function into related files

Move functions to read inodes into readinode.c
Move functions to handle fragtree and dentry lists into nodelist.[ch]

Signed-off-by: Artem B. Bityutskiy <dedekind@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[JFFS2] Debug code clean up - step 4
Artem B. Bityutskiy [Wed, 27 Jul 2005 14:16:57 +0000 (15:16 +0100)]
[JFFS2] Debug code clean up - step 4

Small comment cleanups. Remove a unused macro

Signed-off-by: Artem B. Bityutskiy <dedekind@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[jffs2] Remove compressor lzo and lzari
Ferenc Havasi [Tue, 26 Jul 2005 13:24:43 +0000 (14:24 +0100)]
[jffs2] Remove compressor lzo and lzari

Remove unused compressor code

Signed-off-by: Ferenc Havasi <havasi@inf.u-szeged.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[JFFS2] Namespace clean up
Artem B. Bityutskiy [Sun, 24 Jul 2005 15:29:59 +0000 (16:29 +0100)]
[JFFS2] Namespace clean up

Rename functions to a name matching the functionality.
Remove stall debug code

Signed-off-by: Artem B. Bityutskiy <dedekind@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[JFFS2] Debug code clean up - step 3
Artem B. Bityutskiy [Sun, 24 Jul 2005 15:14:17 +0000 (16:14 +0100)]
[JFFS2] Debug code clean up - step 3

Various simplifiactions. printk format corrections.
Convert more code to use the new debug functions.

Signed-off-by: Artem B. Bityutskiy <dedekind@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[JFFS2] Fix slab panic
Artem B. Bityutskiy [Mon, 18 Jul 2005 11:21:23 +0000 (12:21 +0100)]
[JFFS2] Fix slab panic

When JFFS22 is unable to read the root inode, the bad root inode object is not
freed and remains sticked in the jffs2_i slab cache. When we further try to
free the slab cache (e.g., on rmmod jffs2), slab allocator subsystem panics.
Fix this bug.

Signed-off-by: Artem B. Bityutskiy <dedekind@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[JFFS2] Debug code clean up - step 2
Artem B. Bityutskiy [Sun, 17 Jul 2005 12:01:46 +0000 (13:01 +0100)]
[JFFS2] Debug code clean up - step 2

If debugging is disabled, define debugging functions as empty macros, instead
of using Dx() explicitly.

Signed-off-by: Artem B. Bityutskiy <dedekind@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[JFFS2] Use f->target instead of f->dents for symlink target
Artem B. Bityutskiy [Sun, 17 Jul 2005 11:13:51 +0000 (12:13 +0100)]
[JFFS2] Use f->target instead of f->dents for symlink target

JFFS2 uses f->dents to store the pointer to the symlink target string (in case
the inode is symlink). This is somewhat ugly to use the same field for
different reasons. Introduce distinct field f->target for this purpose.
Note, f->fragtree, f->dents, f->target may probably be put in a union.

Signed-off-by: Artem B. Bityutskiy <dedekind@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[JFFS2] Debug code clean up - step 1
Artem B. Bityutskiy [Sun, 17 Jul 2005 06:56:26 +0000 (07:56 +0100)]
[JFFS2] Debug code clean up - step 1

Move debug functions into a seperate source file

Signed-off-by: Artem B. Bityutskiy <dedekind@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years ago[JFFS2] Split a large routine on several smaller.
Artem B. Bityutskiy [Fri, 15 Jul 2005 10:13:57 +0000 (11:13 +0100)]
[JFFS2] Split a large routine on several smaller.

Signed-off-by: Artem B. Bityutskiy <dedekind@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 years agoMerge branch 'master' of /home/tglx/work/mtd/git/linux-2.6.git/
Thomas Gleixner [Sun, 6 Nov 2005 14:36:37 +0000 (15:36 +0100)]
Merge branch 'master' of /home/tglx/work/mtd/git/linux-2.6.git/

19 years ago[PATCH] nvidiafb: Geforce 7800 series support added
Calin A. Culianu [Sat, 5 Nov 2005 01:38:04 +0000 (20:38 -0500)]
[PATCH] nvidiafb: Geforce 7800 series support added

This adds support for the Nvidia Geforce 7800 series of cards to the
nvidiafb framebuffer driver.  All it does is add the PCI device id for
the 7800, 7800 GTX, 7800 GO, and 7800 GTX GO cards to the module device
table for the nvidiafb.ko driver, so that nvidiafb.ko will actually work
on these cards.

I also added the relevant PCI device ids to linux/pci_ids.h

I tested it on my 7800 GTX here and it works like a charm.  I now can
get framebuffer support on this card! Woo hoo!! Nothing like 200x75 text
mode to make your eyes BLEED.  ;)

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
19 years agoMerge branch 'srp' of master.kernel.org:/pub/scm/linux/kernel/git/roland/infiniband
Linus Torvalds [Sat, 5 Nov 2005 00:32:36 +0000 (16:32 -0800)]
Merge branch 'srp' of master.kernel.org:/pub/scm/linux/kernel/git/roland/infiniband

19 years agoMerge branch 'for-linus' of master.kernel.org:/pub/scm/linux/kernel/git/roland/infiniband
Linus Torvalds [Sat, 5 Nov 2005 00:31:54 +0000 (16:31 -0800)]
Merge branch 'for-linus' of master.kernel.org:/pub/scm/linux/kernel/git/roland/infiniband

19 years agoMerge master.kernel.org:/pub/scm/linux/kernel/git/paulus/powerpc-merge
Linus Torvalds [Sat, 5 Nov 2005 00:27:50 +0000 (16:27 -0800)]
Merge master.kernel.org:/pub/scm/linux/kernel/git/paulus/powerpc-merge

19 years agopowerpc: Fix vmlinux.lds.S for 32-bit
Paul Mackerras [Fri, 4 Nov 2005 23:36:59 +0000 (10:36 +1100)]
powerpc: Fix vmlinux.lds.S for 32-bit

We can't currently use asm-ppc/page.h in vmlinux.lds.S, so until
we have a merged page.h, define PAGE_SIZE and KERNELBASE locally.
Also gets rid of some dynamic executable cruft that we had for
32-bit.  With -Ttext=$(KERNELBASE) this didn't cause any problem,
but when we changed to putting . = KERNELBASE in the vmlinux.lds.S
this cruft caused the text to get linked at 0xa0 instead of
0xc0000000.  Oops.

Signed-off-by: Paul Mackerras <paulus@samba.org>
19 years agopowerpc: Merge smp.c and smp.h
Paul Mackerras [Fri, 4 Nov 2005 23:33:55 +0000 (10:33 +1100)]
powerpc: Merge smp.c and smp.h

This also moves setup_cpu_maps to setup-common.c (calling it
smp_setup_cpu_maps) and uses it on both 32-bit and 64-bit.

Signed-off-by: Paul Mackerras <paulus@samba.org>
19 years agoNFS,SUNRPC,NLM: fix unused variable warnings when CONFIG_SYSCTL is disabled
Chuck Lever [Tue, 1 Nov 2005 21:53:32 +0000 (16:53 -0500)]
NFS,SUNRPC,NLM: fix unused variable warnings when CONFIG_SYSCTL is disabled

 Fix some dprintk's so that NLM, NFS client, and RPC client compile
 cleanly if CONFIG_SYSCTL is disabled.

 Test plan:
 Compile kernel with CONFIG_NFS enabled and CONFIG_SYSCTL disabled.

Signed-off-by: Chuck Lever <cel@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
19 years agoSUNRPC: allow sunrpc.o to link when CONFIG_SYSCTL is disabled
Chuck Lever [Tue, 1 Nov 2005 17:24:48 +0000 (12:24 -0500)]
SUNRPC: allow sunrpc.o to link when CONFIG_SYSCTL is disabled

 The sunrpc module should build properly even when CONFIG_SYSCTL is
 disabled.

 Reported by Jan-Benedict Glaw.

 Test plan:
 Compile kernel with CONFIG_NFS as a module and built-in, and CONFIG_SYSCTL
 enabled and disabled.

Signed-off-by: Chuck Lever <cel@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
19 years agoNFSv4: Teach NFSv4 to cache locks when we hold a delegation
Trond Myklebust [Fri, 4 Nov 2005 20:39:36 +0000 (15:39 -0500)]
NFSv4: Teach NFSv4 to cache locks when we hold a delegation

 Now that we have a method of dealing with delegation recalls, actually
 enable the caching of posix and BSD locks.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
19 years agoNFSv4: Recover locks too when returning a delegation
Trond Myklebust [Fri, 4 Nov 2005 20:38:11 +0000 (15:38 -0500)]
NFSv4: Recover locks too when returning a delegation

 Delegations allow us to cache posix and BSD locks, however when the
 delegation is recalled, we need to "flush the cache" and send
 the cached LOCK requests to the server.

 This patch sets up the mechanism for doing so.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
19 years agoNFSv4: Fix recovery of flock() locks.
Trond Myklebust [Fri, 4 Nov 2005 20:35:30 +0000 (15:35 -0500)]
NFSv4: Fix recovery of flock() locks.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
19 years agoNFSv4: Return any delegations before sillyrenaming the file
Trond Myklebust [Fri, 4 Nov 2005 20:35:02 +0000 (15:35 -0500)]
NFSv4: Return any delegations before sillyrenaming the file

 I missed this one... Any form of rename will result in a delegation
 recall, so it is more efficient to return the one we hold before
 trying the rename.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
19 years agoNFSv4: Fix the handling of the error NFS4ERR_OLD_STATEID
Trond Myklebust [Fri, 4 Nov 2005 20:33:50 +0000 (15:33 -0500)]
NFSv4: Fix the handling of the error NFS4ERR_OLD_STATEID

 Ensure that we retry the failed operation...

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
19 years agoNFSv4: Fix problem with OPEN_DOWNGRADE
Trond Myklebust [Fri, 4 Nov 2005 20:33:38 +0000 (15:33 -0500)]
NFSv4: Fix problem with OPEN_DOWNGRADE

 RFC 3530 states that for OPEN_DOWNGRADE "The share_access and share_deny
 bits specified must be exactly equal to the union of the share_access and
 share_deny bits specified for some subset of the OPENs in effect for
 current openowner on the current file.

 Setattr is currently violating the NFSv4 rules for OPEN_DOWNGRADE in that
 it may cause a downgrade from OPEN4_SHARE_ACCESS_BOTH to
 OPEN4_SHARE_ACCESS_WRITE despite the fact that there exists no open file
 with O_WRONLY access mode.

 Fix the problem by replacing nfs4_find_state() with a modified version of
 nfs_find_open_context().

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>