1. 04 8月, 2008 1 次提交
  2. 02 8月, 2008 1 次提交
  3. 25 7月, 2008 3 次提交
  4. 16 7月, 2008 1 次提交
  5. 12 7月, 2008 1 次提交
  6. 03 7月, 2008 1 次提交
  7. 24 6月, 2008 2 次提交
  8. 05 6月, 2008 3 次提交
  9. 27 5月, 2008 1 次提交
  10. 08 5月, 2008 2 次提交
  11. 02 5月, 2008 1 次提交
  12. 29 4月, 2008 1 次提交
  13. 23 4月, 2008 4 次提交
  14. 22 4月, 2008 3 次提交
  15. 29 3月, 2008 1 次提交
    • A
      mtd: maps/physmap: fix oops in suspend/resume/shutdown ops · 4a5691c0
      Anton Vorontsov 提交于
      # reboot
      ...
      [   42.351266] Flash device refused suspend due to active operation (state 0)
      [   42.358195] Unable to handle kernel NULL pointer dereference at virtual address 00000078
      [   42.360060] pgd = c7d9c000
      [   42.362769] [00000078] *pgd=a7d8d031, *pte=00000000, *ppte=00000000
      [   42.372902] Internal error: Oops: 17 [#1]
      [   42.376911] Modules linked in:
      [   42.379980] CPU: 0    Not tainted  (2.6.25-rc2-10642-ge8f2594-dirty #73)
      [   42.380000] PC is at physmap_flash_shutdown+0x28/0x54
      ...
      [   42.380000] Backtrace:
      [   42.380000] [<c0130c1c>] (physmap_flash_shutdown+0x0/0x54) from [<c01207c0>] (platform_drv_shutdown+0x20/0x24)
      [   42.380000]  r5:28121969 r4:c0229e08
      [   42.380000] [<c01207a0>] (platform_drv_shutdown+0x0/0x24) from [<c011cd40>] (device_shutdown+0x60/0x88)
      [   42.380000] [<c011cce0>] (device_shutdown+0x0/0x88) from [<c003e8a4>] (kernel_restart_prepare+0x2c/0x3c)
      [   42.380000]  r4:00000000
      [   42.380000] [<c003e878>] (kernel_restart_prepare+0x0/0x3c) from [<c003ea00>] (kernel_restart+0x14/0x48)
      [   42.380000] [<c003e9ec>] (kernel_restart+0x0/0x48) from [<c003fdc0>] (sys_reboot+0xe8/0x1f8)
      [   42.380000]  r4:01234567
      [   42.380000] [<c003fcd8>] (sys_reboot+0x0/0x1f8) from [<c001aa00>] (ret_fast_syscall+0x0/0x2c)
      [   42.380000]  r7:00000058 r6:00000004 r5:00000001 r4:00000000
      [   42.380000] Code: 0a000009 e7953004 e1a00003 e1a0e00f (e593f078)
      [   42.650051] ---[ end trace 6d6c26a0fc3141de ]---
      Segmentation fault
      INIT: no more processes left in this runlevel
      
      While looping for mtd[i]s, we should stop at the mtd[i] == NULL.
      
      This patch also removes unnecessary "if (info)" checks:
      suspend/resume/shutdown ops are executed only if probe() is succeeded, so info
      is guaranteed to be !NULL.
      Signed-off-by: NAnton Vorontsov <cbouatmailru@gmail.com>
      Cc: David Brownell <david-b@pacbell.net>
      Cc: David Woodhouse <dwmw2@infradead.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      4a5691c0
  16. 07 2月, 2008 2 次提交
  17. 03 2月, 2008 2 次提交
    • S
      [MTD] physmap.c: Add support for multiple resources · df66e716
      Stefan Roese 提交于
      This patch extends the physmap mapping driver to support multiple
      resources for non-identical NOR chips that will be concatenated together
      when selected.
      
      This is needed for example for Intel 48F4400 512MBit chips, since they
      consist of 2 single different NOR chips with different geometries. The
      first (lower) one has botton boot sectors and the 2nd (upper) has top
      boot sectors. This currently isn't handled correctly by calling the
      physmap driver once with only one resource covering both chips in one
      memory region. The same geometrie is used for both chips.
      
      With this patch the following resource structure can be used to
      describe the 48F4400 chip correctly:
      
      static struct resource board_nor_resource[] = {
      	[0] = {
      		.start = 0xf8000000,
      		.end = 0xfbffffff,
      		.flags = IORESOURCE_MEM,
      	},
      	[1] = {
      		.start = 0xfc000000,
      		.end = 0xffffffff,
      		.flags = IORESOURCE_MEM,
      	}
      };
      Signed-off-by: NStefan Roese <sr@denx.de>
      Signed-off-by: NDavid Woodhouse <dwmw2@infradead.org>
      df66e716
    • S
  18. 11 1月, 2008 1 次提交
  19. 08 1月, 2008 1 次提交
  20. 28 11月, 2007 1 次提交
    • S
      [MTD] fix CONFIG_MTD_SHARP_SL if CONFIG_MTD=m · 73061e4c
      Stanislav Brabec 提交于
      Sharp Zaurus SL-C3200 with CONFIG_MTD=m and CONFIG_MTD_SHARP_SL=y (as it
      is bool) lost support for the ROM flash. With CONFIG_MTD=y it has no
      problems.
      
      It is caused by losing of compiled code of
      drivers/mtd/maps/sharpsl-flash.o.
      It was linked to drivers/mtd/maps/built-in.o and drivers/mtd/built-in.o,
      but lost and not linked to drivers/built-in.o (because CONFIG_MTD!=y).
      
      Patch below fixes this problem by creating sharpsl-flash.ko (and the
      code works correctly as a module).
      Signed-off-by: NStanislav Brabec <utx@penguin.cz>
      Signed-off-by: NDavid Woodhouse <dwmw2@infradead.org>
      73061e4c
  21. 30 10月, 2007 1 次提交
  22. 20 10月, 2007 1 次提交
  23. 16 10月, 2007 1 次提交
    • L
      Reinstate lost flush_ioremap_region() fix to pxa2xx-flash driver · 355aaffd
      Linus Torvalds 提交于
      Commit 90833fda ("[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 e644f7d6 ("[MTD] MAPS:
      Merge Lubbock and Mainstone drivers into common PXA2xx driver")
      
      Later, those two commits were merged into the main MTD tree by commit
      b160292c ("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: NRussell King <rmk@arm.linux.org.uk>
      Tested-and-acked-by: NNicolas Pitre <nico@cam.org>
      Cc: David Woodhouse <dwmw2@infradead.org>
      Cc: Jared Hulbert <jaredeh@gmail.com>
      Cc: Todd Poynor <tpoynor@mvista.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      355aaffd
  24. 24 9月, 2007 2 次提交
  25. 20 9月, 2007 2 次提交
    • D
      [POWERPC] Cleanups for physmap_of.c (v2) · c4d5e375
      David Gibson 提交于
      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: NDavid Gibson <david@gibson.dropbear.id.au>
      Signed-off-by: NJosh Boyer <jwboyer@linux.vnet.ibm.com>
      c4d5e375
    • J
      [POWERPC] Make partitions optional in physmap_of · 8d9ae994
      Josh Boyer 提交于
      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: NJosh Boyer <jwboyer@linux.vnet.ibm.com>
      Acked-by: NDavid Gibson <david@gibson.dropbear.id.au>
      8d9ae994