20 Sep, 2007

1 commit

  • 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
     

03 Aug, 2007

4 commits

  • The nand_base.c driver implicitly casts the uint32_t
    eccpos array to 'int *', which is not only not guaranteed
    to be the same sign as the source, but is not guaranteed
    to be the same size.

    Fix by changing nand_base.c to use uint32_t
    referencing the eccpos fields.

    Signed-off-by: Ben Dooks
    Signed-off-by: David Woodhouse

    Ben Dooks
     
  • The patch below fixes nand driver for AT91 boards which do not have NAND
    R/B signal connected to gpio (rdy_pin is not connected).

    Signed-off-by: Ivan Kuten
    Acked-by: Andrew Victor
    Signed-off-by: David Woodhouse

    Ivan Kuten
     
  • When we mark block bad we have to get chip because this involves
    writing to the page's OOB. We hit this bug in UBI - we observed
    random obscure crashes when it marks block bad from the background
    thread and there is some parallel task which utilizes flash.

    This patch also adds a TODO note about BBT table protection which
    it seems does not exist.

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

    Artem Bityutskiy
     
  • The patch ensures that the current code (kernel 2.6.22) uses the bits
    like the code prior to the refactoring. The variable "bits" is employed
    in a useful way now.

    Signed-off-by: Roland Stigge
    Signed-off-by: David Woodhouse

    Roland Stigge
     

01 Aug, 2007

1 commit


11 Jul, 2007

1 commit

  • Signed-off-by: Franck Bui-Huu
    Signed-off-by: Ralf Baechle

    delete mode 100644 arch/mips/configs/ocelot_c_defconfig
    delete mode 100644 arch/mips/momentum/ocelot_c/Makefile
    delete mode 100644 arch/mips/momentum/ocelot_c/cpci-irq.c
    delete mode 100644 arch/mips/momentum/ocelot_c/dbg_io.c
    delete mode 100644 arch/mips/momentum/ocelot_c/irq.c
    delete mode 100644 arch/mips/momentum/ocelot_c/ocelot_c_fpga.h
    delete mode 100644 arch/mips/momentum/ocelot_c/platform.c
    delete mode 100644 arch/mips/momentum/ocelot_c/prom.c
    delete mode 100644 arch/mips/momentum/ocelot_c/reset.c
    delete mode 100644 arch/mips/momentum/ocelot_c/setup.c
    delete mode 100644 arch/mips/momentum/ocelot_c/uart-irq.c
    delete mode 100644 arch/mips/pci/fixup-ocelot-c.c
    delete mode 100644 arch/mips/pci/pci-ocelot-c.c

    Franck Bui-Huu
     

01 Jun, 2007

2 commits

  • Fix various bits of obviously-busted code which we're not happening to
    compile, due to ifdefs.

    Cc: "Luck, Tony"
    Cc: Ivan Kokshaysky
    Cc: Richard Henderson
    Cc: Russell King
    Cc: Ralf Baechle
    Cc: Jeff Garzik
    Cc: Jan Kara
    Cc: James Bottomley
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Yoann Padioleau
     
  • I have made a tool to parse the kernel that does not pre-process the
    source. That means that my parser tries to parse all the code, including
    code in the #else branch or code that is not often compiled because the
    driver is not very used (or not used at all). So, my parser sometimes
    reports parse error not originally detected by gcc. Here is my (first)
    patch.

    [akpm@linux-foundation.org: fix amd8111e.c]
    Signed-off-by: Yoann Padioleau
    Acked-by: Matthew Wilcox
    Acked-by: Wim Van Sebroeck
    Acked-by: David Woodhouse
    Acked-by: Jeff Garzik
    Acked-by: James Bottomley
    Cc: Russell King
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Yoann Padioleau
     

10 May, 2007

1 commit

  • * git://git.infradead.org/mtd-2.6: (21 commits)
    [MTD] [CHIPS] Remove MTD_OBSOLETE_CHIPS (jedec, amd_flash, sharp)
    [MTD] Delete allegedly obsolete "bank_size" field of mtd_info.
    [MTD] Remove unnecessary user space check from mtd.h.
    [MTD] [MAPS] Remove flash maps for no longer supported 405LP boards
    [MTD] [MAPS] Fix missing printk() parameter in physmap_of.c MTD driver
    [MTD] [NAND] platform NAND driver: add driver
    [MTD] [NAND] platform NAND driver: update header
    [JFFS2] Simplify and clean up jffs2_add_tn_to_tree() some more.
    [JFFS2] Remove another bogus optimisation in jffs2_add_tn_to_tree()
    [JFFS2] Remove broken insert_point optimisation in jffs2_add_tn_to_tree()
    [JFFS2] Remember to calculate overlap on nodes which replace older nodes
    [JFFS2] Don't advance c->wbuf_ofs to next eraseblock after wbuf flush
    [MTD] [NAND] at91_nand.c: CMDLINE_PARTS support
    [MTD] [NAND] Tidy up handling of page number in nand_block_bad()
    [MTD] block2mtd_paramline[] mustn't be __initdata
    [MTD] [NAND] Support multiple chips in CAFÉ driver
    [MTD] [NAND] Rename cafe.c to cafe_nand.c and remove the multi-obj magic
    [MTD] [NAND] Use rslib for CAFÉ ECC
    [RSLIB] Support non-canonical GF representations
    [JFFS2] Remove dead file histo_mips.h
    ...

    Linus Torvalds
     

08 May, 2007

1 commit


03 May, 2007

3 commits

  • This patch allows you to specify at91_nand partitions on the
    kernel command line using the mtdparts variable, if
    CONFIG_MTD_CMDLINE_PARTS is set.

    Signed-off-by: Frank Mandarino
    Signed-off-by: Andrew Victor
    Signed-off-by: David Woodhouse

    Andrew Victor
     
  • Further to the previous patch fixing the calculation of page number,
    both branches are using the same result. Clean up the function
    accordingly, calculating it (and also masking with pagemask) only in one
    place.

    Signed-off-by: Thomas Knobloch
    Signed-off-by: Thomas Gleixner
    Signed-off-by: David Woodhouse

    Thomas Knobloch
     
  • I noticed that many source files include while they do
    not appear to need it. Here is an attempt to clean it all up.

    In order to find all possibly affected files, I searched for all
    files including but without any other occurence of "pci"
    or "PCI". I removed the include statement from all of these, then I
    compiled an allmodconfig kernel on both i386 and x86_64 and fixed the
    false positives manually.

    My tests covered 66% of the affected files, so there could be false
    positives remaining. Untested files are:

    arch/alpha/kernel/err_common.c
    arch/alpha/kernel/err_ev6.c
    arch/alpha/kernel/err_ev7.c
    arch/ia64/sn/kernel/huberror.c
    arch/ia64/sn/kernel/xpnet.c
    arch/m68knommu/kernel/dma.c
    arch/mips/lib/iomap.c
    arch/powerpc/platforms/pseries/ras.c
    arch/ppc/8260_io/enet.c
    arch/ppc/8260_io/fcc_enet.c
    arch/ppc/8xx_io/enet.c
    arch/ppc/syslib/ppc4xx_sgdma.c
    arch/sh64/mach-cayman/iomap.c
    arch/xtensa/kernel/xtensa_ksyms.c
    arch/xtensa/platform-iss/setup.c
    drivers/i2c/busses/i2c-at91.c
    drivers/i2c/busses/i2c-mpc.c
    drivers/media/video/saa711x.c
    drivers/misc/hdpuftrs/hdpu_cpustate.c
    drivers/misc/hdpuftrs/hdpu_nexus.c
    drivers/net/au1000_eth.c
    drivers/net/fec_8xx/fec_main.c
    drivers/net/fec_8xx/fec_mii.c
    drivers/net/fs_enet/fs_enet-main.c
    drivers/net/fs_enet/mac-fcc.c
    drivers/net/fs_enet/mac-fec.c
    drivers/net/fs_enet/mac-scc.c
    drivers/net/fs_enet/mii-bitbang.c
    drivers/net/fs_enet/mii-fec.c
    drivers/net/ibm_emac/ibm_emac_core.c
    drivers/net/lasi_82596.c
    drivers/parisc/hppb.c
    drivers/sbus/sbus.c
    drivers/video/g364fb.c
    drivers/video/platinumfb.c
    drivers/video/stifb.c
    drivers/video/valkyriefb.c
    include/asm-arm/arch-ixp4xx/dma.h
    sound/oss/au1550_ac97.c

    I would welcome test reports for these files. I am fine with removing
    the untested files from the patch if the general opinion is that these
    changes aren't safe. The tested part would still be nice to have.

    Note that this patch depends on another header fixup patch I submitted
    to LKML yesterday:
    [PATCH] scatterlist.h needs types.h
    http://lkml.org/lkml/2007/3/01/141

    Signed-off-by: Jean Delvare
    Cc: Badari Pulavarty
    Signed-off-by: Greg Kroah-Hartman

    Jean Delvare
     

02 May, 2007

3 commits


28 Apr, 2007

1 commit


27 Apr, 2007

1 commit


20 Apr, 2007

1 commit

  • Use menuconfigs instead of menus, so the whole menu can be disabled at once
    instead of going through all options.

    Signed-off-by: Jan Engelhardt
    Signed-off-by: Andrew Morton
    Signed-off-by: David Woodhouse

    Jan Engelhardt
     

18 Apr, 2007

8 commits


23 Mar, 2007

1 commit


08 Mar, 2007

2 commits

  • Replace the apparently misspelled preprocessor variable
    "MTD_NAND_DISKONCHIP_BBTWRITE" with the correct form
    "CONFIG_MTD_NAND_DISKONCHIP_BBTWRITE".

    Signed-off-by: Robert P. J. Day
    Signed-off-by: David Woodhouse

    Robert P. J. Day
     
  • During the MTD rework the oobavail parameter of mtd_info structure has become
    private. This is not quite correct in terms of integrity and logic. If we have
    means to write to OOB area, then we'd like to know upfront how many bytes out
    of OOB are spare per page to be able to adapt to specific cases.
    The patch inlined adds the public oobavail parameter.

    Signed-off-by: Vitaly Wool
    Signed-off-by: David Woodhouse

    Vitaly Wool
     

26 Feb, 2007

1 commit

  • Noticed while building a s3c2410 kernel :
    drivers/mtd/nand/s3c2410.c: In function 's3c2440_nand_calculate_ecc':
    drivers/mtd/nand/s3c2410.c:476: warning: format '%06x' expects type 'unsigned int', but argument 3 has type 'long unsigned int'

    This patch fixes it.

    Signed-off-by: Arnaud Patard
    Signed-off-by: Russell King

    Arnaud Patard
     

20 Feb, 2007

1 commit

  • * git://git.infradead.org/mtd-2.6: (49 commits)
    [MTD] [NAND] S3C2412 fix hw ecc
    [MTD] [NAND] Work around false compiler warning in CAFÉ driver
    [JFFS2] printk warning fixes
    [MTD] [MAPS] ichxrom warning fix
    [MTD] [MAPS] amd76xrom warning fix
    [MTD] [MAPS] esb2rom warning fixes
    [MTD] [MAPS] ck804xrom warning fix
    [MTD] [MAPS] netsc520 warning fix
    [MTD] [MAPS] sc520cdp warning fix
    [MTD] [ONENAND] onenand_base warning fix
    [MTD] [NAND] eXcite nand flash driver
    [MTD] Improve heuristic for detecting wrong-endian RedBoot partition table
    [MTD] Fix RedBoot partition parsing regression harder.
    [MTD] [NAND] S3C2410: Hardware ECC correction code
    [JFFS2] Use MTD_OOB_AUTO to automatically place cleanmarker on NAND
    [MTD] Clarify OOB-operation interface comments
    [MTD] remove unused ecctype,eccsize fields from struct mtd_info
    [MTD] [NOR] Intel: remove ugly PROGREGION macros
    [MTD] [NOR] STAA: use writesize instead off eccsize to represent ECC block
    [MTD] OneNAND: Invalidate bufferRAM after erase
    ...

    Linus Torvalds
     

19 Feb, 2007

2 commits


15 Feb, 2007

1 commit


12 Feb, 2007

1 commit


10 Feb, 2007

1 commit


09 Feb, 2007

2 commits