<feed xmlns='http://www.w3.org/2005/Atom'>
<title>u-boot.git/drivers/mtd, branch v2018.03-rc1</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=v2018.03-rc1</id>
<link rel='self' href='http://cgit.235523.xyz/u-boot.git/atom/drivers/mtd?h=v2018.03-rc1'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/'/>
<updated>2018-01-29T06:48:59Z</updated>
<entry>
<title>cfi_flash: Always define cfi_flash_num_flash_banks</title>
<updated>2018-01-29T06:48:59Z</updated>
<author>
<name>Mario Six</name>
<email>mario.six@gdsys.cc</email>
</author>
<published>2018-01-26T13:43:56Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=d9a356972b7504e2e1b0a2b61ddc25a4452502e6'/>
<id>urn:sha1:d9a356972b7504e2e1b0a2b61ddc25a4452502e6</id>
<content type='text'>
The variable cfi_flash_num_flash_banks is defined iff
CONFIG_SYS_MAX_FLASH_BANKS_DETECT is defined, but it is used
unconditionally in the function cfi_flash_init_dm. This leads to a
undefined variable compile error when CONFIG_SYS_MAX_FLASH_BANKS_DETECT
is not defined, but DM is enabled.

Fix this by always defining the cfi_flash_num_flash_banks variable.

Signed-off-by: Mario Six &lt;mario.six@gdsys.cc&gt;
Signed-off-by: Stefan Roese &lt;sr@denx.de&gt;
</content>
</entry>
<entry>
<title>cfi_flash: Fix indention</title>
<updated>2018-01-29T06:48:59Z</updated>
<author>
<name>Mario Six</name>
<email>mario.six@gdsys.cc</email>
</author>
<published>2018-01-26T13:43:55Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=c0350fbf4c0e9f2d178d89aee49561ce2b4bf890'/>
<id>urn:sha1:c0350fbf4c0e9f2d178d89aee49561ce2b4bf890</id>
<content type='text'>
When long expressions surrounded by parentheses are split into multiple
lines, each consecutive line should be aligned with the corresponding
parenthesis. Fix all instances where this occurs.

Signed-off-by: Mario Six &lt;mario.six@gdsys.cc&gt;
Signed-off-by: Stefan Roese &lt;sr@denx.de&gt;
</content>
</entry>
<entry>
<title>cfi_flash: Fix long lines</title>
<updated>2018-01-29T06:48:59Z</updated>
<author>
<name>Mario Six</name>
<email>mario.six@gdsys.cc</email>
</author>
<published>2018-01-26T13:43:54Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=ddcf05403dc2524e6aa8503e55cf5dc85afa13da'/>
<id>urn:sha1:ddcf05403dc2524e6aa8503e55cf5dc85afa13da</id>
<content type='text'>
Long lines (&gt;80 characters) should be avoided where possible. Break up
some long lines where it's not detrimental to readability.

Signed-off-by: Mario Six &lt;mario.six@gdsys.cc&gt;
Signed-off-by: Stefan Roese &lt;sr@denx.de&gt;
</content>
</entry>
<entry>
<title>cfi_flash: Bound-check index before array access</title>
<updated>2018-01-29T06:48:59Z</updated>
<author>
<name>Mario Six</name>
<email>mario.six@gdsys.cc</email>
</author>
<published>2018-01-26T13:43:53Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=5701ba82894d679eb42df5d0b93a2d44b3df695d'/>
<id>urn:sha1:5701ba82894d679eb42df5d0b93a2d44b3df695d</id>
<content type='text'>
In a while loop in cfi_flash.c the array "start" is accessed at the index
"sector" before the index variable "sector" is bounds-checked, which
might lead to accesses beyond the bounds of the array.

Swap the order of the checks in the "&amp;&amp;" expression, so that the
short-circuit evaluation prevents out-of-bounds array accesses.

Signed-off-by: Mario Six &lt;mario.six@gdsys.cc&gt;
Signed-off-by: Stefan Roese &lt;sr@denx.de&gt;
</content>
</entry>
<entry>
<title>flash: Fix spelling of "ERR_TIMOUT"</title>
<updated>2018-01-29T06:48:59Z</updated>
<author>
<name>Mario Six</name>
<email>mario.six@gdsys.cc</email>
</author>
<published>2018-01-26T13:43:52Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=9dbaebcf9f401c5dcea762e34a3dc8ed10760623'/>
<id>urn:sha1:9dbaebcf9f401c5dcea762e34a3dc8ed10760623</id>
<content type='text'>
checkpatch.pl complains about the spelling of ERR_TIMOUT. Since the
error is only used in a handful of files, we rename the error to
ERR_TIMEOUT.

Signed-off-by: Mario Six &lt;mario.six@gdsys.cc&gt;
Signed-off-by: Stefan Roese &lt;sr@denx.de&gt;
</content>
</entry>
<entry>
<title>cfi_flash: Rename camel-case variables</title>
<updated>2018-01-29T06:48:58Z</updated>
<author>
<name>Mario Six</name>
<email>mario.six@gdsys.cc</email>
</author>
<published>2018-01-26T13:43:51Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=c8a9a82c10e0c55f6cfa71cb174968cb54acfa5d'/>
<id>urn:sha1:c8a9a82c10e0c55f6cfa71cb174968cb54acfa5d</id>
<content type='text'>
Camel-case naming should be avoided. Rename two camel-case variables,
and fix their usage accordingly.

Signed-off-by: Mario Six &lt;mario.six@gdsys.cc&gt;
Signed-off-by: Stefan Roese &lt;sr@denx.de&gt;
</content>
</entry>
<entry>
<title>cfi_flash: Fix strings split across lines</title>
<updated>2018-01-29T06:48:58Z</updated>
<author>
<name>Mario Six</name>
<email>mario.six@gdsys.cc</email>
</author>
<published>2018-01-26T13:43:50Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=876c52f3c35738eab091c0ef2fad28d8cbaa2c5f'/>
<id>urn:sha1:876c52f3c35738eab091c0ef2fad28d8cbaa2c5f</id>
<content type='text'>
Strings should not be split accross multiple lines. Where possible and
not detrimental to readability, fix the instances where this occurs.

Signed-off-by: Mario Six &lt;mario.six@gdsys.cc&gt;
Signed-off-by: Stefan Roese &lt;sr@denx.de&gt;
</content>
</entry>
<entry>
<title>cfi_flash: Use u8 pointers instead of void pointers</title>
<updated>2018-01-29T06:48:58Z</updated>
<author>
<name>Mario Six</name>
<email>mario.six@gdsys.cc</email>
</author>
<published>2018-01-26T13:43:49Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=5312838dd5b3959907d6c4f0ec3e04954210fafc'/>
<id>urn:sha1:5312838dd5b3959907d6c4f0ec3e04954210fafc</id>
<content type='text'>
According to the C standard, pointer arithmetic for pointers of type
void is undefined behavior (the assumption that they're 8-bit wide is a
GCC-specific assumption). In the interest of keeping the code
standards-compliant, and also better communicate intent, switch all
void* variables where pointer arithmetic is used to u8* variables.

Signed-off-by: Mario Six &lt;mario.six@gdsys.cc&gt;
Signed-off-by: Stefan Roese &lt;sr@denx.de&gt;
</content>
</entry>
<entry>
<title>cfi_flash: Remove assignments from if conditions</title>
<updated>2018-01-29T06:48:58Z</updated>
<author>
<name>Mario Six</name>
<email>mario.six@gdsys.cc</email>
</author>
<published>2018-01-26T13:43:48Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=d3525b6bb0c39de537f0d2e79bb9ab9ad8fd8bf5'/>
<id>urn:sha1:d3525b6bb0c39de537f0d2e79bb9ab9ad8fd8bf5</id>
<content type='text'>
The condition in if statements should not be used for variable
assignment. Instead, the assignment should be done in a separate step
beforehand. Fix all instances where this occurs.

Signed-off-by: Mario Six &lt;mario.six@gdsys.cc&gt;
Signed-off-by: Stefan Roese &lt;sr@denx.de&gt;
</content>
</entry>
<entry>
<title>cfi_flash: Remove return from void function</title>
<updated>2018-01-29T06:48:58Z</updated>
<author>
<name>Mario Six</name>
<email>mario.six@gdsys.cc</email>
</author>
<published>2018-01-26T13:43:47Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=ab61cfb857a14c4dd90a5d11c2f3064c28d5b3a1'/>
<id>urn:sha1:ab61cfb857a14c4dd90a5d11c2f3064c28d5b3a1</id>
<content type='text'>
void functions don't need an explicit return at the end.

Signed-off-by: Mario Six &lt;mario.six@gdsys.cc&gt;
Signed-off-by: Stefan Roese &lt;sr@denx.de&gt;
</content>
</entry>
</feed>
