29 Nov, 2006
5 commits
-
Currently, mtd_blkdevs enforces a block size of 512, even if the drivers
can seemingly request a different size. This patch fixes mtd_blkdevs so
block sizes other than 512 work correctly.Signed-off-by: Richard Purdie
Signed-off-by: David Woodhouse -
Add support for accessing BIOS flash chips connected to the NVIDIA ck804 southbridge.
Signed-off-by: Ryan Jackson
Signed-off-by: David Woodhouse -
The writel() call accidentally clears all bits in the NDFC_CCR
register (endianess problem). Now __raw_writel() is used instead.Tested on Bamboo with NAND on chip select 0 and chip select 1.
Signed-off-by: Stefan Roese
Signed-off-by: David Woodhouse -
This patch makes the needlessly global mtdpart_setup() static.
Signed-off-by: Adrian Bunk
Signed-off-by: David Woodhouse -
This patch converts drivers/mtd/nand/rtc_from4.c to use the new
lib/bitrev.cSigned-off-by: Adrian Bunk
Signed-off-by: David Woodhouse
26 Oct, 2006
1 commit
-
When a flash-based BBT is not used, nand_default_mark_blockbad() is supposed
to mark the block bad in the oob. However, it sets the wrong length variable
so that no bad block marker is in fact written. This patch attempts to
rectify that.(As note, it seems to be that logically, it shouldn't be necessary to set
both length variables, as one appears to be for the main buffer, and
one for the oob buffer, but this is how it is done in several places,
including the code for the mtd character device MEMWRITEOOB and MEMREADOOB
ioctls. I'm not sure if this is a temporary solution during some rework of
the mtd infrastructure, or whether there is a deeper thought here.)Signed-off-by: Ricard Wanderlöf
Signed-off-by: David Woodhouse
22 Oct, 2006
2 commits
-
Signed-off-by: David Woodhouse
-
Ditch the separate oobrbuf and oobwbuf fields from the chip buffers,
and use only a single buffer immediately after the data. This accommodates
NAND controllers such as the OLPC CAFÉ chip, which can't do scatter/gather
DMA so needs the OOB buffer to be contiguous with the data, for both read
and write.Signed-off-by: David Woodhouse
21 Oct, 2006
32 commits
-
As flash cannot do 0->1 bit transitions when programming, do not do this in
the simulator too. This makes nandsim able to accept subpage writes.Signed-off-by: Artem Bityutskiy
Signed-off-by: David Woodhouse -
During some testing with several samsung s3c24xx based
devices it was discovered that often the
cfi_cmdset_0001.c would not leave the chip in
read-array mode on suspend. this is an issue if the
same flash chip is used for the bootloader that needs
to be read on resume.Signed-off-by: David Anders
Signed-off-by: Nicolas Pitre
Signed-off-by: David Woodhouse -
Signed-off-by: Artem Bityutskiy
Signed-off-by: David Woodhouse -
Removes line break after return type in function definitions, to be
consistent with the Linux coding style.Signed-off-by: Vijay Kumar
Signed-off-by: David Woodhouse -
For page wise allocation, an array of flash page pointers is allocated
during initialization. The flash pages are themselves allocated when a
write occurs to the page. The flash pages are deallocated when they
are erased.Signed-off-by: Vijay Kumar
Signed-off-by: David Woodhouse -
This patch removes code that does chip mapping. The chip mapping code
is no longer used.Signed-off-by: Vijay Kumar
Signed-off-by: David Woodhouse -
This patch has removed ITE 8172G and Globespan IVR MTD support.
These boards support have already been removed.Signed-off-by: Yoichi Yuasa
Acked-by: Ralf Bächle
Signed-off-by: David Woodhouse -
1. The ECCGETLAYOUT ioctl copy_to_user() call has a superfluous '&'
causing the resulting information to be garbage rather than the intended
mtd->ecclayout.2. The MEMGETOOBSEL misses copying mtd->ecclayout->eccbytes so the
resulting field of the returned structure contains garbage.Signed-off-by: Ricard Wanderlöf
Signed-off-by: David Woodhouse -
This version only differs from version posted by Savin Zlobec (20 Jun
2006) in that the AT91RM9200-specific chip-select / bus setup code has
been moved from the at91_nand.c driver into the processor-specific file.From: Savin Zlobec
Signed-off-by: Andrew Victor
Signed-off-by: David Woodhouse -
typo fix: noticed this typo while reading the patch
"jffs2: fix symlink error handling"Signed-off-by: David Woodhouse
-
Fairly self explanatory. Keep a reference initially, drop it when we free up
the driver resources.Signed-off-by: Alan Cox
Signed-off-by: Andrew Morton
Signed-off-by: David Woodhouse -
Signed-off-by: Alexey Dobriyan
Signed-off-by: Andrew Morton
Signed-off-by: David Woodhouse -
Use rb_first() and rb_last() to implement frag_first() and frag_last().
Signed-off-by: Akinbou Mita
Signed-off-by: Andrew Morton
Signed-off-by: David Woodhouse -
Add MTD map driver for BIOS flash chips connected to the Intel ESB2
southbridge.[akpm@osdl.org: coding-style fixes, build fix]
Signed-off-by: Ryan Jackson
Signed-off-by: Andrew Morton
Signed-off-by: David Woodhouse -
Add chip driver and JEDEC probe support for the SST 49LF040B flash chip.
Signed-off-by: Ryan Jackson
Signed-off-by: Andrew Morton
Signed-off-by: David Woodhouse -
The 2 bits controlling the window size are often set to allow reading the
BIOS, but too small to allow writing, since the lock registers are 4MiB
lower in the address space than the data. This is intended to prevent
flashing the bios, perhaps accidentally.The bits are 6 and 7. If both bits are set, it is a 5MiB window. If only
the 7 Bit is set, it is a 4MiB window. Otherwise, it is a 64KiB window.This parameter allows the driver to override the BIOS settings.
Signed-off-by: Ryan Jackson
Signed-off-by: Andrew Morton
Signed-off-by: David Woodhouse -
This was apparently missed by the move to the generic IRQ code.
Signed-off-by: Nicolas Pitre
Cc: Greg KH
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
Use grep instead of make during interface changes.
Signed-off-by: Olaf Hering
Signed-off-by: Linus Torvalds -
check_perm() does not drop the reference to the module when kzalloc()
failure occurs.Signed-Off-By: Chandra Seetharaman
Signed-off-by: Joel Becker
Signed-off-by: Mark Fasheh -
The loop within ocfs2_zero_extend() can execute for a long time, causing
spurious soft lockup warnings.Signed-off-by: Mark Fasheh
-
The page zeroing code was missing the region between old i_size and new
i_size for those extends that didn't actually require a change in space
allocation.Signed-off-by: Mark Fasheh
-
This was causing some folks to incorrectly get -EBUSY during rename.
Signed-off-by: Sunil Mushran
Signed-off-by: Mark Fasheh -
This patch deletes redundant memcmp() while looking up in rb tree.
Signed-off-by: Akinbou Mita
Signed-off-by: Mark Fasheh -
* 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus:
[MIPS] Fix iounmap argument to const volatile.
[MIPS] Reserve syscall numbers for kexec_load.
[MIPS] Update tb0287_defconfig
[MIPS] Update pnx8550-v2pci_defconfig
[MIPS] Update pnx8500-jbs_defconfig
[MIPS] More vr41xx pt_regs fixups
[MIPS] save_context_stack fix
[MIPS] Use compat_sys_mount.
[MIPS] Fix O32 personality(2) call with 0xffffffff argument.
[MIPS] A few more pt_regs fixups.
[MIPS] Malta: Fix uninitialized regs pointer.
[MIPS] Delete unneeded pt_regs forward declaration.
[MIPS] Use kallsyms_lookup_size_offset() instead of kallsyms_lookup() -
This reverts commit 4596c75c23dde2623cbeec69357d5eb13d28387e as
requested by Olaf Hering. It causes compile errors, and says Olaf:"This change is also wrong, the autoloading works perfect with 2.6.18,
no need to add random PCI ids.See commit a0245f7ad5214cb00131d7cd176446e067c913dc, platform devices
have now a modalias entry in sysfs. The network card is not a PCI
device."Signed-off-by: Linus Torvalds
-
* git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6:
[CRYPTO] api: Select cryptomgr where needed
[CRYPTO] api: fix crypto_alloc_base() return value -
* git://git.kernel.org/pub/scm/linux/kernel/git/steve/gfs2-2.6-fixes:
[GFS2] gfs2_dir_read_data(): fix uninitialized variable usage
[GFS2] fs/gfs2/ops_fstype.c:fill_super_meta(): fix NULL dereference
[GFS2] fs/gfs2/dir.c:gfs2_dir_write_data(): don't use an uninitialized variable
[GFS2] fs/gfs2/ops_fstype.c:gfs2_get_sb_meta(): remove unused variable
[GFS2] fs/gfs2/dir.c:gfs2_dir_write_data(): remove dead code
[GFS2] gfs2 endianness bug: be16 assigned to be32 field
[GFS2] Fix bmap to map extents properly
[DLM] fix iovec length in recvmsg -
* master.kernel.org:/pub/scm/linux/kernel/git/davem/sparc-2.6:
[SPARC]: Clean up asm-sparc/elf.h pollution in userspace.
[SPARC64]: Fix of_ioremap().
[SPARC64]: Compute dma_end argument to sabre_pbm_init() correctly. -
* master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6: (36 commits)
[Bluetooth] Fix HID disconnect NULL pointer dereference
[Bluetooth] Add missing entry for Nokia DTL-4 PCMCIA card
[Bluetooth] Add support for newer ANYCOM USB dongles
[NET]: Can use __get_cpu_var() instead of per_cpu() in loopback driver.
[IPV4] inet_peer: Group together avl_left, avl_right, v4daddr to speedup lookups on some CPUS
[TCP]: One NET_INC_STATS() could be NET_INC_STATS_BH in tcp_v4_err()
[NETFILTER]: Missing check for CAP_NET_ADMIN in iptables compat layer
[NETPOLL]: initialize skb for UDP
[IPV6]: Fix route.c warnings when multiple tables are disabled.
[TG3]: Bump driver version and release date.
[TG3]: Add lower bound checks for tx ring size.
[TG3]: Fix set ring params tx ring size implementation
[NET]: reduce per cpu ram used for loopback stats
[IPv6] route: Fix prohibit and blackhole routing decision
[DECNET]: Fix input routing bug
[TCP]: Bound TSO defer time
[IPv4] fib: Remove unused fib_config members
[IPV6]: Always copy rt->u.dst.error when copying a rt6_info.
[IPV6]: Make IPV6_SUBTREES depend on IPV6_MULTIPLE_TABLES.
[IPV6]: Clean up BACKTRACK().
... -
Fix one more compile breakage caused by the post -rc1 IRQ changes.
Signed-off-by: Adrian Bunk
Cc: Russell King
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
This patch is suitable for just about any 2.6 kernel. It should go in
2.6.19 and 2.6.18.2 and possible even the .17 and .16 stable series.This is a long standing bug that seems to have only recently become
apparent, presumably due to increasing use of NFS over TCP - many
distros seem to be making it the default.The SK_CONN bit gets set when a listening socket may be ready
for an accept, just as SK_DATA is set when data may be available.It is entirely possible for svc_tcp_accept to be called with neither
of these set. It doesn't happen often but there is a small race in
svc_sock_enqueue as SK_CONN and SK_DATA are tested outside the
spin_lock. They could be cleared immediately after the test and
before the lock is gained.This normally shouldn't be a problem. The sockets are non-blocking so
trying to read() or accept() when ther is nothing to do is not a problem.However: svc_tcp_recvfrom makes the decision "Should I accept() or
should I read()" based on whether SK_CONN is set or not. This usually
works but is not safe. The decision should be based on whether it is
a TCP_LISTEN socket or a TCP_CONNECTED socket.Signed-off-by: Neil Brown
Cc: Adrian Bunk
Cc:
Cc: Trond Myklebust
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds