<feed xmlns='http://www.w3.org/2005/Atom'>
<title>u-boot.git/drivers/mtd, branch v2025.10-rc4</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/u-boot.git/atom/drivers/mtd?h=v2025.10-rc4</id>
<link rel='self' href='http://cgit.235523.xyz/u-boot.git/atom/drivers/mtd?h=v2025.10-rc4'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/'/>
<updated>2025-08-25T14:47:04Z</updated>
<entry>
<title>mtd: rawnand: stm32_fmc2: set available OOB bytes per page</title>
<updated>2025-08-25T14:47:04Z</updated>
<author>
<name>Christophe Kerello</name>
<email>christophe.kerello@foss.st.com</email>
</author>
<published>2025-08-12T12:35:11Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=4c28c4d9a3a814cebb93e20842ed2c1c90f703d3'/>
<id>urn:sha1:4c28c4d9a3a814cebb93e20842ed2c1c90f703d3</id>
<content type='text'>
File system such as YAFFS2 need to know the number of available
OOB bytes per page to be able to choose if they should locate their
metadata in the data area or in the spare area.

Signed-off-by: Christophe Kerello &lt;christophe.kerello@foss.st.com&gt;
Reviewed-by: Patrice Chotard &lt;patrice.chotard@foss.st.com&gt;
</content>
</entry>
<entry>
<title>mtd: nand: Do not dereference before NULL check</title>
<updated>2025-08-23T14:37:26Z</updated>
<author>
<name>Andrew Goodbody</name>
<email>andrew.goodbody@linaro.org</email>
</author>
<published>2025-07-31T16:21:32Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=6b156c62ced25d3f8aed64c81e471353b56d0f2c'/>
<id>urn:sha1:6b156c62ced25d3f8aed64c81e471353b56d0f2c</id>
<content type='text'>
In nanddev_init mtd and memorg are assigned values that dereference nand
but this happens before a NULL check for nand. Move the assignments
after the NULL check.

This issue was found by Smatch.

Signed-off-by: Andrew Goodbody &lt;andrew.goodbody@linaro.org&gt;
Signed-off-by: Michael Trimarchi &lt;michael@amarulasolutions.com&gt;
</content>
</entry>
<entry>
<title>mtd: nand: cadence: Fix device assignment to avoid warm reset issue</title>
<updated>2025-08-23T14:37:05Z</updated>
<author>
<name>Dinesh Maniyam</name>
<email>dinesh.maniyam@altera.com</email>
</author>
<published>2025-08-19T08:35:09Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=5d542302230fec4edf6443aac25a442b3245306a'/>
<id>urn:sha1:5d542302230fec4edf6443aac25a442b3245306a</id>
<content type='text'>
The driver currently does:
    mtd-&gt;dev-&gt;parent = cadence-&gt;dev;

This works in Linux because `struct mtd_info` embeds a `struct device`,
so `mtd-&gt;dev` is always valid and its `.parent` can be set.

In U-Boot, however, `mtd-&gt;dev` is only a pointer to a `struct udevice`.
Dereferencing it before assignment is invalid, which breaks the device
hierarchy. As a result, consumers relying on `mtd-&gt;dev` (e.g. partition
parser, reset and re-init paths) operate on a dangling pointer. This
leads to failures during warm reset when the NAND device is accessed
again.

Fix by assigning the device pointer directly:
    mtd-&gt;dev = cadence-&gt;dev;

This matches U-Boot’s device model, preserves a valid hierarchy, and
resolves the warm reset issue on Cadence NAND.

Fixes: ebc41cad ("drivers: mtd: nand: Add driver for Cadence Nand")
Signed-off-by: Dinesh Maniyam &lt;dinesh.maniyam@altera.com&gt;
Signed-off-by: Michael Trimarchi &lt;michael@amarulasolutions.com&gt;
</content>
</entry>
<entry>
<title>mtd: spi-nor: Fix return value of s25_s28_mdp_ready()</title>
<updated>2025-08-07T17:14:35Z</updated>
<author>
<name>Takahiro Kuwano</name>
<email>Takahiro.Kuwano@infineon.com</email>
</author>
<published>2025-07-28T01:13:58Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=a0526d44daebeb39d058d8b274370c3070457727'/>
<id>urn:sha1:a0526d44daebeb39d058d8b274370c3070457727</id>
<content type='text'>
s25_s28_mdp_ready() returns 1 when spansion_sr_ready() returns negative
value (error code). Fix this problem by following Linux implementation.

Fixes: 1c3dd193b5b ("mtd: spi-nor-core: Add fixups for Cypress s25hl-t/s25hs-t")
Reported-by: Hiroyuki Saito &lt;Hiroyuki.Saito2@infineon.com&gt;
Signed-off-by: Takahiro Kuwano &lt;Takahiro.Kuwano@infineon.com&gt;
Reviewed-by: Tudor Ambarus &lt;tudor.ambarus@linaro.org&gt;
</content>
</entry>
<entry>
<title>mtd: spi-nor-ids: Add support for Winbond W77Q51NW</title>
<updated>2025-08-06T14:52:27Z</updated>
<author>
<name>Marek Vasut</name>
<email>marek.vasut+renesas@mailbox.org</email>
</author>
<published>2025-07-20T19:58:47Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=393ace55be5cae4d4f543784d35f3b42655fd9c2'/>
<id>urn:sha1:393ace55be5cae4d4f543784d35f3b42655fd9c2</id>
<content type='text'>
Add IDs for Winbond W77Q51NW, 512M-bit Secure Serial Flash Memory
with Post-Quantum Cryptography, Dual/Quad SPI, QPI and DTR . The
flash part is similar to W25Q512NWM .

Signed-off-by: Marek Vasut &lt;marek.vasut+renesas@mailbox.org&gt;
Reviewed-by: Tudor Ambarus &lt;tudor.ambarus@linaro.org&gt;
</content>
</entry>
<entry>
<title>mtd: nand: raw: Remove unused octeontx_nand driver</title>
<updated>2025-08-03T08:32:08Z</updated>
<author>
<name>Tom Rini</name>
<email>trini@konsulko.com</email>
</author>
<published>2025-07-11T15:19:45Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=8877bbe67a9be64f2735a45479df196cd22949aa'/>
<id>urn:sha1:8877bbe67a9be64f2735a45479df196cd22949aa</id>
<content type='text'>
As no platforms use this driver anymore let's go ahead and remove it.

Signed-off-by: Tom Rini &lt;trini@konsulko.com&gt;
</content>
</entry>
<entry>
<title>mtd: nand: raw: Remove unused mxic_nand driver</title>
<updated>2025-08-03T08:31:14Z</updated>
<author>
<name>Tom Rini</name>
<email>trini@konsulko.com</email>
</author>
<published>2025-07-11T15:19:52Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=cb34f23bdb6f869bac4e4cad8407e7b54fdfce7a'/>
<id>urn:sha1:cb34f23bdb6f869bac4e4cad8407e7b54fdfce7a</id>
<content type='text'>
As no platforms use this driver anymore let's go ahead and remove it.

Signed-off-by: Tom Rini &lt;trini@konsulko.com&gt;
Reviewed-by: Michael Trimarchi &lt;michael@amarulasolutions.com&gt;
</content>
</entry>
<entry>
<title>mtd: nand: raw: Remove unused lpc32xx_nand_slc driver</title>
<updated>2025-08-03T08:27:47Z</updated>
<author>
<name>Tom Rini</name>
<email>trini@konsulko.com</email>
</author>
<published>2025-08-03T08:27:47Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=2412f00fc95c73d1683ee385d464c9d4cea8c34a'/>
<id>urn:sha1:2412f00fc95c73d1683ee385d464c9d4cea8c34a</id>
<content type='text'>
As no platforms use this driver anymore let's go ahead and remove it.

Signed-off-by: Tom Rini &lt;trini@konsulko.com&gt;
</content>
</entry>
<entry>
<title>mtd: rawnand: mxs_nand: Ensure err is set for error path</title>
<updated>2025-08-03T08:22:04Z</updated>
<author>
<name>Andrew Goodbody</name>
<email>andrew.goodbody@linaro.org</email>
</author>
<published>2025-08-01T09:54:06Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=27242462167f678cb6ec78fa8c97f25c9557cb1e'/>
<id>urn:sha1:27242462167f678cb6ec78fa8c97f25c9557cb1e</id>
<content type='text'>
In mxs_nand_init_ctrl there are a couple of error paths that do not set
err which could lead to the errors being silently ignored despite the
function not completing. Rather than just using if to detect these
errors use err to collect the error return value from the called
functions.

This issue was found by Smatch.

Signed-off-by: Andrew Goodbody &lt;andrew.goodbody@linaro.org&gt;
Reviewed-by: Michael Trimarchi &lt;michael@amarulasolutions.com&gt;
</content>
</entry>
<entry>
<title>mtd: rawnand: denali: Remove always true test</title>
<updated>2025-08-03T08:22:04Z</updated>
<author>
<name>Andrew Goodbody</name>
<email>andrew.goodbody@linaro.org</email>
</author>
<published>2025-08-01T09:54:05Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=2756de5213a1a88fae236d7be217c882b5daef9f'/>
<id>urn:sha1:2756de5213a1a88fae236d7be217c882b5daef9f</id>
<content type='text'>
In denali_wait_for_irq the code will either return from inside the while
loop or exit with time_left being 0. The following test for time_left
being 0 is guranteed to be true so remove the test and the following
unreachable code.

This issue was found by Smatch.

Signed-off-by: Andrew Goodbody &lt;andrew.goodbody@linaro.org&gt;
Reviewed-by: Michael Trimarchi &lt;michael@amarulasolutions.com&gt;
</content>
</entry>
</feed>
