Added a Receive_Abort to the Marvell serial driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Acked-by: Mark A. Greer <[email protected]>
Signed-off-by: Carlos Sanchez <[email protected]>
--
diff -Naur --exclude=.pc --exclude=patches Pristinelinux-2.6.10/drivers/serial/mpsc.c WorkingF101_USB/drivers/serial/mpsc.c
--- Pristinelinux-2.6.10/drivers/serial/mpsc.c	2005-10-07 09:58:56.000000000 -0700
+++ WorkingF101_USB/drivers/serial/mpsc.c	2005-10-12 07:56:13.279523424 -0700
@@ -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);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux