<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/mtd/nand, branch linux-4.2.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.2.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.2.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2015-10-22T21:49:28Z</updated>
<entry>
<title>mtd: nand: sunxi: fix OOB handling in -&gt;write_xxx() functions</title>
<updated>2015-10-22T21:49:28Z</updated>
<author>
<name>Boris BREZILLON</name>
</author>
<published>2015-09-14T08:41:03Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e36fb25f74ea3e21280d482a2314be4aac1ea1b0'/>
<id>urn:sha1:e36fb25f74ea3e21280d482a2314be4aac1ea1b0</id>
<content type='text'>
commit 03a0e8a7c5ea29b5c4e72dfd64900b47a8fb6f2d upstream.

The USER_DATA register cannot be accessed using byte accessors on A13
SoCs, thus triggering a bug when using memcpy_toio on this register.
Declare an helper macros to convert an OOB buffer into a suitable
USER_DATA value and vice-versa.

This patch also fixes an error in the oob_required logic (some OOB data
are not written even if the user required it) by removing the
oob_required condition, which is perfectly valid since the core already
fill -&gt;oob_poi with FFs when oob_required is false.

Signed-off-by: Boris Brezillon &lt;boris.brezillon@free-electrons.com&gt;
Fixes: 1fef62c1423b ("mtd: nand: add sunxi NAND flash controller support")
Signed-off-by: Brian Norris &lt;computersforpeace@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>mtd: nand: sunxi: fix sunxi_nand_chips_cleanup()</title>
<updated>2015-10-22T21:49:28Z</updated>
<author>
<name>Boris BREZILLON</name>
</author>
<published>2015-09-13T16:14:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a03e4517ee5211298ecd102813ad12ea8b843129'/>
<id>urn:sha1:a03e4517ee5211298ecd102813ad12ea8b843129</id>
<content type='text'>
commit 8e375ccda31ccc73b087134e263c48d2114534f4 upstream.

The sunxi_nand_chips_cleanup() function is missing a call to list_del()
which generates a double free error.

Reported-by: Priit Laes &lt;plaes@plaes.org&gt;
Signed-off-by: Boris Brezillon &lt;boris.brezillon@free-electrons.com&gt;
Fixes: 1fef62c1423b ("mtd: nand: add sunxi NAND flash controller support")
Tested-by: Priit Laes &lt;plaes@plaes.org&gt;
Signed-off-by: Brian Norris &lt;computersforpeace@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>mtd: pxa3xx_nand: add a default chunk size</title>
<updated>2015-10-22T21:49:28Z</updated>
<author>
<name>Antoine Ténart</name>
</author>
<published>2015-08-18T08:59:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8747171eb44f9f4dc354800a3ff5b64c22182233'/>
<id>urn:sha1:8747171eb44f9f4dc354800a3ff5b64c22182233</id>
<content type='text'>
commit bc3e00f04cc1fe033a289c2fc2e5c73c0168d360 upstream.

When keeping the configuration set by the bootloader (by using
the marvell,nand-keep-config property), the pxa3xx_nand_detect_config()
function is called and set the chunk size to 512 as a default value if
NDCR_PAGE_SZ is not set.

In the other case, when not keeping the bootloader configuration, no
chunk size is set. Fix this by adding a default chunk size of 512.

Fixes: 70ed85232a93 ("mtd: nand: pxa3xx: Introduce multiple page I/O
support")

Signed-off-by: Antoine Tenart &lt;antoine.tenart@free-electrons.com&gt;
Acked-by: Robert Jarzmik &lt;robert.jarzmik@free&gt;
Signed-off-by: Brian Norris &lt;computersforpeace@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>mtd: nandsim: Fix kasprintf() usage</title>
<updated>2015-06-17T01:58:47Z</updated>
<author>
<name>Richard Weinberger</name>
</author>
<published>2015-06-01T21:10:50Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=641c7925b6ec78466358b654c731050b4179e5f4'/>
<id>urn:sha1:641c7925b6ec78466358b654c731050b4179e5f4</id>
<content type='text'>
kasprintf() used in get_partition_name() does a dynamic
memory allocation and can fail. We have to handle that case.

Signed-off-by: Richard Weinberger &lt;richard@nod.at&gt;
Signed-off-by: Brian Norris &lt;computersforpeace@gmail.com&gt;
</content>
</entry>
<entry>
<title>mtd: cs553x_nand: Fix kasprintf() usage</title>
<updated>2015-06-17T01:58:47Z</updated>
<author>
<name>Richard Weinberger</name>
</author>
<published>2015-06-01T21:10:51Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=bc349da0a6b3c6cf795b6a51e3f448d9d16a1686'/>
<id>urn:sha1:bc349da0a6b3c6cf795b6a51e3f448d9d16a1686</id>
<content type='text'>
kasprintf() does a dynamic memory allocation and can fail.
We have to handle that case.

Signed-off-by: Richard Weinberger &lt;richard@nod.at&gt;
Signed-off-by: Brian Norris &lt;computersforpeace@gmail.com&gt;
</content>
</entry>
<entry>
<title>mtd: r852: Fix device_create_file() usage</title>
<updated>2015-06-17T01:58:46Z</updated>
<author>
<name>Richard Weinberger</name>
</author>
<published>2015-06-01T21:10:49Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=905cce7f4309f3ec19c1ed67edd68b7e67e88f3e'/>
<id>urn:sha1:905cce7f4309f3ec19c1ed67edd68b7e67e88f3e</id>
<content type='text'>
device_create_file() can fail, therefore we have to
handle this case and abort.

Signed-off-by: Richard Weinberger &lt;richard@nod.at&gt;
Signed-off-by: Brian Norris &lt;computersforpeace@gmail.com&gt;
</content>
</entry>
<entry>
<title>mtd: brcmnand: drop unnecessary initialization</title>
<updated>2015-06-17T01:50:51Z</updated>
<author>
<name>Brian Norris</name>
</author>
<published>2015-05-28T22:07:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5e65d48b6049e090fdc57490db9d797124f2a9eb'/>
<id>urn:sha1:5e65d48b6049e090fdc57490db9d797124f2a9eb</id>
<content type='text'>
Signed-off-by: Brian Norris &lt;computersforpeace@gmail.com&gt;
</content>
</entry>
<entry>
<title>mtd: diskonchip: remove two-phase partitioning / registration</title>
<updated>2015-06-17T01:46:09Z</updated>
<author>
<name>Brian Norris</name>
</author>
<published>2015-06-01T23:17:17Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6a7c7334fe250b53c42eb9d3887fd42bdc9d0d28'/>
<id>urn:sha1:6a7c7334fe250b53c42eb9d3887fd42bdc9d0d28</id>
<content type='text'>
It is a Bad Idea (TM) to call mtd_device_register() or
mtd_device_parse_register() twice on the same master MTD. Among other
things, it makes partition overrides (e.g., cmdlinepart) much more
difficult.

Since commit 727dc612c46b ("mtd: part: Create the master device node
when partitioned"), we now have a config option that accomplishes the
same purpose as the double-registration done in diskonchip.c -- it
forces the master MTD to *always* be registered, while partitions may
optionally show up in addition. Eventually, we might like to make
CONFIG_MTD_PARTITIONED_MASTER into the default, but this could be
disruptive to user-space expectations of MTD numbering, so we'll take
that slowly.

Signed-off-by: Brian Norris &lt;computersforpeace@gmail.com&gt;
Cc: Richard Weinberger &lt;richard@nod.at&gt;
Cc: Alexander Shiyan &lt;shc_work@mail.ru&gt;
</content>
</entry>
<entry>
<title>mtd: plat_nand: use default partition probe</title>
<updated>2015-05-27T19:34:35Z</updated>
<author>
<name>Brian Norris</name>
</author>
<published>2015-05-18T23:15:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8bf57b0dd431e521d7b3f34e0681fbb2536e86b8'/>
<id>urn:sha1:8bf57b0dd431e521d7b3f34e0681fbb2536e86b8</id>
<content type='text'>
It's harmless to add 'ofpart' (the only different parser supported in
default mtdpart.c) to plat_nand. That let's us kill off one more custom
partition prober listing.

Signed-off-by: Brian Norris &lt;computersforpeace@gmail.com&gt;
</content>
</entry>
<entry>
<title>mtd: nand: correct indentation within conditional</title>
<updated>2015-05-22T17:57:47Z</updated>
<author>
<name>Brian Norris</name>
</author>
<published>2015-05-22T17:43:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=db5b09f6ed9d7617e43d7140e8bd8649ec067862'/>
<id>urn:sha1:db5b09f6ed9d7617e43d7140e8bd8649ec067862</id>
<content type='text'>
We had an extra tab.

Signed-off-by: Brian Norris &lt;computersforpeace@gmail.com&gt;
</content>
</entry>
</feed>
