<feed xmlns='http://www.w3.org/2005/Atom'>
<title>u-boot.git/drivers/mtd/spi, branch v2018.07</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/u-boot.git/atom/drivers/mtd/spi?h=v2018.07</id>
<link rel='self' href='http://cgit.235523.xyz/u-boot.git/atom/drivers/mtd/spi?h=v2018.07'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/'/>
<updated>2018-06-28T14:28:40Z</updated>
<entry>
<title>sf: Enable FSR polling on N25Q256(A)</title>
<updated>2018-06-28T14:28:40Z</updated>
<author>
<name>Marek Vasut</name>
<email>marex@denx.de</email>
</author>
<published>2018-05-24T19:58:45Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=069b746ad9e66ab75973020f992e059c06cf3a7c'/>
<id>urn:sha1:069b746ad9e66ab75973020f992e059c06cf3a7c</id>
<content type='text'>
The N25Q256(A) datasheet clearly states that this device does have
a Flag Status Register and does update FSR PEC bit 7 during Program
and Erase cycles to indicate the cycle is in progress. Enable the
FSR PEC bit polling on this device to prevent data corruption.

Signed-off-by: Marek Vasut &lt;marex@denx.de&gt;
Cc: Jagan Teki &lt;jagan@openedev.com&gt;
Cc: Tom Rini &lt;trini@konsulko.com&gt;
</content>
</entry>
<entry>
<title>mtd: spi: Correct parameters for s25fs512s flash</title>
<updated>2018-06-25T10:20:33Z</updated>
<author>
<name>Ashish Kumar</name>
<email>Ashish.Kumar@nxp.com</email>
</author>
<published>2018-06-25T10:15:11Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=51dce7d2bfdecd974412634e4a0758ac55edcc00'/>
<id>urn:sha1:51dce7d2bfdecd974412634e4a0758ac55edcc00</id>
<content type='text'>
Change sector size to 256KiB in table spi_flash_ids.

Signed-off-by: Ashish Kumar &lt;Ashish.Kumar@nxp.com&gt;
Reviewed-by: Jagan Teki &lt;jagan@openedev.com&gt;
</content>
</entry>
<entry>
<title>spi: sandbox: Fix memory leak in sandbox_sf_bind_emul()</title>
<updated>2018-06-19T11:31:44Z</updated>
<author>
<name>Simon Glass</name>
<email>sjg@chromium.org</email>
</author>
<published>2018-06-12T06:05:01Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=fb95283931011aef78d885f2799ad9d7367f4e48'/>
<id>urn:sha1:fb95283931011aef78d885f2799ad9d7367f4e48</id>
<content type='text'>
Move the strdup() call so that it is only done when we know we will bind
the device.

Reported-by: Coverity (CID: 131216)

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>sf: Add support for gd25q32b gigadevice flash</title>
<updated>2018-06-04T18:10:04Z</updated>
<author>
<name>Carlo Caione</name>
<email>carlo@endlessm.com</email>
</author>
<published>2018-06-02T13:06:17Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=b1f2b72e39465f2d4582bb4d8c426489ee94e2d9'/>
<id>urn:sha1:b1f2b72e39465f2d4582bb4d8c426489ee94e2d9</id>
<content type='text'>
This flash IC is used in some chromebook models
manufactured by Bitland.

Signed-off-by: Carlo Caione &lt;carlo@endlessm.com&gt;
Reviewed-by: Jagan Teki &lt;jagan@openedev.com&gt;
</content>
</entry>
<entry>
<title>sf: Set current flash bank to 0 in clean_bar()</title>
<updated>2018-06-04T18:01:37Z</updated>
<author>
<name>Marek Vasut</name>
<email>marex@denx.de</email>
</author>
<published>2018-05-24T19:58:40Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=8ff4130debcc09594b550209c44abf6c7e3ee595'/>
<id>urn:sha1:8ff4130debcc09594b550209c44abf6c7e3ee595</id>
<content type='text'>
The clean_bar() function resets the SPI NOR BAR register to 0, but
does not set the flash-&gt;curr_bar to 0 , therefore those two can get
out of sync, which could ultimatelly result in corrupted flash content.

The simplest test case is this:

  =&gt; mw 0x10000000 0x1234abcd 0x4000
  =&gt; sf probe
  =&gt; sf erase 0x1000000 0x10000
  =&gt; sf write 0x10000000 0x1000000 0x10000

  =&gt; sf probe ; sf read 0x12000000 0 0x10000 ; md 0x12000000

That is, erase a sector above the 16 MiB boundary and write it with
random pre-configured data. What will actually happen without this
patch is the sector will be erased, but the data will be written to
BAR 0 offset 0x0 in the flash.

This is because the erase command will call write_bar()+clean_bar(),
which will leave flash-&gt;bank_curr = 1 while the hardware BAR registers
will be set to 0 through clean_bar(). The subsequent write will also
trigger write_bar()+clean_bar(), but write_bar checks if the target
bank == flash-&gt;bank_curr and if so, does NOT reconfigure the BAR in
the SPI NOR. Since flash-&gt;bank_curr is still 1 and out of sync with
the HW, the condition matches, BAR programming is skipped and write
ends up at address 0x0, thus corrupting flash content.

Signed-off-by: Marek Vasut &lt;marex@denx.de&gt;
Cc: Tom Rini &lt;trini@konsulko.com&gt;
Reviewed-by: Jagan Teki &lt;jagan@openedev.com&gt;
</content>
</entry>
<entry>
<title>sf: Add Macronix MX25U25635F ID</title>
<updated>2018-05-29T04:35:52Z</updated>
<author>
<name>Marek Vasut</name>
<email>marex@denx.de</email>
</author>
<published>2018-05-17T12:49:03Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=a2569f12f0efaad2b1e0754a19f373275562f91e'/>
<id>urn:sha1:a2569f12f0efaad2b1e0754a19f373275562f91e</id>
<content type='text'>
Add ID for the Macronix MX25U25635F flash.

Signed-off-by: Marek Vasut &lt;marex@denx.de&gt;
Reviewed-by: Jagan Teki &lt;jagan@openedev.com&gt;
</content>
</entry>
<entry>
<title>sf: Add Winbond W25Q256 ID</title>
<updated>2018-05-29T04:35:32Z</updated>
<author>
<name>Marek Vasut</name>
<email>marex@denx.de</email>
</author>
<published>2018-05-16T14:45:18Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=d8c16849a90866617c6656c5d25d860be840dec9'/>
<id>urn:sha1:d8c16849a90866617c6656c5d25d860be840dec9</id>
<content type='text'>
Add ID for the Winbond W25Q256 flash.

Signed-off-by: Marek Vasut &lt;marex@denx.de&gt;
Reviewed-by: Jagan Teki &lt;jagan@openedev.com&gt;
</content>
</entry>
<entry>
<title>sf: Default page size Spansion flash "S25FS512S" is 256b</title>
<updated>2018-05-16T13:26:49Z</updated>
<author>
<name>Ashish Kumar</name>
<email>Ashish.Kumar@nxp.com</email>
</author>
<published>2018-05-07T10:31:47Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=4eaa2fa16968359ffcf207e63848ed7f3a6e4309'/>
<id>urn:sha1:4eaa2fa16968359ffcf207e63848ed7f3a6e4309</id>
<content type='text'>
page size for JEDEC EXT starting 0x4d00 is 512b,
except JEDEC ID 0x215, 0x216 and 0x220

Signed-off-by: Ashish Kumar &lt;Ashish.Kumar@nxp.com&gt;
[jagan: added proper commit message]
Signed-off-by: Jagan Teki &lt;jagan@amarulasolutions.com&gt;
Reviewed-by: Jagan Teki &lt;jagan@openedev.com&gt;
</content>
</entry>
<entry>
<title>sf: Add support for ISSI is25wp</title>
<updated>2018-05-16T13:20:25Z</updated>
<author>
<name>Kimmo Rautkoski</name>
<email>ext-kimmo.rautkoski@vaisala.com</email>
</author>
<published>2018-05-14T06:30:26Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=39b9e9bc72cef52abb8532ffa92c42be9f010e2f'/>
<id>urn:sha1:39b9e9bc72cef52abb8532ffa92c42be9f010e2f</id>
<content type='text'>
Added support for is25wp032, is25wp064 and is25wp128.

Signed-off-by: Kimmo Rautkoski &lt;ext-kimmo.rautkoski@vaisala.com&gt;
Reviewed-by: Jagan Teki &lt;jagan@openedev.com&gt;
</content>
</entry>
<entry>
<title>SPDX: Convert all of our single license tags to Linux Kernel style</title>
<updated>2018-05-07T13:34:12Z</updated>
<author>
<name>Tom Rini</name>
<email>trini@konsulko.com</email>
</author>
<published>2018-05-06T21:58:06Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=83d290c56fab2d38cd1ab4c4cc7099559c1d5046'/>
<id>urn:sha1:83d290c56fab2d38cd1ab4c4cc7099559c1d5046</id>
<content type='text'>
When U-Boot started using SPDX tags we were among the early adopters and
there weren't a lot of other examples to borrow from.  So we picked the
area of the file that usually had a full license text and replaced it
with an appropriate SPDX-License-Identifier: entry.  Since then, the
Linux Kernel has adopted SPDX tags and they place it as the very first
line in a file (except where shebangs are used, then it's second line)
and with slightly different comment styles than us.

In part due to community overlap, in part due to better tag visibility
and in part for other minor reasons, switch over to that style.

This commit changes all instances where we have a single declared
license in the tag as both the before and after are identical in tag
contents.  There's also a few places where I found we did not have a tag
and have introduced one.

Signed-off-by: Tom Rini &lt;trini@konsulko.com&gt;
</content>
</entry>
</feed>
