1. 03 12月, 2012 1 次提交
    • N
      mtd cs553x_nand: Initialise ecc.strength before nand_scan() · d1f3b65d
      Nathan Williams 提交于
      Loading cs553x_nand with Hynix H27U1G8F2BTR NAND flash causes this bug:
      
      kernel BUG at drivers/mtd/nand/nand_base.c:3345!
      invalid opcode: 0000 [#1]
      Modules linked in: cs553x_nand(+) vfat fat usb_storage ehci_hcd usbcore usb_comr
      Pid: 436, comm: modprobe Not tainted 3.6.7 #1
      EIP: 0060:[<c118d205>] EFLAGS: 00010296 CPU: 0
      EIP is at nand_scan_tail+0x64c/0x69c
      EAX: 00000034 EBX: cea6ed98 ECX: 00000000 EDX: 00000000
      ESI: cea6ec00 EDI: cea6ec00 EBP: 20000000 ESP: cdd17e48
       DS: 007b ES: 007b FS: 0000 GS: 0000 SS: 0068
      CR0: 8005003b CR2: 0804e119 CR3: 0d850000 CR4: 00000090
      DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000
      DR6: ffff0ff0 DR7: 00000400
      Process modprobe (pid: 436, ti=cdd16000 task=cdd1c320 task.ti=cdd16000)
      Stack:
       c12e962c c118f7ef 00000003 cea6ed98 d014b25c 20000000 fffff007 00000001
       00000000 cdd53b00 d014b000 c1001021 cdd53b00 d01493c0 cdd53b00 cdd53b00
       d01493c0 c1047f83 d014b4a0 00000000 cdd17f9c ce4be454 cdd17f48 cdd1c320
      Call Trace:
       [<c118f7ef>] ? nand_scan+0x1b/0x4d
       [<d014b25c>] ? init_module+0x25c/0x2de [cs553x_nand]
       [<d014b000>] ? 0xd014afff
       [<c1001021>] ? do_one_initcall+0x21/0x111
       [<c1047f83>] ? sys_init_module+0xe4/0x1261
       [<c1031207>] ? task_work_run+0x36/0x43
       [<c1265ced>] ? syscall_call+0x7/0xb
      Code: fa ff ff c7 86 d8 00 00 00 01 00 00 00 e9 5f fc ff ff 68 f8 26 2e c1 e8 a7
      EIP: [<c118d205>] nand_scan_tail+0x64c/0x69c SS:ESP 0068:cdd17e48
      
      Initialising ecc.strength before the call to nand_scan() fixes this.
      Signed-off-by: NNathan Williams <nathan@traverse.com.au>
      Cc: stable@vger.kernel.org [3.4+]
      Acked-by: NBrian Norris <computersforpeace@gmail.com>
      Acked-by: NMike Dunn <mikedunn@newsguy.com>
      Signed-off-by: NArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
      d1f3b65d
  2. 14 5月, 2012 1 次提交
  3. 27 3月, 2012 2 次提交
    • M
      mtd: flash drivers set ecc strength · 6a918bad
      Mike Dunn 提交于
      Flash device drivers initialize 'ecc_strength' in struct mtd_info, which is the
      maximum number of bit errors that can be corrected in one writesize region.
      
      Drivers using the nand interface intitialize 'strength' in struct nand_ecc_ctrl,
      which is the maximum number of bit errors that can be corrected in one ecc step.
      Nand infrastructure code translates this to 'ecc_strength'.
      
      Also for nand drivers, the nand infrastructure code sets ecc.strength for ecc
      modes NAND_ECC_SOFT, NAND_ECC_SOFT_BCH, and NAND_ECC_NONE.  It is set in the
      driver for all other modes.
      Signed-off-by: NMike Dunn <mikedunn@newsguy.com>
      Signed-off-by: NArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
      Signed-off-by: NDavid Woodhouse <David.Woodhouse@intel.com>
      6a918bad
    • A
      mtd: do not use plain 0 as NULL · 42d7fbe2
      Artem Bityutskiy 提交于
      The first 3 arguments of 'mtd_device_parse_register()' are pointers,
      but many callers pass '0' instead of 'NULL'. Fix this globally. Thanks
      to coccinelle for making it easy to do with the following semantic patch:
      
       @@
       expression mtd, types, parser_data, parts, nr_parts;
       @@
       (
       -mtd_device_parse_register(mtd, 0, parser_data, parts, nr_parts)
       +mtd_device_parse_register(mtd, NULL, parser_data, parts, nr_parts)
       |
       -mtd_device_parse_register(mtd, types, 0, parts, nr_parts)
       +mtd_device_parse_register(mtd, types, NULL, parts, nr_parts)
       |
       -mtd_device_parse_register(mtd, types, parser_data, 0, nr_parts)
       +mtd_device_parse_register(mtd, types, parser_data, NULL, nr_parts)
       )
      Signed-off-by: NArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
      Signed-off-by: NDavid Woodhouse <David.Woodhouse@intel.com>
      42d7fbe2
  4. 11 9月, 2011 4 次提交
  5. 25 5月, 2011 1 次提交
  6. 31 3月, 2011 1 次提交
  7. 18 10月, 2008 1 次提交
  8. 22 4月, 2008 1 次提交
  9. 09 2月, 2008 1 次提交
  10. 03 2月, 2008 1 次提交
  11. 03 5月, 2007 1 次提交
    • J
      PCI: Cleanup the includes of <linux/pci.h> · 6473d160
      Jean Delvare 提交于
      I noticed that many source files include <linux/pci.h> 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 <linux/pci.h> 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/141Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Cc: Badari Pulavarty <pbadari@us.ibm.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      6473d160
  12. 30 11月, 2006 1 次提交
  13. 11 10月, 2006 1 次提交
  14. 26 5月, 2006 1 次提交
  15. 24 5月, 2006 2 次提交
  16. 23 5月, 2006 1 次提交
  17. 16 5月, 2006 1 次提交
  18. 14 5月, 2006 2 次提交
  19. 13 5月, 2006 1 次提交
  20. 12 5月, 2006 1 次提交