Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933162AbaFLKcr (ORCPT ); Thu, 12 Jun 2014 06:32:47 -0400 Received: from us01smtprelay-2.synopsys.com ([198.182.44.111]:44019 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933102AbaFLKcm (ORCPT ); Thu, 12 Jun 2014 06:32:42 -0400 From: Vineet Gupta To: Rob Herring , Pawel Moll , "Mark Rutland" , Ian Campbell , Kumar Gala , Greg Kroah-Hartman , Jiri Slaby , Paul Bolle CC: , , , , Vineet Gupta Subject: [PATCH 3/9] serial/arc: Remove the workaround for legacy ISS Date: Thu, 12 Jun 2014 16:01:33 +0530 Message-ID: <1402569099-9900-4-git-send-email-vgupta@synopsys.com> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1402569099-9900-1-git-send-email-vgupta@synopsys.com> References: <1402569099-9900-1-git-send-email-vgupta@synopsys.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.12.196.93] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Vineet Gupta --- drivers/tty/serial/arc_uart.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/drivers/tty/serial/arc_uart.c b/drivers/tty/serial/arc_uart.c index 4d971281e3d9..a6da10f84293 100644 --- a/drivers/tty/serial/arc_uart.c +++ b/drivers/tty/serial/arc_uart.c @@ -102,7 +102,6 @@ struct arc_uart_port { struct uart_port port; unsigned long baud; - int is_emulated; /* H/w vs. Instruction Set Simulator */ }; #define to_arc_port(uport) container_of(uport, struct arc_uart_port, port) @@ -387,17 +386,6 @@ arc_serial_set_termios(struct uart_port *port, struct ktermios *new, uartl = hw_val & 0xFF; uarth = (hw_val >> 8) & 0xFF; - /* - * UART ISS(Instruction Set simulator) emulation has a subtle bug: - * A existing value of Baudh = 0 is used as a indication to startup - * it's internal state machine. - * Thus if baudh is set to 0, 2 times, it chokes. - * This happens with BAUD=115200 and the formaula above - * Until that is fixed, when running on ISS, we will set baudh to !0 - */ - if (uart->is_emulated) - uarth = 1; - spin_lock_irqsave(&port->lock, flags); UART_ALL_IRQ_DISABLE(port); @@ -520,8 +508,6 @@ arc_uart_init_one(struct platform_device *pdev, int dev_id) if (!plat_data) return -ENODEV; - uart->is_emulated = !!plat_data[0]; /* workaround ISS bug */ - if (is_early_platform_device(pdev)) { port->uartclk = plat_data[1]; uart->baud = plat_data[2]; -- 1.8.3.2 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/