This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
AT91 serial driver fix
- From: Nick Garnett <nickg at ecoscentric dot com>
- To: ecos-patches at sources dot redhat dot com
- Date: 16 Oct 2003 19:03:40 +0100
- Subject: AT91 serial driver fix
Index: ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/devs/serial/arm/at91/current/ChangeLog,v
retrieving revision 1.7
diff -u -5 -r1.7 ChangeLog
--- ChangeLog 24 Feb 2003 14:12:18 -0000 1.7
+++ ChangeLog 16 Oct 2003 18:02:40 -0000
@@ -1,5 +1,10 @@
+2003-10-16 Nick Garnett <nickg@balti.calivar.com>
+
+ * src/at91_serial.c (at91_serial_config_port): Added update of
+ channel configuration, which was missing.
+
2003-02-24 Jonathan Larmour <jifl@eCosCentric.com>
* cdl/ser_arm_at91.cdl: Remove irrelevant doc link.
2001-09-20 Jesper Skov <jskov@redhat.com>
Index: src/at91_serial.c
===================================================================
RCS file: /cvs/ecos/ecos/packages/devs/serial/arm/at91/current/src/at91_serial.c,v
retrieving revision 1.5
diff -u -5 -r1.5 at91_serial.c
--- src/at91_serial.c 23 May 2002 23:01:09 -0000 1.5
+++ src/at91_serial.c 16 Oct 2003 18:02:41 -0000
@@ -207,10 +207,14 @@
HAL_WRITE_UINT32(base+AT91_US_IER, AT91_US_IER_RxRDY);
// Enable RX and TX
HAL_WRITE_UINT32(base+AT91_US_CR, AT91_US_CR_RxENAB | AT91_US_CR_TxENAB);
+ if (new_config != &chan->config) {
+ chan->config = *new_config;
+ }
+
return true;
}
// Function to initialize the device. Called at bootstrap time.
static bool
--
Nick Garnett eCos Kernel Architect
http://www.ecoscentric.com The eCos and RedBoot experts