Revision tags: v00.04.15, v00.04.14, v00.04.13, v00.04.12, v00.04.11, v00.04.10, v00.04.09, v00.04.08, v00.04.07, v00.04.06, v00.04.05, v00.04.04, v00.04.03, v00.04.02, v00.04.01, v00.04.00, v2021.04, v00.03.03, v2021.01, v2020.10, v2020.07, v00.02.13, v2020.04, v2020.01, v2019.10, v00.02.05, v00.02.04, v00.02.03, v00.02.02, v00.02.01, v2019.07, v00.02.00, v2019.04, v2018.07 |
|
#
83d290c5 |
| 06-May-2018 |
Tom Rini <trini@konsulko.com> |
SPDX: Convert all of our single license tags to Linux Kernel style
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
SPDX: Convert all of our single license tags to Linux Kernel style
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 <trini@konsulko.com>
show more ...
|
#
282f1580 |
| 16-Apr-2018 |
Tom Rini <trini@konsulko.com> |
Merge git://git.denx.de/u-boot-cfi-flash
|
#
8bfeb33c |
| 28-Mar-2018 |
Mario Six <mario.six@gdsys.cc> |
mtd: cfi_flash: Make live-tree compatible
Make the cfi_flash driver compatible with a live device tree.
Signed-off-by: Mario Six <mario.six@gdsys.cc> Signed-off-by: Stefan Roese <sr@denx.de>
|
Revision tags: v2018.03 |
|
#
3703526f |
| 29-Jan-2018 |
Tom Rini <trini@konsulko.com> |
Merge git://git.denx.de/u-boot-cfi-flash
|
#
d9a35697 |
| 26-Jan-2018 |
Mario Six <mario.six@gdsys.cc> |
cfi_flash: Always define cfi_flash_num_flash_banks
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: Always define cfi_flash_num_flash_banks
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 <mario.six@gdsys.cc> Signed-off-by: Stefan Roese <sr@denx.de>
show more ...
|
#
c0350fbf |
| 26-Jan-2018 |
Mario Six <mario.six@gdsys.cc> |
cfi_flash: Fix indention
When long expressions surrounded by parentheses are split into multiple lines, each consecutive line should be aligned with the corresponding parenthesis. Fix all instances
cfi_flash: Fix indention
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 <mario.six@gdsys.cc> Signed-off-by: Stefan Roese <sr@denx.de>
show more ...
|
#
ddcf0540 |
| 26-Jan-2018 |
Mario Six <mario.six@gdsys.cc> |
cfi_flash: Fix long lines
Long lines (>80 characters) should be avoided where possible. Break up some long lines where it's not detrimental to readability.
Signed-off-by: Mario Six <mario.six@gdsys
cfi_flash: Fix long lines
Long lines (>80 characters) should be avoided where possible. Break up some long lines where it's not detrimental to readability.
Signed-off-by: Mario Six <mario.six@gdsys.cc> Signed-off-by: Stefan Roese <sr@denx.de>
show more ...
|
#
5701ba82 |
| 26-Jan-2018 |
Mario Six <mario.six@gdsys.cc> |
cfi_flash: Bound-check index before array access
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
cfi_flash: Bound-check index before array access
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 "&&" expression, so that the short-circuit evaluation prevents out-of-bounds array accesses.
Signed-off-by: Mario Six <mario.six@gdsys.cc> Signed-off-by: Stefan Roese <sr@denx.de>
show more ...
|
#
9dbaebcf |
| 26-Jan-2018 |
Mario Six <mario.six@gdsys.cc> |
flash: Fix spelling of "ERR_TIMOUT"
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:
flash: Fix spelling of "ERR_TIMOUT"
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 <mario.six@gdsys.cc> Signed-off-by: Stefan Roese <sr@denx.de>
show more ...
|
#
c8a9a82c |
| 26-Jan-2018 |
Mario Six <mario.six@gdsys.cc> |
cfi_flash: Rename camel-case variables
Camel-case naming should be avoided. Rename two camel-case variables, and fix their usage accordingly.
Signed-off-by: Mario Six <mario.six@gdsys.cc> Signed-of
cfi_flash: Rename camel-case variables
Camel-case naming should be avoided. Rename two camel-case variables, and fix their usage accordingly.
Signed-off-by: Mario Six <mario.six@gdsys.cc> Signed-off-by: Stefan Roese <sr@denx.de>
show more ...
|
#
876c52f3 |
| 26-Jan-2018 |
Mario Six <mario.six@gdsys.cc> |
cfi_flash: Fix strings split across lines
Strings should not be split accross multiple lines. Where possible and not detrimental to readability, fix the instances where this occurs.
Signed-off-by:
cfi_flash: Fix strings split across lines
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 <mario.six@gdsys.cc> Signed-off-by: Stefan Roese <sr@denx.de>
show more ...
|
#
5312838d |
| 26-Jan-2018 |
Mario Six <mario.six@gdsys.cc> |
cfi_flash: Use u8 pointers instead of void pointers
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-s
cfi_flash: Use u8 pointers instead of void pointers
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 <mario.six@gdsys.cc> Signed-off-by: Stefan Roese <sr@denx.de>
show more ...
|
#
d3525b6b |
| 26-Jan-2018 |
Mario Six <mario.six@gdsys.cc> |
cfi_flash: Remove assignments from if conditions
The condition in if statements should not be used for variable assignment. Instead, the assignment should be done in a separate step beforehand. Fix
cfi_flash: Remove assignments from if conditions
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 <mario.six@gdsys.cc> Signed-off-by: Stefan Roese <sr@denx.de>
show more ...
|
#
ab61cfb8 |
| 26-Jan-2018 |
Mario Six <mario.six@gdsys.cc> |
cfi_flash: Remove return from void function
void functions don't need an explicit return at the end.
Signed-off-by: Mario Six <mario.six@gdsys.cc> Signed-off-by: Stefan Roese <sr@denx.de>
|
#
0cec0a12 |
| 26-Jan-2018 |
Mario Six <mario.six@gdsys.cc> |
cfi_flash: Fix placement of brace
The opening brace of block statements should be attached to the statement itself, and not be on a separate line.
Signed-off-by: Mario Six <mario.six@gdsys.cc> Sign
cfi_flash: Fix placement of brace
The opening brace of block statements should be attached to the statement itself, and not be on a separate line.
Signed-off-by: Mario Six <mario.six@gdsys.cc> Signed-off-by: Stefan Roese <sr@denx.de>
show more ...
|
#
9860137f |
| 26-Jan-2018 |
Mario Six <mario.six@gdsys.cc> |
cfi_flash: Fix else after break
If in a loop, the if block in a if/else statement ends in a break, the statements in the else blockcan be extracted, since the break stops the execution.
Signed-off-
cfi_flash: Fix else after break
If in a loop, the if block in a if/else statement ends in a break, the statements in the else blockcan be extracted, since the break stops the execution.
Signed-off-by: Mario Six <mario.six@gdsys.cc> Signed-off-by: Stefan Roese <sr@denx.de>
show more ...
|
#
9f720216 |
| 26-Jan-2018 |
Mario Six <mario.six@gdsys.cc> |
cfi_flash: Fix spelling of "Unknown"
"Unkown" should be spelled "Unknown".
Signed-off-by: Mario Six <mario.six@gdsys.cc> Signed-off-by: Stefan Roese <sr@denx.de>
|
#
12d7fed9 |
| 26-Jan-2018 |
Mario Six <mario.six@gdsys.cc> |
cfi_flash: Add missing braces in blocks
In if/else statements, either both blocks (if and else) should have braces or both blocks should not have braces, but mixed configurations are discouraged. Fi
cfi_flash: Add missing braces in blocks
In if/else statements, either both blocks (if and else) should have braces or both blocks should not have braces, but mixed configurations are discouraged. Fix all instances where this occurs.
Signed-off-by: Mario Six <mario.six@gdsys.cc> Signed-off-by: Stefan Roese <sr@denx.de>
show more ...
|
#
4f89da49 |
| 26-Jan-2018 |
Mario Six <mario.six@gdsys.cc> |
cfi_flash: Remove unnecessary braces
"==" and "!=" bind tighter than the boolean operators, so parentheses around them in compound logical statements are unnecessary. Fix all instances where this oc
cfi_flash: Remove unnecessary braces
"==" and "!=" bind tighter than the boolean operators, so parentheses around them in compound logical statements are unnecessary. Fix all instances where this occurs.
Signed-off-by: Mario Six <mario.six@gdsys.cc> Signed-off-by: Stefan Roese <sr@denx.de>
show more ...
|
#
a6d18f27 |
| 26-Jan-2018 |
Mario Six <mario.six@gdsys.cc> |
cfi_flash: Fix comment style
Comment blocks should end with a "*/" on a separate line, not with the "*/" attached to the end of the last line of text. Fix all instances where this occurs.
Signed-of
cfi_flash: Fix comment style
Comment blocks should end with a "*/" on a separate line, not with the "*/" attached to the end of the last line of text. Fix all instances where this occurs.
Signed-off-by: Mario Six <mario.six@gdsys.cc> Signed-off-by: Stefan Roese <sr@denx.de>
show more ...
|
#
38d2831d |
| 26-Jan-2018 |
Mario Six <mario.six@gdsys.cc> |
cfi_flash: Use __func__ macro instead of function name
printf/debug statements should not include the file name as a hardcoded string, but instead use the __func__ macro. Fix all instances where thi
cfi_flash: Use __func__ macro instead of function name
printf/debug statements should not include the file name as a hardcoded string, but instead use the __func__ macro. Fix all instances where this occurs.
Signed-off-by: Mario Six <mario.six@gdsys.cc> Signed-off-by: Stefan Roese <sr@denx.de>
show more ...
|
#
88ecd8bf |
| 26-Jan-2018 |
Mario Six <mario.six@gdsys.cc> |
cfi_flash: Fix logical continuations
When splitting long logical statements across multiple lines, the logical operators should be at the end of the lines. Fix all instances where this occurs.
Sign
cfi_flash: Fix logical continuations
When splitting long logical statements across multiple lines, the logical operators should be at the end of the lines. Fix all instances where this occurs.
Signed-off-by: Mario Six <mario.six@gdsys.cc> Signed-off-by: Stefan Roese <sr@denx.de>
show more ...
|
#
0412e903 |
| 26-Jan-2018 |
Mario Six <mario.six@gdsys.cc> |
cfi_flash: Remove braces for single-statement blocks
Blocks with a single statement should not be enclosed in braces. Fix all instances where this occurs.
Signed-off-by: Mario Six <mario.six@gdsys.
cfi_flash: Remove braces for single-statement blocks
Blocks with a single statement should not be enclosed in braces. Fix all instances where this occurs.
Signed-off-by: Mario Six <mario.six@gdsys.cc> Signed-off-by: Stefan Roese <sr@denx.de>
show more ...
|
#
7223a8cb |
| 26-Jan-2018 |
Mario Six <mario.six@gdsys.cc> |
cfi_flash: Fix missing/superfluous lines
There should be no consecutive blank lines, and no blank lines at the end of blocks. But there should be blank lines between variable declarations and code.
cfi_flash: Fix missing/superfluous lines
There should be no consecutive blank lines, and no blank lines at the end of blocks. But there should be blank lines between variable declarations and code. Fix all instances where either occurs.
Signed-off-by: Mario Six <mario.six@gdsys.cc> Signed-off-by: Stefan Roese <sr@denx.de>
show more ...
|
#
640f4e35 |
| 26-Jan-2018 |
Mario Six <mario.six@gdsys.cc> |
cfi_flash: Fix spacing around casts/operators
There should be spaces around operators, and no spaces between a cast and the variable its being applied to. Fix all instances where this occurs.
Signe
cfi_flash: Fix spacing around casts/operators
There should be spaces around operators, and no spaces between a cast and the variable its being applied to. Fix all instances where this occurs.
Signed-off-by: Mario Six <mario.six@gdsys.cc> Signed-off-by: Stefan Roese <sr@denx.de>
show more ...
|