Skip to contentSkip to conversation

Added a Receive_Abort to the Marvell serial driver

PATCH Carlos Sanchez 1 participant 1 message Oct 12, 2005

lore
Share & tools
lore
#0 lore raw

Added a Receive_Abort to the Marvell serial driver

Fix occasional input overrun errors on Marvell serial driver
- If the Marvell serial driver is repeatedly started and then stopped it will occasionally report an input overrun error when started.
- Added a Receive_Abort to the Marvell serial driver to abort previously received receive errors when re-starting the receive

--

drivers/serial/mpsc.c +2 -0
diff -Naur --exclude=.pc --exclude=patches Pristinelinux-2.6.10/drivers/serial/mpsc.c WorkingF101_USB/drivers/serial/mpsc.c
@@ -1100,6 +1105,8 @@
 {
 	pr_debug("mpsc_start_rx[%d]: Starting...\n", pi->port.line);
 
+	/* Issue a Receive Abort to clear any receive errors */
+	writel(MPSC_CHR_2_RA, pi->mpsc_base + MPSC_CHR_2);
 	if (pi->rcv_data) {
 		mpsc_enter_hunt(pi);
 		mpsc_sdma_cmd(pi, SDMA_SDCM_ERD);