<feed xmlns='http://www.w3.org/2005/Atom'>
<title>u-boot.git/drivers/mtd, branch next</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=next</id>
<link rel='self' href='http://cgit.235523.xyz/u-boot.git/atom/drivers/mtd?h=next'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/'/>
<updated>2026-07-01T18:42:41Z</updated>
<entry>
<title>mtd: spi-nor: Add gd55lb02gf chips</title>
<updated>2026-07-01T18:42:41Z</updated>
<author>
<name>Vincent Jardin</name>
<email>vjardin@free.fr</email>
</author>
<published>2026-05-20T15:00:21Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=e800cc67f5b6cb50a20f37c993ec1cd4063bdbd3'/>
<id>urn:sha1:e800cc67f5b6cb50a20f37c993ec1cd4063bdbd3</id>
<content type='text'>
Add the GigaDevice GD55LB02GF (256 Mo) similar to gd55lb02ge with
the same read path flags.

SPI_NOR_HAS_LOCK and SPI_NOR_HAS_TB do not match this chip's
status register layout: the GD55LB02GF uses a 5-bit block protect
field BP0..BP4 plus a CMP bit in SR2 for direction (see datasheet
"Status Register Block Protection").

The generic stm-lock helpers drive only BP0..BP2 and assume SR1
bit 5 is TB, but on this part SR1 bit 5 is BP3.
Enabling either flag would leave BP3..BP4 unmanaged or corrupt
BP3 on every lock op.
A proper support needs a vendor specific lock callback, it is out
of scope for this table update.

Signed-off-by: Vincent Jardin &lt;vjardin@free.fr&gt;
Suggested-by: Takahiro Kuwano &lt;Takahiro.Kuwano@infineon.com&gt;
Reviewed-by: Takahiro Kuwano &lt;takahiro.kuwano@infineon.com&gt;
</content>
</entry>
<entry>
<title>Kconfig: mtd: restyle</title>
<updated>2026-06-25T20:53:19Z</updated>
<author>
<name>Johan Jonker</name>
<email>jbx6244@gmail.com</email>
</author>
<published>2026-06-10T14:39:20Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=11b7a94757954822d58316024f02a367bfdda99a'/>
<id>urn:sha1:11b7a94757954822d58316024f02a367bfdda99a</id>
<content type='text'>
Restyle all Kconfigs for "mtd":
Menu entries   : no space left
Menu attributes: 1 TAB
Help text      : 1 TAB + 2 spaces
Replace '---help---' by 'help'

Signed-off-by: Johan Jonker &lt;jbx6244@gmail.com&gt;
[trini: Add missing indentation on a few more multi-paragraph help texts]
Signed-off-by: Tom Rini &lt;trini@konsulko.com&gt;
</content>
</entry>
<entry>
<title>mtd: nand: pxa3xx: Pass valid dev to dev_err()</title>
<updated>2026-06-10T09:23:26Z</updated>
<author>
<name>Chris Packham</name>
<email>judge.packham@gmail.com</email>
</author>
<published>2025-12-18T22:59:34Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=a9cc75a25eb6b97ae8e22bdb63ef0bd2c6c690c9'/>
<id>urn:sha1:a9cc75a25eb6b97ae8e22bdb63ef0bd2c6c690c9</id>
<content type='text'>
info-&gt;controller.active is not initialised so the dev_err() call ends up
dereferencing a null pointer causing a crash instead of outputting the
error. Add a dev member to struct pxa3xx_nand_info and use that instead
of info-&gt;controller.active-&gt;mtd.dev.

Fixes: 661c98121d49 ("mtd: nand: pxa3xx: Fix not calling dev_xxx with a device")
Signed-off-by: Chris Packham &lt;judge.packham@gmail.com&gt;
Reviewed-by: Stefan Roese &lt;stefan.roese@mailbox.org&gt;
</content>
</entry>
<entry>
<title>mtd: spi: bootstd: Staticize and constify driver ops</title>
<updated>2026-05-18T22:56:07Z</updated>
<author>
<name>Marek Vasut</name>
<email>marek.vasut+renesas@mailbox.org</email>
</author>
<published>2026-05-07T22:08:10Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=da1ac763c9819a4326582bb048082ea8250a4077'/>
<id>urn:sha1:da1ac763c9819a4326582bb048082ea8250a4077</id>
<content type='text'>
Set the ops structure as static const. The structure is not accessible
from outside of this driver and is not going to be modified at runtime.

Signed-off-by: Marek Vasut &lt;marek.vasut+renesas@mailbox.org&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
Reviewed-by: Takahiro Kuwano &lt;takahiro.kuwano@infineon.com&gt;
</content>
</entry>
<entry>
<title>mtd: nand: raw: sunxi_spl: remove user data length reset</title>
<updated>2026-05-01T12:49:44Z</updated>
<author>
<name>Richard Genoud</name>
<email>richard.genoud@bootlin.com</email>
</author>
<published>2026-03-27T14:05:08Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=4c8d2a633ed22e90c6b1954b10b0f74fd678cb23'/>
<id>urn:sha1:4c8d2a633ed22e90c6b1954b10b0f74fd678cb23</id>
<content type='text'>
No need to reset user data length registers in SPL.

In SPL, only the first user data length register is used, so we don't
need to reset all of them.

Signed-off-by: Richard Genoud &lt;richard.genoud@bootlin.com&gt;
Acked-by: Andre Przywara &lt;andre.przywara@arm.com&gt;
</content>
</entry>
<entry>
<title>mtd: rawnand: sunxi: introduce variable user data length</title>
<updated>2026-05-01T12:49:44Z</updated>
<author>
<name>Richard Genoud</name>
<email>richard.genoud@bootlin.com</email>
</author>
<published>2026-03-27T14:05:07Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=dbed35acee32e68d8f26ade5ec16458323454260'/>
<id>urn:sha1:dbed35acee32e68d8f26ade5ec16458323454260</id>
<content type='text'>
In Allwinner SoCs, user data can be added in OOB before each ECC data.
For older SoCs like A10, the user data size was the size of a register
(4 bytes) and was mandatory before each ECC step.
So, the A10 OOB Layout is:
[4Bytes USER_DATA_STEP0] [ECC_STEP0 bytes]
[4bytes USER_DATA_STEP1] [ECC_STEP1 bytes]
...
NB: the BBM is stored at the beginning of the USER_DATA_STEP0.

Now, for H6/H616 NAND flash controller, this user data can have a
different size for each step.
So, we are maximizing the user data length to use as many OOB bytes as
possible.

Fixes: 7d1de9801151 ("mtd: rawnand: sunxi_spl: add support for H6/H616 nand controller")
Fixes: f163da5e6d26 ("mtd: rawnand: sunxi: add support for H6/H616 nand controller")
Signed-off-by: Richard Genoud &lt;richard.genoud@bootlin.com&gt;
</content>
</entry>
<entry>
<title>mtd: rawnand: sunxi: clean sunxi_nand_chip_init()</title>
<updated>2026-05-01T12:49:37Z</updated>
<author>
<name>Richard Genoud</name>
<email>richard.genoud@bootlin.com</email>
</author>
<published>2026-03-27T14:05:06Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=a776cb833d878dc0e8ea64a0ca28fbcdf166e1f5'/>
<id>urn:sha1:a776cb833d878dc0e8ea64a0ca28fbcdf166e1f5</id>
<content type='text'>
In sunxi_nand_chip_init there's quite a lot of kfree/return, it's easy
to forget a kfree(), so use a goto/kfree instead.

Signed-off-by: Richard Genoud &lt;richard.genoud@bootlin.com&gt;
[Andre: rename goto label, keep return 0;]
Reviewed-by: Andre Przywara &lt;andre.przywara@arm.com&gt;
Signed-off-by: Andre Przywara &lt;andre.przywara@arm.com&gt;
</content>
</entry>
<entry>
<title>mtd: rawnand: sunxi: make the code mode self-explanatory</title>
<updated>2026-04-30T22:35:59Z</updated>
<author>
<name>Richard Genoud</name>
<email>richard.genoud@bootlin.com</email>
</author>
<published>2026-03-27T14:05:05Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=6b33232e32828c47ffb9fa024220a7899533f550'/>
<id>urn:sha1:6b33232e32828c47ffb9fa024220a7899533f550</id>
<content type='text'>
In sunxi_nfc_hw_ecc_{read,write}_chunk(), the ECC step was force to 0,
the reason is not trivial to get when reading the code.

The explanation is that, from the NAND flash controller perspective, we
are indeed at step 0 for user data length and ECC errors.

Just add a const value with an explanation to clarify things.

Signed-off-by: Richard Genoud &lt;richard.genoud@bootlin.com&gt;
Reviewed-By: Michael Trimarchi &lt;michael@amarulasolutions.com&gt;
Acked-by: Andre Przywara &lt;andre.przywara@arm.com&gt;
</content>
</entry>
<entry>
<title>mtd: rawnand: sunxi: Replace hard coded value by a define</title>
<updated>2026-04-30T22:35:59Z</updated>
<author>
<name>Richard Genoud</name>
<email>richard.genoud@bootlin.com</email>
</author>
<published>2026-03-27T14:05:04Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=125bba0f61e3643de67d03c95e5cdcf5fded1f5b'/>
<id>urn:sha1:125bba0f61e3643de67d03c95e5cdcf5fded1f5b</id>
<content type='text'>
The user data length (4) used all over the code hard coded.
And sometimes, it's not that trivial to know that it's the user data
length and not something else.
Moreover, for the H6/H616 this value is no more fixed by hardware, but
could be modified.

Using a define here makes the code more readable.

Suggested-by: Miquel Raynal &lt;miquel.raynal@bootlin.com&gt;
Reviewed-by: Michael Trimarchi &lt;michael@amarulasolutions.com&gt;
Signed-off-by: Richard Genoud &lt;richard.genoud@bootlin.com&gt;
Acked-by: Andre Przywara &lt;andre.przywara@arm.com&gt;
</content>
</entry>
<entry>
<title>mtd: spi-nor-ids: add flags for mx25u12835f</title>
<updated>2026-04-15T20:45:18Z</updated>
<author>
<name>David Lechner</name>
<email>dlechner@baylibre.com</email>
</author>
<published>2026-04-03T20:31:03Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=bc6c4ee8d4309af706002a8d8b6bb2871c07fca2'/>
<id>urn:sha1:bc6c4ee8d4309af706002a8d8b6bb2871c07fca2</id>
<content type='text'>
Add some capability flags for mx25u12835f.

In particular, we are interested in using the lock feature. According to
the datasheet, dual/quad read is also supported.

Signed-off-by: David Lechner &lt;dlechner@baylibre.com&gt;
</content>
</entry>
</feed>
