<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/mtd/nand, branch linux-4.0.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.0.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.0.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2015-03-03T06:55:56Z</updated>
<entry>
<title>mtd: nand: MTD_NAND_HISI504 should depend on HAS_DMA</title>
<updated>2015-03-03T06:55:56Z</updated>
<author>
<name>Geert Uytterhoeven</name>
</author>
<published>2015-03-01T09:35:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5e0899db69e27abfdc1c6223ca74f479acdedaa6'/>
<id>urn:sha1:5e0899db69e27abfdc1c6223ca74f479acdedaa6</id>
<content type='text'>
If NO_DMA=y:

    drivers/built-in.o: In function `hisi_nfc_probe':
    hisi504_nand.c:(.text+0x23e646): undefined reference to `dmam_alloc_coherent'

Signed-off-by: Geert Uytterhoeven &lt;geert@linux-m68k.org&gt;
Signed-off-by: Brian Norris &lt;computersforpeace@gmail.com&gt;
</content>
</entry>
<entry>
<title>mtd: pxa3xx_nand: fix driver when num_cs is 0</title>
<updated>2015-02-28T09:22:07Z</updated>
<author>
<name>Robert Jarzmik</name>
</author>
<published>2015-02-08T20:02:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e423c90a6520d704cd885d742b499dfd6b0f6277'/>
<id>urn:sha1:e423c90a6520d704cd885d742b499dfd6b0f6277</id>
<content type='text'>
As the devicetree binding doesn't require num_cs to exist or be strictly
positive, and neither does the platform data case, a bug appear when
num_cs is set to 0 and panics the kernel.

The issue is that in alloc_nand_resource(), chip is dereferenced without
having a value assigned when num_cs == 0.

Fix this by returning ENODEV is num_cs == 0.

The panic seen is :
Unable to handle kernel NULL pointer dereference at virtual address 000002b8
pgd = c0004000
[000002b8] *pgd=00000000
Internal error: Oops: 5 [#1] PREEMPT ARM
Modules linked in:
Hardware name: Marvell PXA3xx (Device Tree Support)
task: c3822aa0 ti: c3826000 task.ti: c3826000
PC is at alloc_nand_resource+0x180/0x4a8
LR is at alloc_nand_resource+0xa0/0x4a8
pc : [&lt;c0275b90&gt;]    lr : [&lt;c0275ab0&gt;]    psr: 68000013
sp : c3827d90  ip : 00000000  fp : 00000000
r10: c3862200  r9 : 0000005e  r8 : 00000000
r7 : c3865610  r6 : c3862210  r5 : c3924210  r4 : c3862200
r3 : 00000000  r2 : 00000000  r1 : 00000000  r0 : 00000000
Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
Control: 0000397f  Table: 80004018  DAC: 00000035
Process swapper (pid: 1, stack limit = 0xc3826198)
Stack: (0xc3827d90 to 0xc3828000)
...zip...
[&lt;c0275b90&gt;] (alloc_nand_resource) from [&lt;c0275ff8&gt;] (pxa3xx_nand_probe+0x140/0x978)
[&lt;c0275ff8&gt;] (pxa3xx_nand_probe) from [&lt;c0258c40&gt;] (platform_drv_probe+0x48/0xa4)
[&lt;c0258c40&gt;] (platform_drv_probe) from [&lt;c0257650&gt;] (driver_probe_device+0x80/0x21c)
[&lt;c0257650&gt;] (driver_probe_device) from [&lt;c0257878&gt;] (__driver_attach+0x8c/0x90)
[&lt;c0257878&gt;] (__driver_attach) from [&lt;c0255ec4&gt;] (bus_for_each_dev+0x58/0x88)
[&lt;c0255ec4&gt;] (bus_for_each_dev) from [&lt;c0256ec8&gt;] (bus_add_driver+0xd8/0x1d4)
[&lt;c0256ec8&gt;] (bus_add_driver) from [&lt;c0257f14&gt;] (driver_register+0x78/0xf4)
[&lt;c0257f14&gt;] (driver_register) from [&lt;c00088a8&gt;] (do_one_initcall+0x80/0x1e4)
[&lt;c00088a8&gt;] (do_one_initcall) from [&lt;c048ed08&gt;] (kernel_init_freeable+0xec/0x1b4)
[&lt;c048ed08&gt;] (kernel_init_freeable) from [&lt;c0377d8c&gt;] (kernel_init+0x8/0xe4)
[&lt;c0377d8c&gt;] (kernel_init) from [&lt;c00095f8&gt;] (ret_from_fork+0x14/0x3c)
Code: e503b234 e5953008 e1530001 caffffd1 (e59002b8)
---[ end trace a5770060c8441895 ]---

Signed-off-by: Robert Jarzmik &lt;robert.jarzmik@free.fr&gt;
Acked-by: Ezequiel Garcia &lt;ezequiel.garcia@free-electrons.com&gt;
Signed-off-by: Brian Norris &lt;computersforpeace@gmail.com&gt;
</content>
</entry>
<entry>
<title>mtd: nand: pxa3xx: Fix PIO FIFO draining</title>
<updated>2015-02-28T08:53:50Z</updated>
<author>
<name>Maxime Ripard</name>
</author>
<published>2015-02-18T10:32:07Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8dad0386b97c4bd6edd56752ca7f2e735fe5beb4'/>
<id>urn:sha1:8dad0386b97c4bd6edd56752ca7f2e735fe5beb4</id>
<content type='text'>
The NDDB register holds the data that are needed by the read and write
commands.

However, during a read PIO access, the datasheet specifies that after each 32
bytes read in that register, when BCH is enabled, we have to make sure that the
RDDREQ bit is set in the NDSR register.

This fixes an issue that was seen on the Armada 385, and presumably other mvebu
SoCs, when a read on a newly erased page would end up in the driver reporting a
timeout from the NAND.

Cc: &lt;stable@vger.kernel.org&gt; # v3.14
Signed-off-by: Maxime Ripard &lt;maxime.ripard@free-electrons.com&gt;
Reviewed-by: Boris Brezillon &lt;boris.brezillon@free-electrons.com&gt;
Acked-by: Ezequiel Garcia &lt;ezequiel.garcia@free-electrons.com&gt;
Signed-off-by: Brian Norris &lt;computersforpeace@gmail.com&gt;
</content>
</entry>
<entry>
<title>mtd: hisilicon: &amp;&amp; vs &amp; typo</title>
<updated>2015-02-15T09:05:05Z</updated>
<author>
<name>Dan Carpenter</name>
</author>
<published>2015-02-11T10:25:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=dd58d38fb30aa9ab52e792092cbd55c1dbc6e974'/>
<id>urn:sha1:dd58d38fb30aa9ab52e792092cbd55c1dbc6e974</id>
<content type='text'>
The intent was to mask away some bits here, not to test true or false.

Fix: 54f531f6e332 ('mtd: hisilicon: add a new NAND controller driver for hisilicon hip04 Soc')
Signed-off-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Signed-off-by: Brian Norris &lt;computersforpeace@gmail.com&gt;
</content>
</entry>
<entry>
<title>mtd: hisilicon: add a new NAND controller driver for hisilicon hip04 Soc</title>
<updated>2015-02-08T08:20:19Z</updated>
<author>
<name>Zhou Wang</name>
</author>
<published>2015-01-25T10:53:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=54f531f6e332875bd8a604871532f7f1174adc0e'/>
<id>urn:sha1:54f531f6e332875bd8a604871532f7f1174adc0e</id>
<content type='text'>
This patch adds the support for hisilicon 504 NAND controller which is now used
by Hisilicon Soc Hip04.

Signed-off-by: Zhou Wang &lt;wangzhou1@hisilicon.com&gt;
Signed-off-by: Brian Norris &lt;computersforpeace@gmail.com&gt;
</content>
</entry>
<entry>
<title>mtd: kconfig: replace PPC_OF with PPC</title>
<updated>2015-02-06T04:01:10Z</updated>
<author>
<name>Kevin Hao</name>
</author>
<published>2015-01-31T13:47:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=be802bf955a1aa9b92b71395405899ce076eca6e'/>
<id>urn:sha1:be802bf955a1aa9b92b71395405899ce076eca6e</id>
<content type='text'>
The PPC_OF is a ppc specific option which is used to mean that the
firmware device tree access functions are available. Since all the
ppc platforms have a device tree, it is aways set to 'y' for ppc.
So it makes no sense to keep a such option in the current kernel.
Replace it with PPC.

Signed-off-by: Kevin Hao &lt;haokexin@gmail.com&gt;
Signed-off-by: Brian Norris &lt;computersforpeace@gmail.com&gt;
</content>
</entry>
<entry>
<title>mtd: denali: remove unnecessary stubs</title>
<updated>2015-02-06T04:01:09Z</updated>
<author>
<name>Masahiro Yamada</name>
</author>
<published>2015-01-13T04:29:17Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d79ee72b8ac37f30a2218fec8c2ba9618c306302'/>
<id>urn:sha1:d79ee72b8ac37f30a2218fec8c2ba9618c306302</id>
<content type='text'>
This driver uses NAND_ECC_HW_SYNDROME mode.  The nand_scan_tail()
function would not complain about missing ecc-&gt;calculate,
ecc-&gt;correct, ecc-&gt;hwctl handlers.

Signed-off-by: Masahiro Yamada &lt;yamada.m@jp.panasonic.com&gt;
Signed-off-by: Brian Norris &lt;computersforpeace@gmail.com&gt;
</content>
</entry>
<entry>
<title>mtd: nand: remove redundant local variable</title>
<updated>2015-02-06T04:01:09Z</updated>
<author>
<name>Baruch Siach</name>
</author>
<published>2015-01-22T13:23:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2ea69d217a376b4d549fc155675f948eaf7afa86'/>
<id>urn:sha1:2ea69d217a376b4d549fc155675f948eaf7afa86</id>
<content type='text'>
Signed-off-by: Baruch Siach &lt;baruch@tkos.co.il&gt;
Signed-off-by: Brian Norris &lt;computersforpeace@gmail.com&gt;
</content>
</entry>
<entry>
<title>mtd: nand: omap: drop condition with no effect</title>
<updated>2015-02-06T03:51:08Z</updated>
<author>
<name>Nicholas Mc Guire</name>
</author>
<published>2015-02-04T17:24:06Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0760e818646d801a13eed57f5fb75c43c7c2794a'/>
<id>urn:sha1:0760e818646d801a13eed57f5fb75c43c7c2794a</id>
<content type='text'>
The if and the else branch code are identical - so the condition has no
effect on the effective code. This patch removes the condition and the
duplicated code and updates the documentation as suggested by
Roger Quadros &lt;rogerq@ti.com&gt;.

Acked-by: Roger Quadros &lt;rogerq@ti.com&gt;
Signed-off-by: Nicholas Mc Guire &lt;hofrat@osadl.org&gt;
Reviewed-by: Pekon Gupta &lt;pekon@pek-sem.com&gt;
Signed-off-by: Brian Norris &lt;computersforpeace@gmail.com&gt;
</content>
</entry>
<entry>
<title>mtd: nand: jz4740: Convert to GPIO descriptor API</title>
<updated>2015-02-02T09:04:36Z</updated>
<author>
<name>Lars-Peter Clausen</name>
</author>
<published>2014-12-02T19:48:26Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=cd145af998886bf3c596cb7b6ddc55a287b76e76'/>
<id>urn:sha1:cd145af998886bf3c596cb7b6ddc55a287b76e76</id>
<content type='text'>
Use the GPIO descriptor API instead of the deprecated legacy GPIO API to
manage the busy GPIO.

The patch updates both the jz4740 nand driver and the only user of the driver
the qi-lb60 board driver.

Signed-off-by: Lars-Peter Clausen &lt;lars@metafoo.de&gt;
Acked-by: Ralf Baechle &lt;ralf@linux-mips.org&gt;
Signed-off-by: Brian Norris &lt;computersforpeace@gmail.com&gt;
</content>
</entry>
</feed>
