19 Oct, 2007

1 commit

  • Found these while looking at printk uses.

    Add missing newlines to dev_ uses
    Add missing KERN_ prefixes to multiline dev_s
    Fixed a wierd->weird spelling typo
    Added a newline to a printk

    Signed-off-by: Joe Perches
    Cc: "Luck, Tony"
    Cc: Jens Axboe
    Cc: Mark M. Hoffman
    Cc: Roland Dreier
    Cc: Tilman Schmidt
    Cc: David Woodhouse
    Cc: Jeff Garzik
    Cc: Stephen Hemminger
    Cc: Greg KH
    Cc: Jeremy Fitzhardinge
    Cc: Geert Uytterhoeven
    Cc: Alessandro Zummo
    Cc: David Brownell
    Cc: James Smart
    Cc: Andrew Vasquez
    Cc: "Antonino A. Daplas"
    Cc: Evgeniy Polyakov
    Cc: Russell King
    Cc: Jaroslav Kysela
    Cc: Takashi Iwai
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Joe Perches
     

17 Oct, 2007

1 commit

  • Slab constructors currently have a flags parameter that is never used. And
    the order of the arguments is opposite to other slab functions. The object
    pointer is placed before the kmem_cache pointer.

    Convert

    ctor(void *object, struct kmem_cache *s, unsigned long flags)

    to

    ctor(struct kmem_cache *s, void *object)

    throughout the kernel

    [akpm@linux-foundation.org: coupla fixes]
    Signed-off-by: Christoph Lameter
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Christoph Lameter
     

16 Oct, 2007

1 commit

  • Commit 90833fdab89da02fc0276224167f0a42e5176f41 ("[ARM] 4554/1: replace
    consistent_sync() with flush_ioremap_region()") introduced a new
    "flush_ioremap_region()" function to be used by the MTD mainstone-flash
    and lubbock-flash drivers to fix a regression from around 2.6.18.

    Those drivers were independently merged into a single driver by Todd
    Poynor in commit e644f7d6289456657996df4192de76c5d0a9f9c7 ("[MTD] MAPS:
    Merge Lubbock and Mainstone drivers into common PXA2xx driver")

    Later, those two commits were merged into the main MTD tree by commit
    b160292cc216a50fd0cd386b0bda2cd48352c73b ("Merge Linux 2.6.23") by David
    Woodhouse, but in that merge, the fix to use flush_iomap_region() got
    lost (as it was to files that now no longer existed).

    This reinstates the fix in the new driver.

    Noticed-by: Russell King
    Tested-and-acked-by: Nicolas Pitre
    Cc: David Woodhouse
    Cc: Jared Hulbert
    Cc: Todd Poynor
    Signed-off-by: Linus Torvalds

    Linus Torvalds
     

15 Oct, 2007

1 commit


14 Oct, 2007

16 commits


13 Oct, 2007

6 commits


07 Oct, 2007

4 commits


25 Sep, 2007

1 commit


24 Sep, 2007

4 commits

  • This patch make the OneNAND driver much less racy. It fixes
    our "onenand_wait: read timeout!" heisenbugs. The reason of
    these bugs was that the driver did not lock the chip when
    accessing OTP, and it screwed up OneNAND state when the OTP
    was read while JFFS2 was doing FS checking.

    This patch also fixes other races I spotted:
    1. BBT was not protected
    2. Access to ecc_stats was not protected

    Now the chip is locked when BBT is accessed.

    To fix all of these I basically split all interface functions
    on 'function()' and 'function_nolock()' parts.

    I tested this patch on N800 hardware - it fixes our problems.
    But I tested a little different version because our OneNAND
    codebase is slightly out-of-date. But it should be OK.

    This patch also includes the prin fixes I posted before.

    Signed-off-by: Artem Bityutskiy
    Signed-off-by: David Woodhouse

    Artem Bityutskiy
     
  • The Vermilion Range Expansion Bus supports four chip selects, each of which
    has 64MiB of address space. The 2nd BAR of the Expansion Bus PCI Device
    is a 256MiB memory region containing the address spaces for all four of
    the chip selects, with start addresses hardcoded on 64MiB boundaries.

    This map driver only supports NOR flash on chip select 0. The buswidth
    (either 8 bits or 16 bits) is determined by reading the Expansion Bus Timing
    and Control Register for Chip Select 0 (EXP_TIMING_CS0).

    Signed-off-by: Andy Lowe
    Signed-off-by: David Woodhouse

    David Woodhouse
     
  • The CFI probe routine is capable of detecting flash banks consisting of
    identical chips mapped to physically discontiguous addresses. (One
    common way this can occur is if a flash bank is populated with chips of
    less capacity than the hardware was designed to support.) The CFI
    point() routine currently ignores any such gaps. This patch fixes
    the CFI point() routine so that it truncates any request that would
    span a gap.

    Signed-off-by: Andy Lowe
    Signed-off-by: Nicolas Pitre
    Signed-off-by: David Woodhouse

    Andy Lowe
     
  • Replace Lubbock and Mainstone board drivers with common PXA2xx driver,
    convert to platform driver (corresponding platform device changes merged
    to kernel.org for 2.6.15), add power management callbacks.

    Signed-off-by: Todd Poynor
    Signed-off-by: Nicolas Pitre
    Signed-off-by: David Woodhouse

    Todd Poynor
     

20 Sep, 2007

4 commits

  • This patch includes a whole batch of smallish cleanups for
    drivers/mtd/physmap_of.c.

    - A bunch of uneeded #includes are removed
    - We switch to the modern linux/of.h etc. in place of
    asm/prom.h
    - Use some helper macros to avoid some ugly inline #ifdefs
    - A few lines of unreachable code are removed
    - A number of indentation / line-wrapping fixes
    - More consistent use of kernel idioms such as if (!p) instead
    of if (p == NULL)
    - Clarify some printk()s and other informative strings.
    - parse_obsolete_partitions() now returns 0 if no partition
    information is found, instead of returning -ENOENT which the caller
    had to handle specially.
    - (the big one) Despite the name, this driver really has
    nothing to do with drivers/mtd/physmap.c. The fact that the flash
    chips must be physically direct mapped is a constrant, but doesn't
    really say anything about the actual purpose of this driver, which is
    to instantiate MTD devices based on information from the device tree.
    Therefore the physmap name is replaced everywhere within the file with
    "of_flash". The file itself and the Kconfig option is not renamed for
    now (so that the diff is actually a diff). That can come later.

    Signed-off-by: David Gibson
    Signed-off-by: Josh Boyer

    David Gibson
     
  • The latest physmap_of driver has a small error where it will fail the probe
    with:

    physmap-flash: probe of fff00000.small-flas failed with error -2

    if there are no partition subnodes in the device tree and the old style binding
    is not used. Since partition definitions are optional, the probe should still
    succeed.

    Signed-off-by: Josh Boyer
    Acked-by: David Gibson

    Josh Boyer
     
  • Paul Mackerras
     
  • Fix a couple drivers that do not correctly terminate their pci_device_id
    lists. This results in garbage being spewed into modules.pcimap when the
    module happens to not have 28 NULL bytes following the table, and/or the
    last PCI ID is actually truncated from the table when calculating the
    modules.alias PCI aliases, cause those unfortunate device IDs to not
    auto-load.

    Signed-off-by: Kees Cook
    Acked-by: Corey Minyard
    Cc: David Woodhouse
    Acked-by: Jeff Garzik
    Cc: Greg KH
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Kees Cook
     

13 Sep, 2007

1 commit