Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161988AbbKEHWn (ORCPT ); Thu, 5 Nov 2015 02:22:43 -0500 Received: from mail-bn1bon0093.outbound.protection.outlook.com ([157.56.111.93]:15040 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1032393AbbKEHVh (ORCPT ); Thu, 5 Nov 2015 02:21:37 -0500 Authentication-Results: spf=pass (sender IP is 149.199.60.83) smtp.mailfrom=xilinx.com; linuxfoundation.org; dkim=none (message not signed) header.d=none;linuxfoundation.org; dmarc=bestguesspass action=none header.from=xilinx.com; From: Soren Brinkmann To: Greg Kroah-Hartman , Jiri Slaby CC: Michal Simek , , , , Soren Brinkmann Subject: [PATCH v2 04/10] tty: xuartps: Clear interrupt status register in shutdown Date: Wed, 4 Nov 2015 23:21:13 -0800 Message-ID: <1446708079-1105-5-git-send-email-soren.brinkmann@xilinx.com> X-Mailer: git-send-email 2.6.2.3.ga463a5b In-Reply-To: <1446708079-1105-1-git-send-email-soren.brinkmann@xilinx.com> References: <1446708079-1105-1-git-send-email-soren.brinkmann@xilinx.com> X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.0.0.1202-21920.005 X-TM-AS-User-Approved-Sender: Yes;Yes X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1;BL2FFO11FD047;1:cpG+sxtIoQX6yr1+u6naZgKXPOf7Wy5KziGyTiNWgR6IhgU+JZj6BzXKaABNEEbH2vuffpFLk9EQnEmphmQb3Aqg9v6BJvLHeU3IUSO+pe/Oh1pZCQBGJ4SOWUk8Go63phxmzdH09JgL8NfSqdkD14ERKALSyLrF1wCBsdTiDtLyQpAK31Ug1ejktIX9urHj3istXFahI5Tew8fVc2UuL4FrEvqtzMP5In8GnmKDgwYK5Fr88M5THDro++COkqQI9ZA5TuwxOi8CM477IMPs6RSjgxjhO+7Irzpz5JQYPK5/Ay9D3Wbqq8oilz73snT+VWejN/6XJCI5s16axTHnFdJJ7pPVlqA0MbOmvB24TOU= X-Forefront-Antispam-Report: CIP:149.199.60.83;CTRY:US;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(2980300002)(438002)(189002)(199003)(81156007)(5001960100002)(4001430100002)(5003940100001)(57986006)(19580395003)(92566002)(76506005)(107886002)(189998001)(19580405001)(47776003)(50466002)(2950100001)(48376002)(63266004)(16796002)(77096005)(50986999)(33646002)(229853001)(5001920100001)(6806005)(5007970100001)(76176999)(50226001)(36756003)(5001770100001)(87936001)(106466001)(5008740100001)(11100500001)(36386004)(86362001)(107986001);DIR:OUT;SFP:1101;SCL:1;SRVR:BL2FFO11HUB042;H:xsj-pvapsmtpgw01;FPR:;SPF:Pass;PTR:unknown-60-83.xilinx.com;MX:1;A:1;LANG:en; MIME-Version: 1.0 Content-Type: text/plain X-Microsoft-Exchange-Diagnostics: 1;BL2FFO11HUB042;2:dOxGqdIFv3Mn35k9LlFA9SIkbK4hw2nNV5Bz0ZRbp535c6EIYJHcQ4LEwuIOLlhDlFPivu7qQdMvvvsQ06xLB2FF+LBZVedUj4XYYfs3V6o9MdBg2aNbLF4N05ZH8jHt3EwTKEezG6nD58IR2w4rp0yyQWMZnODgwngdgvN+9Fg=;3:anq7OpjUQwTfCsfzax/D52E9MDqmgFU+mXeMUYIl3oS9RzEHWSOalAA/7msfBdI6hzaomrD9zL4vpMXeZ0cT2lORbTWdFX2zieCWlQ4AJ7TgDZmfBDg1XM541URO7TmASUxLkdbSvTdq3+ThOl6lFAZJIZinhwQIRH59potwriQCflWz6WhnfPDxivhjLnuoze8rcWX/isZ1WapoldAUgCi0kooyk5c7wQ6seDWZ/HKYWVo6/pHaqsTOs5zeCEYUBzvsWBreelA8iJ63lZcq6Q==;25:yKt8fgjoCSM0drzak1ZhxngRaJyfLBmUPdnvf9K9eYCf7Imot+fKH6RZNRitz5j+unUV9p0cVWVgWvuP4EjUDKbXTVeTWAYVRVyB02sWmaQOJ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B3eAC4zzziKfoOe11H6NjBOnIpY+1NZ6GPErARu8pJgMt7z54AaPHZWWT7VF8iaf//2P3kMh7IcWdWgdTL9UIaa7/itvWDD X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(192813158149592); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(2401047)(8121501046)(520078)(5005006)(3002001)(10201501046);SRVR:BL2FFO11HUB042;BCL:0;PCL:0;RULEID:;SRVR:BL2FFO11HUB042; X-Forefront-PRVS: 0751474A44 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BL2FFO11HUB042;23:CgJlz4r4+uPmFnK66CIleWni+JhEf4tGOPTEqZKo?= =?us-ascii?Q?cPWpQ7kRGo7ZeP2/lvJf8JMehpdW6PpFCos+hGP/nt8kN7KUzRGcMREPR8xt?= =?us-ascii?Q?9CnCb4tuEzdGzZj2UiQf1qeJOD6RXbwd0lutGznEzlgTc1yZ7HQ29tM9MUAs?= =?us-ascii?Q?3RPgei6iZz/iLuCLmUXNHp/etF1ghFvgPr7Xw/nSA6dtRsXcCkn4Gq5TjuX8?= =?us-ascii?Q?PukCek5p+kuz4zuPQpWAxQNjTWj65aVa3TB36GJoeYzoJ3ILwyL023YefrDN?= =?us-ascii?Q?Tjx6bV3vaCnF4uED3+RspnLCxi8iQswSOy79ndxPMQ/mGLoJ7BQevSkwHxet?= =?us-ascii?Q?ELBuEhIhAvRgtCdjs0oxfajd02wGrmL42gK6hYS3haHML9Uec4crbfYXfM2x?= =?us-ascii?Q?kRruUxmNxBDsVWv7t6pm/ZlTohJufMIOY7jM/kH2d0ooYghm0ytlLVd5tu/e?= =?us-ascii?Q?aVWxiP+NC46J37st/NrNKrld+eODWgbg0Zd1KPBwdR42j+lPjD1HbiOPU4M7?= =?us-ascii?Q?wJAwhbOupvDyJ7axCEu3HXdjkW8uXeqOYx6Bb0h2dh8Grnao16kPm97GGEaq?= =?us-ascii?Q?225orktznSFsPZWHIIfmjlbLR0B0i7AoE9BmOCuropARp9u3lT+lnj4cbAcm?= =?us-ascii?Q?xeQhajjlbKV5EWX+w3v5b/Gi4SuD9waD7za6AeF/ao3XH6zwv7HiJhb7UrtE?= =?us-ascii?Q?ASp8JkgeVN2OuPSqiE5i6inTz4uqe7pwImMrq+2XSangGlhkXbf2ULMTkHz8?= =?us-ascii?Q?5dy9TNUWge7FmRQxVaY+euq60f5SBqNIexAgedkOmxXAub4y3nF2rgBW1+B9?= =?us-ascii?Q?yR6sQLaPB3qIngVZvXsT5Q4hwxizGvpb/rofN5dPQfKcCmCYyVnkri1vZ1Zu?= =?us-ascii?Q?BO5X5vFyKxy7IhNHmphX1DhFFjfTbO8yAfTikZ/zwj1RcQHSeJ+5GXKcVbIS?= =?us-ascii?Q?sGBTj5mMj1uPlOG2hSfEpkWJ+43c8dLeLNBHUWvvKE1vLIpoWJJsFrswz5Hv?= =?us-ascii?Q?K68I+7W/5DQ30X7lO9N7lILEEQRDJWSh3XYI/G6CtYGtB5hF0NTG8nHQEjcR?= =?us-ascii?Q?KI2jnMOxlclIuTeWKUk7upCbPjAQoFeyjqaFmQ4BAKoXwKcJRDGUHRwyCRQZ?= =?us-ascii?Q?UGl90Bev/mE=3D?= X-Microsoft-Exchange-Diagnostics: 1;BL2FFO11HUB042;5:euyg34jmL6sC0EjGdUJyASK1w+RO+/UGX5bO7WFOv+tXg5mI1Xfwtw4P8Ris+6kZuDrB66ScAznSpv63NBDOvEfyPmyfJcScuhgAQZ4/mhsE15qSDNBSZJtcpA4yytItPH42Rit1SS1MkZulscL0uQ==;24:PYbjMr87CcmaVotDLT6+2U6yVX5J708PnckYNwoD/rJPN4Pl62QuXlbLBsjw+pq2RFd1YjhhPkBiSVzmZXk8wMpCr7LlfCteE7gH4c79Csg= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Nov 2015 07:21:35.1999 (UTC) X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c;Ip=[149.199.60.83];Helo=[xsj-pvapsmtpgw01] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL2FFO11HUB042 X-Microsoft-Exchange-Diagnostics: 1;BL2FFO11HUB027;2:9FPP2OlbtWIpsvlt4OMj0MqtSi9x03gkoODBFnaCdVPmT0AOKyMUWpnTA4bGEULvGkoVijZi5yqT1HvDzWTudY/o3dgp0WHubQd0gyr9bn0Q6B0wsGfZf0LY/BFbWerlEoRtAiQxhDoq5qkhcRaukvL3l9Hr/hG884gy07Co6Ro=;23:zEvdH48DR32V1rCQXGjyL8FMUhD4PFn8LqJRfUF/Tm5b+JgOTSG1U2PkdL5kwl2diP7m0+dU8cJMMZR0dqxnV3Tc4MU0qztvq4wkFXjet2YxoTC5v348qXcyAbMcML3D7rVlIbDjU25etkINrHAoB5lnZ6EFcVJMNJk8A4jCbb8bUODQeWevh+UPMO54w5H8 X-OriginatorOrg: xilinx.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1038 Lines: 27 When shutting down the UART, clear the interrupt status register. Signed-off-by: Soren Brinkmann --- drivers/tty/serial/xilinx_uartps.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/tty/serial/xilinx_uartps.c b/drivers/tty/serial/xilinx_uartps.c index df6778d17949..b7fc30639292 100644 --- a/drivers/tty/serial/xilinx_uartps.c +++ b/drivers/tty/serial/xilinx_uartps.c @@ -825,6 +825,7 @@ static void cdns_uart_shutdown(struct uart_port *port) /* Disable interrupts */ status = readl(port->membase + CDNS_UART_IMR_OFFSET); writel(status, port->membase + CDNS_UART_IDR_OFFSET); + writel(0xffffffff, port->membase + CDNS_UART_ISR_OFFSET); /* Disable the TX and RX */ writel(CDNS_UART_CR_TX_DIS | CDNS_UART_CR_RX_DIS, -- 2.6.2.3.ga463a5b -- 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/