Added a Receive_Abort to the Marvell serial driver

From: Carlos Sanchez
Date: Wed Oct 12 2005 - 17:11:02 EST



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 <mgreer@xxxxxxxxxx>
Signed-off-by: Carlos Sanchez <csanchez@xxxxxxxxxx>
--
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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/