<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/drivers/mtd, branch v2.6.28.10</title>
<subtitle>Linux kernel source tree</subtitle>
<id>https://git.amat.us/linux/atom/drivers/mtd?h=v2.6.28.10</id>
<link rel='self' href='https://git.amat.us/linux/atom/drivers/mtd?h=v2.6.28.10'/>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/'/>
<updated>2009-03-17T00:32:18Z</updated>
<entry>
<title>mtd_dataflash: fix probing of AT45DB321C chips.</title>
<updated>2009-03-17T00:32:18Z</updated>
<author>
<name>Will Newton</name>
<email>will.newton@gmail.com</email>
</author>
<published>2009-03-10T19:55:53Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=a96e5528abe51b9c35e33fcac05e84bca18cefe5'/>
<id>urn:sha1:a96e5528abe51b9c35e33fcac05e84bca18cefe5</id>
<content type='text'>
commit 229cc58ba2b5a83b0b55764c6cb98695c106238a upstream.

Commit 771999b65f79264acde4b855e5d35696eca5e80c ("[MTD] DataFlash: bugfix,
binary page sizes now handled") broke support for probing AT45DB321C flash
chips.  These chips do not support the "page size" status bit, so if we
match the JEDEC id return early.

[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Will Newton &lt;will.newton@gmail.com&gt;
Cc: David Woodhouse &lt;dwmw2@infradead.org&gt;
Acked-by: David Brownell &lt;dbrownell@users.sourceforge.net&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>Merge git://git.infradead.org/mtd-2.6</title>
<updated>2008-12-09T16:28:36Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2008-12-09T16:28:36Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=4d9c6a21befe6c73c35f2799c7e25a9eda82a95d'/>
<id>urn:sha1:4d9c6a21befe6c73c35f2799c7e25a9eda82a95d</id>
<content type='text'>
* git://git.infradead.org/mtd-2.6:
  [MTD] [NAND] fix OOPS accessing flash operations over STM flash on PXA
  [MTD] [NAND] drivers/mtd/nand/pasemi_nand.c: Add missing pci_dev_put
  [MTD] [NAND] fsl_upm: fix build problem with 2.6.28-rc2
  [MTD] physmap: fix memory leak on physmap_flash_remove by using devres
  [MTD] m25p80: chip erase != block erase != sector erase
  [MTD] m25p80: fix detection of m25p16 flashes
  [MTD] m25p80: fix detection of SPI parts
  [MTD] [NAND] OMAP: OneNAND: header file relocation (part 2)
  [MTD] [NAND] OMAP: OneNAND: header file relocation
</content>
</entry>
<entry>
<title>[MTD] [NAND] fix OOPS accessing flash operations over STM flash on PXA</title>
<updated>2008-12-03T10:47:20Z</updated>
<author>
<name>Denis V. Lunev</name>
<email>den@parallels.com</email>
</author>
<published>2008-12-03T10:47:20Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=e93f1be503efd0e44e46fc1fd4c13dbee72a6561'/>
<id>urn:sha1:e93f1be503efd0e44e46fc1fd4c13dbee72a6561</id>
<content type='text'>
STM 2Gb flash is a large-page NAND flash.  Set operations accordingly.
This field is dereferenced without a check in several places resulting in
OOPS.

Signed-off-by: Denis V. Lunev &lt;den@openvz.org&gt;
Acked-by: Eric Miao &lt;ymiao3@marvell.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: David Woodhouse &lt;David.Woodhouse@intel.com&gt;
</content>
</entry>
<entry>
<title>[MTD] [NAND] drivers/mtd/nand/pasemi_nand.c: Add missing pci_dev_put</title>
<updated>2008-12-02T10:45:19Z</updated>
<author>
<name>Julia Lawall</name>
<email>julia@diku.dk</email>
</author>
<published>2008-12-01T22:00:55Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=d94762989103b5e29938d8a7b0112e72c4633265'/>
<id>urn:sha1:d94762989103b5e29938d8a7b0112e72c4633265</id>
<content type='text'>
pci_get_device increments a reference count that should be decremented
using pci_dev_put.

The semantic patch that finds the problem is as follows:
(http://www.emn.fr/x-info/coccinelle/)

// &lt;smpl&gt;
@r exists@
local idexpression x;
statement S,S1;
position p1,p2,p3;
expression E,E1;
type T,T1;
expression *ptr != NULL;
@@

(
 if ((x@p1 = pci_get_device(...)) == NULL) S
|
 x@p1 = pci_get_device(...);
)
 ... when != pci_dev_put(...,(T)x,...)
     when != if (...) { &lt;+... pci_dev_put(...,(T)x,...) ...+&gt; }
     when != true x == NULL || ...
     when != x = E
     when != E = (T)x
     when any
(
 if (x == NULL || ...) S1
|
 if@p2 (...) {
  ... when != pci_dev_put(...,(T1)x,...)
      when != if (...) { &lt;+... pci_dev_put(...,(T1)x,...) ...+&gt; }
      when != x = E1
      when != E1 = (T1)x
(
  return \(0\|&lt;+...x...+&gt;\|ptr\);
|
  return@p3 ...;
)
}
)

@ script:python @
p1 &lt;&lt; r.p1;
p3 &lt;&lt; r.p3;
@@

print "* file: %s pci_get_device: %s return: %s" % (p1[0].file,p1[0].line,p3[0].line)
// &lt;/smpl&gt;

Signed-off-by: Julia Lawall &lt;julia@diku.dk&gt;
Acked-by: Olof Johansson &lt;olof@lixom.net&gt;
Signed-off-by: David Woodhouse &lt;David.Woodhouse@intel.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'linux-next' of git://git.infradead.org/~dedekind/ubi-2.6</title>
<updated>2008-11-30T19:34:17Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2008-11-30T19:34:17Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=e2a2444a90ba12f123c9c59362ffe3ab278bccb9'/>
<id>urn:sha1:e2a2444a90ba12f123c9c59362ffe3ab278bccb9</id>
<content type='text'>
* 'linux-next' of git://git.infradead.org/~dedekind/ubi-2.6:
  UBI: Don't exit from ubi_thread until kthread_should_stop() is true
  UBI: fix EBADMSG handling
</content>
</entry>
<entry>
<title>[MTD] [NAND] fsl_upm: fix build problem with 2.6.28-rc2</title>
<updated>2008-11-27T09:46:13Z</updated>
<author>
<name>Wolfgang Grandegger</name>
<email>wg@grandegger.com</email>
</author>
<published>2008-11-27T09:46:13Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=29b65861fbece04cfdf3fee352d5247369131850'/>
<id>urn:sha1:29b65861fbece04cfdf3fee352d5247369131850</id>
<content type='text'>
The patch fixes following build error:

  CC      drivers/mtd/nand/fsl_upm.o
drivers/mtd/nand/fsl_upm.c: In function 'fun_chip_init':
drivers/mtd/nand/fsl_upm.c:168: warning: passing argument 2 of 'of_mtd_parse_partitions' from incompatible pointer type
drivers/mtd/nand/fsl_upm.c:168: warning: passing argument 3 of 'of_mtd_parse_partitions' from incompatible pointer type
drivers/mtd/nand/fsl_upm.c:168: error: too many arguments to function 'of_mtd_parse_partitions'
make[1]: *** [drivers/mtd/nand/fsl_upm.o] Error 1

The breakage was introduced in 69fd3a8d098faf41a04930afa83757c0555ee360
("[MTD] remove unused mtd parameter in of_mtd_parse_partitions()").

While at it, also add a check for the of_mtd_parse_partitions() return
value.

Signed-off-by: Wolfgang Grandegger &lt;wg@grandegger.com&gt;
Signed-off-by: Anton Vorontsov &lt;avorontsov@ru.mvista.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: David Woodhouse &lt;David.Woodhouse@intel.com&gt;
</content>
</entry>
<entry>
<title>[MTD] physmap: fix memory leak on physmap_flash_remove by using devres</title>
<updated>2008-11-26T10:26:29Z</updated>
<author>
<name>Atsushi Nemoto</name>
<email>anemo@mba.ocn.ne.jp</email>
</author>
<published>2008-11-26T10:26:29Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=3136e903fa2d493ebc1b8a8fbdde2d3a17f85acd'/>
<id>urn:sha1:3136e903fa2d493ebc1b8a8fbdde2d3a17f85acd</id>
<content type='text'>
physmap_flash_remove releases only last memory region.  This causes
memory leak if multiple resources were provided.

This patch fixes this leakage by using devm_ functions.

Signed-off-by: Atsushi Nemoto &lt;anemo@mba.ocn.ne.jp&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: David Woodhouse &lt;David.Woodhouse@intel.com&gt;
</content>
</entry>
<entry>
<title>[MTD] m25p80: chip erase != block erase != sector erase</title>
<updated>2008-11-26T10:24:27Z</updated>
<author>
<name>Chen Gong</name>
<email>g.chen@freescale.com</email>
</author>
<published>2008-11-26T10:23:57Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=7854643a91eade84112dca9768eeb8d32463d101'/>
<id>urn:sha1:7854643a91eade84112dca9768eeb8d32463d101</id>
<content type='text'>
This fixes broken terminology added in the "m25p80.c erase enhance" patch,
which added a chip erase command but called it "block erase".  There are
already two block erase commands; blocks are 4KiB or 32KiB.  There's also
a sector erase (usually 64 KiB).  Chip erase typically covers Megabytes.

  OPCODE_BE   ==&gt; OPCODE_CHIP_ERASE
  erase_block ==&gt; erase_chip

[dbrownell@users.sourceforge.net: update sector erase comments too ]

Signed-off-by: Chen Gong &lt;clumsycg@gmail.com&gt;
Signed-off-by: David Brownell &lt;dbrownell@users.sourceforge.net&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: David Woodhouse &lt;David.Woodhouse@intel.com&gt;
</content>
</entry>
<entry>
<title>[MTD] m25p80: fix detection of m25p16 flashes</title>
<updated>2008-11-26T10:23:35Z</updated>
<author>
<name>Mike Frysinger</name>
<email>vapier@gentoo.org</email>
</author>
<published>2008-11-26T10:23:35Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=9168ab861ae3eb8942da61d884a5c1980ba98a5f'/>
<id>urn:sha1:9168ab861ae3eb8942da61d884a5c1980ba98a5f</id>
<content type='text'>
Commit d0e8c47c58575b9131e786edb488fd029eba443e ("m25p80.c extended jedec
support") added support for extended ids but seems to break on flashes
which don't have an extended id defined.  If the table does not have an
extid defined, then we should ignore it.

Signed-off-by: Mike Frysinger &lt;vapier@gentoo.org&gt;
Signed-off-by: Michael Hennerich &lt;Michael.Hennerich@analog.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: David Woodhouse &lt;David.Woodhouse@intel.com&gt;
</content>
</entry>
<entry>
<title>[MTD] m25p80: fix detection of SPI parts</title>
<updated>2008-11-26T10:23:25Z</updated>
<author>
<name>Mike Frysinger</name>
<email>vapier@gentoo.org</email>
</author>
<published>2008-11-26T10:23:25Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=a3d3f73ccbd68b3557c4aaf9f6246ea21d922835'/>
<id>urn:sha1:a3d3f73ccbd68b3557c4aaf9f6246ea21d922835</id>
<content type='text'>
Commit d0e8c47c58575b9131e786edb488fd029eba443e ("m25p80.c extended jedec
support") added support for extended ids but in the process managed to
break detection of all flashes.

The ext jedec id check was inserted into an if statement that lacked
braces, and it did not add the required braces.  As such, the detection
routine always returns the first entry in the SPI flash list.

Signed-off-by: Mike Frysinger &lt;vapier@gentoo.org&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: David Woodhouse &lt;David.Woodhouse@intel.com&gt;
</content>
</entry>
</feed>
