<feed xmlns='http://www.w3.org/2005/Atom'>
<title>OpenOCD/src/flash/nand, branch master</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>https://git.amat.us/openocd/atom/src/flash/nand?h=master</id>
<link rel='self' href='https://git.amat.us/openocd/atom/src/flash/nand?h=master'/>
<link rel='alternate' type='text/html' href='https://git.amat.us/openocd/'/>
<updated>2019-09-08T10:51:21Z</updated>
<entry>
<title>src/flash/nand: Fix some operator precedence bugs.</title>
<updated>2019-09-08T10:51:21Z</updated>
<author>
<name>Seth LaForge</name>
<email>sethml@google.com</email>
</author>
<published>2019-08-19T17:40:07Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/openocd/commit/?id=844c82934ed5f23b62326870f9d7818afce7c4f6'/>
<id>urn:sha1:844c82934ed5f23b62326870f9d7818afce7c4f6</id>
<content type='text'>
Fix two expressions where precedence of operator | vs ?: was clearly confused.
Untested - was clearly not expressing the intent of the author by inspection.
Found by automated tooling and rtrieu@google.com.

Change-Id: I46f190154797f8affc761caf3a15a1a9db53d702
Signed-off-by: Seth LaForge &lt;sethml@google.com&gt;
Reviewed-on: http://openocd.zylin.com/5281
Tested-by: jenkins
Reviewed-by: Andreas Fritiofson &lt;andreas.fritiofson@gmail.com&gt;
</content>
</entry>
<entry>
<title>helper/command: change prototype of command_print/command_print_sameline</title>
<updated>2019-05-14T18:37:11Z</updated>
<author>
<name>Antonio Borneo</name>
<email>borneo.antonio@gmail.com</email>
</author>
<published>2019-04-03T08:37:24Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/openocd/commit/?id=6cb5ba6f1136df2986850f5c176cb38e34ca1795'/>
<id>urn:sha1:6cb5ba6f1136df2986850f5c176cb38e34ca1795</id>
<content type='text'>
To prepare for handling TCL return values consistently, all calls
to command_print/command_print_sameline should switch to CMD as
first parameter.

Change prototype of command_print() and command_print_sameline()
to pass CMD instead of CMD_CTX.
Since the first parameter is currently not used, the change can be
done though scripts without manual coding.
This patch is created using the command:
	sed -i PATTERN $(find src/ doc/ -type f)
with all the following patters:
	's/\(command_print(cmd\)-&gt;ctx,/\1,/'
	's/\(command_print(CMD\)_CTX,/\1,/'
	's/\(command_print(struct command_\)context \*context,/\1invocation *cmd,/'
	's/\(command_print_sameline(cmd\)-&gt;ctx,/\1,/'
	's/\(command_print_sameline(CMD\)_CTX,/\1,/'
	's/\(command_print_sameline(struct command_\)context \*context,/\1invocation *cmd,/'

This change is inspired by http://openocd.zylin.com/1815 from Paul
Fertser but is now done through scripting.

Change-Id: I3386d8f96cdc477e7a2308dd18269de3bed04385
Signed-off-by: Antonio Borneo &lt;borneo.antonio@gmail.com&gt;
Signed-off-by: Paul Fertser &lt;fercerpav@gmail.com&gt;
Reviewed-on: http://openocd.zylin.com/5081
Tested-by: jenkins
Reviewed-by: Tomas Vanek &lt;vanekt@fbl.cz&gt;
</content>
</entry>
<entry>
<title>nand/tcl: pass CMD to nand_list_walker()</title>
<updated>2019-05-14T18:33:51Z</updated>
<author>
<name>Paul Fertser</name>
<email>fercerpav@gmail.com</email>
</author>
<published>2019-03-31T16:34:25Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/openocd/commit/?id=962267ba1a3b71cf50407bb6a9b3b2d1cb8cdf85'/>
<id>urn:sha1:962267ba1a3b71cf50407bb6a9b3b2d1cb8cdf85</id>
<content type='text'>
To prepare for handling TCL return values consistently, all calls
to command_print/command_print_sameline should be ready to switch
to CMD as first parameter.

Pass CMD instead of CMD_CTX as parameter to nand_list_walker().

This change was part of http://openocd.zylin.com/1815 from Paul
Fertser and has been extracted and rebased to simplify the review.

Change-Id: Ia11887dfc6dc58d5458a88ba84780cd895b8c253
Signed-off-by: Paul Fertser &lt;fercerpav@gmail.com&gt;
Signed-off-by: Tomas Vanek &lt;vanekt@fbl.cz&gt;
Signed-off-by: Antonio Borneo &lt;borneo.antonio@gmail.com&gt;
Reviewed-on: http://openocd.zylin.com/5053
Tested-by: jenkins
</content>
</entry>
<entry>
<title>nand/fileio: change prototype of nand_fileio_start()</title>
<updated>2019-05-14T18:33:43Z</updated>
<author>
<name>Paul Fertser</name>
<email>fercerpav@gmail.com</email>
</author>
<published>2019-03-31T16:18:01Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/openocd/commit/?id=dae5a32c05f66e86202fef827454469853d2be8e'/>
<id>urn:sha1:dae5a32c05f66e86202fef827454469853d2be8e</id>
<content type='text'>
To prepare for handling TCL return values consistently, all calls
to command_print/command_print_sameline should be ready to switch
to CMD as first parameter.

Change prototype of nand_fileio_start() to pass CMD instead of
CMD_CTX.

This change was part of http://openocd.zylin.com/1815 from Paul
Fertser and has been extracted and rebased to simplify the review.

Change-Id: I7993f6aba997a2d2917949563651c8d0c213730d
Signed-off-by: Paul Fertser &lt;fercerpav@gmail.com&gt;
Signed-off-by: Tomas Vanek &lt;vanekt@fbl.cz&gt;
Signed-off-by: Antonio Borneo &lt;borneo.antonio@gmail.com&gt;
Reviewed-on: http://openocd.zylin.com/5052
Tested-by: jenkins
</content>
</entry>
<entry>
<title>Set empty usage field for commands that do not need parameters</title>
<updated>2019-04-07T07:19:34Z</updated>
<author>
<name>Antonio Borneo</name>
<email>borneo.antonio@gmail.com</email>
</author>
<published>2019-01-04T17:16:00Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/openocd/commit/?id=b61e454869c988e7fafc1c16982ccfec04415b51'/>
<id>urn:sha1:b61e454869c988e7fafc1c16982ccfec04415b51</id>
<content type='text'>
The missing field causes runtime debug message
	BUG: command '%s' does not have the '.usage' field filled out

While there, fix some minor typo in the help messages:
	s/deasert/deassert/
	s/Deasert/Deassert/

Change-Id: If3dd18265cda103ca0d05609f67f4ca58e7cbb27
Signed-off-by: Antonio Borneo &lt;borneo.antonio@gmail.com&gt;
Reviewed-on: http://openocd.zylin.com/5024
Tested-by: jenkins
Reviewed-by: Tomas Vanek &lt;vanekt@fbl.cz&gt;
</content>
</entry>
<entry>
<title>command_registration: add empty usage field to chained commands</title>
<updated>2019-04-07T07:17:36Z</updated>
<author>
<name>Antonio Borneo</name>
<email>borneo.antonio@gmail.com</email>
</author>
<published>2019-01-04T14:13:53Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/openocd/commit/?id=57962f4d1c2db12dffa03c7357f5d7e0d8f71fb8'/>
<id>urn:sha1:57962f4d1c2db12dffa03c7357f5d7e0d8f71fb8</id>
<content type='text'>
Chained command require a subcommand as first argument. The usage
field for chained commands is not really important because the
"help" command will list all the subcommands with their respective
usage.

Add a empty usage field on all chained command.
The command "jlink config" can be either followed by a subcommand
or used alone, so use a dedicated usage string.

Change-Id: I43c3f8a766f96a9bdab4e709e3c90713be41fcef
Signed-off-by: Antonio Borneo &lt;borneo.antonio@gmail.com&gt;
Reviewed-on: http://openocd.zylin.com/5017
Tested-by: jenkins
Reviewed-by: Tomas Vanek &lt;vanekt@fbl.cz&gt;
</content>
</entry>
<entry>
<title>command: initialize the command mode for every command</title>
<updated>2019-01-27T11:45:01Z</updated>
<author>
<name>Antonio Borneo</name>
<email>borneo.antonio@gmail.com</email>
</author>
<published>2019-01-19T23:52:07Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/openocd/commit/?id=fc348bc08648f492c6e5d63d47c0f7a1e6e0b3b2'/>
<id>urn:sha1:fc348bc08648f492c6e5d63d47c0f7a1e6e0b3b2</id>
<content type='text'>
All the commands in OpenOCD have been inspected and have the
command mode initialize, apart for two of them.
This is not critical, because the uninitialized value (0) is
equivalent to the enum COMMAND_EXEC, that is also the correct
value for the two mentioned commands.

To keep the code consistent, initialize the command mode to
COMMAND_EXEC.

Change-Id: Iaf043364cbd1005418d787ed045a3ec653612382
Signed-off-by: Antonio Borneo &lt;borneo.antonio@gmail.com&gt;
Reviewed-on: http://openocd.zylin.com/4861
Tested-by: jenkins
Reviewed-by: Tomas Vanek &lt;vanekt@fbl.cz&gt;
</content>
</entry>
<entry>
<title>Fix GCC7 warnings about switch-case fallthroughs</title>
<updated>2017-10-23T09:54:16Z</updated>
<author>
<name>Freddie Chopin</name>
<email>freddie.chopin@gmail.com</email>
</author>
<published>2017-06-29T21:48:19Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/openocd/commit/?id=9364b0dba451c3cee653f985b96b9f0535997346'/>
<id>urn:sha1:9364b0dba451c3cee653f985b96b9f0535997346</id>
<content type='text'>
GCC7 with -Wextra warns about switch-case blocks which fallthrough with
"this statement may fall through [-Werror=implicit-fallthrough=]". This
can be fixed by adding "special" comments: "/* fallthrough */".

See https://gcc.gnu.org/gcc-7/changes.html

Change-Id: Iba0be791dbdd86984489b2d9a0592bb59828da1e
Signed-off-by: Freddie Chopin &lt;freddie.chopin@gmail.com&gt;
Reviewed-on: http://openocd.zylin.com/4174
Tested-by: jenkins
</content>
</entry>
<entry>
<title>Convert to non-recursive make</title>
<updated>2016-12-08T16:23:10Z</updated>
<author>
<name>Andreas Fritiofson</name>
<email>andreas.fritiofson@gmail.com</email>
</author>
<published>2016-11-06T19:19:26Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/openocd/commit/?id=5be455a710c57bbbbd49c2d671b42098db7be5dc'/>
<id>urn:sha1:5be455a710c57bbbbd49c2d671b42098db7be5dc</id>
<content type='text'>
Change-Id: I11f8bc8553957e2ff083c09e72e16881e4d3bb6f
Signed-off-by: Andreas Fritiofson &lt;andreas.fritiofson@gmail.com&gt;
Reviewed-on: http://openocd.zylin.com/3865
Tested-by: jenkins
Reviewed-by: Paul Fertser &lt;fercerpav@gmail.com&gt;
</content>
</entry>
<entry>
<title>Tcl commands: Fix improper return status in flash commands and load_image.</title>
<updated>2016-11-04T21:21:15Z</updated>
<author>
<name>HarishKumar</name>
<email>harishpresent@gmail.com</email>
</author>
<published>2014-12-09T14:08:08Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/openocd/commit/?id=b10037a0b784cab94e21b37c976ad2b5174d52ae'/>
<id>urn:sha1:b10037a0b784cab94e21b37c976ad2b5174d52ae</id>
<content type='text'>
Nand write command :
nand_fileio_cleanup() always returns ERROR_OK. Due to this,
handle_nand_write_command() retuns ERROR_OK in the case
of nand failure. ERROR_FAIL should be returned.

Flash erase_sector command :
handle_flash_erase_command() always returns ERROR_OK even if
the erase functionality of actual driver implementation fails.
retval value should be returned.

Flash write_bank command :
handle_flash_write_bank_command() returns ERROR_OK even if
fileio_open() and fileio_read fails. ERROR_FAIL should be
returned.

Load_image command :
handle_load_image_command() retuns ERROR_OK even if image_open()
fails. ERROR_FAIL should be returned.
When the buffer is null, breaking the loop without setting
retval = ERROR_FAIL would cause load_image to return ERROR_OK.

Change-Id: Ice32f6036971ab5e8e4dd65edf54b394b001c80c
Signed-off-by: HarishKumar &lt;harishpresent@gmail.com&gt;
Reviewed-on: http://openocd.zylin.com/2431
Reviewed-by: Andreas Fritiofson &lt;andreas.fritiofson@gmail.com&gt;
Tested-by: jenkins
</content>
</entry>
</feed>
