<feed xmlns='http://www.w3.org/2005/Atom'>
<title>bcm63xx/u-boot/common/xyzModem.c, branch master</title>
<subtitle>Broadcom-s U-Boot</subtitle>
<id>https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/atom?h=master</id>
<link rel='self' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/'/>
<updated>2019-01-15T20:28:51Z</updated>
<entry>
<title>xyz-modem: Fix timeout loop waiting with WATCHDOG</title>
<updated>2019-01-15T20:28:51Z</updated>
<author>
<name>Lokesh Vutla</name>
</author>
<published>2019-01-08T13:58:35Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=a4773c5559867f8fc6b0c1a7eb8ab36cfd53756f'/>
<id>urn:sha1:a4773c5559867f8fc6b0c1a7eb8ab36cfd53756f</id>
<content type='text'>
Commit 2c77c0d6524eb ("xyz-modem: Change getc timeout loop waiting")
fixes the loop delay when using a hw watchdog, assuming that watchdog
kicking is taken care of by getc(). But the xyzmodem driver tries to
do a getc only after confirming that a character is available like below:
	while (!tstc()) {
		till timeout;
	}
	if (tstc())
		*c = getc();

and getc() does a watchdog reset only if it fails to see a character.
In this case, getc() always sees a character and never does a
watchdog reset. So to make sure that watchdog doesn't get reset
while loading the file, do a watchdog reset just before starting the
image loading.

Signed-off-by: Lokesh Vutla &lt;lokeshvutla@ti.com&gt;
Signed-off-by: Vignesh R &lt;vigneshr@ti.com&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>lib: merge CRC16-CCITT into u-boot/crc.h</title>
<updated>2018-12-09T01:18:32Z</updated>
<author>
<name>Philipp Tomsich</name>
</author>
<published>2018-11-25T18:22:18Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=a740ee913ec8ba04cc53100440f94841648324e2'/>
<id>urn:sha1:a740ee913ec8ba04cc53100440f94841648324e2</id>
<content type='text'>
This merges the CRC16-CCITT headers into u-boot/crc.h to prepare for
rolling CRC16 into the hash infrastructure.  Given that CRC8, CRC32
and CRC32-C already have their prototypes in a single header file, it
seems a good idea to also include CRC16-CCITT in the same.

Signed-off-by: Philipp Tomsich &lt;philipp.tomsich@theobroma-systems.com&gt;
</content>
</entry>
<entry>
<title>xyz-modem: va_start() must be matched by va_end()</title>
<updated>2018-05-11T00:38:34Z</updated>
<author>
<name>Heinrich Schuchardt</name>
</author>
<published>2018-05-07T19:59:34Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=23c648982b88725f9e2bab4294a7ca8ea368e3bc'/>
<id>urn:sha1:23c648982b88725f9e2bab4294a7ca8ea368e3bc</id>
<content type='text'>
Every va_start() call must be matched by a va_end() call.

scripts/checkpatch.pl required reformatting the complete function
zm_dprintf().

Signed-off-by: Heinrich Schuchardt &lt;xypron.glpk@gmx.de&gt;
</content>
</entry>
<entry>
<title>Fix Ymodem build when DEBUG and CONFIG_USE_TINY_PRINTF are selected</title>
<updated>2018-05-11T00:38:33Z</updated>
<author>
<name>Alex Kiernan</name>
</author>
<published>2018-05-03T11:45:08Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=8140816eea9faef804a333e8416249fc57d0bedc'/>
<id>urn:sha1:8140816eea9faef804a333e8416249fc57d0bedc</id>
<content type='text'>
Attempting to build with both DEBUG and CONFIG_USE_TINY_PRINTF along
with CONFIG_SPL_YMODEM_SUPPORT fails at link time:

  common/built-in.o: In function `zm_dprintf':
  common/xyzModem.c:190: undefined reference to `vsprintf'

Disable Ymodem debug if we don't have full vsprintf support.

Signed-off-by: Alex Kiernan &lt;alex.kiernan@gmail.com&gt;
Reviewed-by: Joe Hershberger &lt;joe.hershberger@ni.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>
</author>
<published>2018-05-06T21:58:06Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/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>
<entry>
<title>common/xyzModem.c: Do not use hard-coded address for debug buffer</title>
<updated>2017-04-08T13:26:55Z</updated>
<author>
<name>Alexandru Gagniuc</name>
</author>
<published>2017-04-04T17:42:31Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=b09ece0836e0267b86f37defec267aa3806cb03a'/>
<id>urn:sha1:b09ece0836e0267b86f37defec267aa3806cb03a</id>
<content type='text'>
Under the plethora of #ifdefs, the xyzModem code hid this pearl:
static char *zm_out = (char *) 0x00380000;
This was only enabled when DEBUG is defined, so it's probably why it
went unnoticed for so long. No idea what platform had memory at that
exact location, but the this approach is extremely hacky.
Use a static buffer instead.

Signed-off-by: Alexandru Gagniuc &lt;alex.g@adaptrum.com&gt;
</content>
</entry>
<entry>
<title>common/xyzModem.c: unifdef (Remove useless #ifdefs)</title>
<updated>2017-04-08T13:26:54Z</updated>
<author>
<name>Alexandru Gagniuc</name>
</author>
<published>2017-04-04T17:42:30Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=306b236bc1e426ff58ea8ddba1c6ad10327de6ff'/>
<id>urn:sha1:306b236bc1e426ff58ea8ddba1c6ad10327de6ff</id>
<content type='text'>
Signed-off-by: Alexandru Gagniuc &lt;alex.g@adaptrum.com&gt;
</content>
</entry>
<entry>
<title>xyz-modem: Change getc timeout loop waiting</title>
<updated>2016-11-29T00:49:48Z</updated>
<author>
<name>tomas.melin@vaisala.com</name>
</author>
<published>2016-11-21T08:18:51Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=2c77c0d6524ebc2e34ea7a4485120225d2b936e6'/>
<id>urn:sha1:2c77c0d6524ebc2e34ea7a4485120225d2b936e6</id>
<content type='text'>
This fixes the loop delay when using a hw watchdog.

In case a watchdog is used that accesses CPU registers,
the defined delay of 20us in a tight loop will cause a
huge delay in the actual timeout seen. This is caused
by the fact that udelay will inheritantly call WATCHDOG_RESET.
Together with the omap wdt implementation, the seen timeout increases up to
around 30s. This makes the loop very slow and causes long
delays when using the modem.

Instead, implement the 2 sec loop by using the timer interface to know
when to break out of the timeout loop. Watchdog kicking is taken care of
by getc().

Signed-off-by: Tomas Melin &lt;tomas.melin@vaisala.com&gt;
</content>
</entry>
<entry>
<title>lib/crc16.c: Rename cyg_crc16() to crc16_ccitt() and add crc start value</title>
<updated>2016-03-14T23:18:42Z</updated>
<author>
<name>Stefan Roese</name>
</author>
<published>2016-03-03T08:34:12Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=ecb57f69b236a0c11a08cbe74d22be76fc72091a'/>
<id>urn:sha1:ecb57f69b236a0c11a08cbe74d22be76fc72091a</id>
<content type='text'>
The original name of this function is unclear. This patch renames this
CRC16 function to crc16_ccitt() matching its name with its
implementation.

To make the usage of this function more flexible, lets add the CRC start
value as parameter to this function. This way it can be used by other
functions requiring different start values than 0 as well.

Signed-off-by: Stefan Roese &lt;sr@denx.de&gt;
Reviewed-by: Tom Rini &lt;trini@konsulko.com&gt;
</content>
</entry>
<entry>
<title>common/xyzModem.c: move empty statements to newline</title>
<updated>2014-06-11T20:27:06Z</updated>
<author>
<name>Jeroen Hofstee</name>
</author>
<published>2014-06-10T23:04:42Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=e153b13c8e300236e6d505bea629cc81fd0988cb'/>
<id>urn:sha1:e153b13c8e300236e6d505bea629cc81fd0988cb</id>
<content type='text'>
To prevent a warning for clang the loop without a body
is made more clear by moving it to a line of its own.
This prevents a clang warning.

cc: sbabic@denx.de
Signed-off-by: Jeroen Hofstee &lt;jeroen@myspectrum.nl&gt;
</content>
</entry>
</feed>
