This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
Typo fix for nec_upd985xx USB device
- From: David Smith <dsmith at redhat dot com>
- To: ecos-patches at sources dot redhat dot com
- Date: 18 Oct 2002 12:23:50 -0500
- Subject: Typo fix for nec_upd985xx USB device
Here's a typo fix. If this isn't a typo, a comment needs to be added
that explains why the "*" (vs. the "&") is needed.
Note that Andrew Lunn (andrew.lunn@ascom.ch) originally found this.
Index: devs/usb/nec_upd985xx/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/devs/usb/nec_upd985xx/current/ChangeLog,v
retrieving revision 1.2
diff -u -p -r1.2 ChangeLog
--- devs/usb/nec_upd985xx/current/ChangeLog 23 May 2002 23:01:26 -0000 1.2
+++ devs/usb/nec_upd985xx/current/ChangeLog 18 Oct 2002 17:19:04 -0000
@@ -1,3 +1,7 @@
+2002-10-18 David Smith <dsmith@redhat.com>
+
+ * src/usbs_upd985xx.c (ep0_rx_dsr): Fixed a typo.
+
2001-09-20 Bart Veer <bartv@redhat.com>
* src/usbs_upd985xx.c (ep0_init):
Index: devs/usb/nec_upd985xx/current/src/usbs_upd985xx.c
===================================================================
RCS file: /cvs/ecos/ecos/packages/devs/usb/nec_upd985xx/current/src/usbs_upd985xx.c,v
retrieving revision 1.2
diff -u -p -r1.2 usbs_upd985xx.c
--- devs/usb/nec_upd985xx/current/src/usbs_upd985xx.c 23 May 2002 23:01:26 -0000 1.2
+++ devs/usb/nec_upd985xx/current/src/usbs_upd985xx.c 18 Oct 2002 17:19:05 -0000
@@ -1243,7 +1243,7 @@ ep0_rx_dsr(void)
// If we have received a control packet then any reset signals really
// will have come from the host and must be processed normally.
// Make sure that reset interrupts are no longer masked off.
- if (0 == (*USBS_IMR2 * IBUS_SWAP32(USBS_GSR2_URST))) {
+ if (0 == (*USBS_IMR2 & IBUS_SWAP32(USBS_GSR2_URST))) {
*USBS_IMR2 |= IBUS_SWAP32(USBS_GSR2_URST); FLUSH_IBUS();
usbs_upd985xx_gsr2_mask |= USBS_GSR2_URST;
}
--
David Smith
dsmith@redhat.com
Red Hat, Inc.
http://www.redhat.com
256.217.0141 (direct)
256.837.0057 (fax)