From: lochegm1@cti.ecp.fr (Matthieu Lochegnies)
To: linux-hotplug@vger.kernel.org
Subject: fxload putting code at a wrong place
Date: Thu, 17 Jan 2002 08:45:11 +0000 [thread overview]
Message-ID: <marc-linux-hotplug-101125719217654@msgid-missing> (raw)
[-- Attachment #1: Type: text/plain, Size: 250 bytes --]
High !
I just bought an Ez USB development kit and tried to play with it
using fxload. The new merging algorithm seems to forget to initialize
data_addr.
Attached is a small patch that, I think, fixes it.
Regards,
--
Matthieu Lochegnies
[-- Attachment #2: ezusb.pch --]
[-- Type: text/plain, Size: 786 bytes --]
Index: ezusb.c
===================================================================
RCS file: /cvsroot/linux-hotplug/admin/fxload/ezusb.c,v
retrieving revision 1.3
diff -u -r1.3 ezusb.c
--- ezusb.c 2001/12/27 17:59:33 1.3
+++ ezusb.c 2002/01/17 08:33:28
@@ -130,6 +130,7 @@
FILE*image;
int rc;
unsigned short cpucs_addr;
+ unsigned char first_line = 1;
/* EZ-USB FX and FX2 devices differ, apart from the 8051 core */
if (fx2)
@@ -186,6 +187,13 @@
buf[7] = 0;
off = strtoul(buf+3, 0, 16);
buf[7] = tmp;
+
+ /* Initialize data_addr */
+ if( first_line )
+ {
+ data_addr = off;
+ first_line = 0;
+ }
/* Read the record type */
tmp = buf[9];
next reply other threads:[~2002-01-17 8:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-01-17 8:45 Matthieu Lochegnies [this message]
2002-01-17 14:48 ` fxload putting code at a wrong place David Brownell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=marc-linux-hotplug-101125719217654@msgid-missing \
--to=lochegm1@cti.ecp.fr \
--cc=linux-hotplug@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.