Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030253AbbKDAVh (ORCPT ); Tue, 3 Nov 2015 19:21:37 -0500 Received: from mail-bn1on0088.outbound.protection.outlook.com ([157.56.110.88]:7596 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1030211AbbKDAVO (ORCPT ); Tue, 3 Nov 2015 19:21:14 -0500 Authentication-Results: spf=pass (sender IP is 149.199.60.100) 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 4/9] tty: xuartps: Clear interrupt status register in shutdown Date: Tue, 3 Nov 2015 16:20:45 -0800 Message-ID: <1446596450-20918-5-git-send-email-soren.brinkmann@xilinx.com> X-Mailer: git-send-email 2.6.2.3.ga463a5b In-Reply-To: <1446596450-20918-1-git-send-email-soren.brinkmann@xilinx.com> References: <1446596450-20918-1-git-send-email-soren.brinkmann@xilinx.com> X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.0.0.1202-21918.005 X-TM-AS-User-Approved-Sender: Yes;Yes X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1;BN1AFFO11FD020;1:MQ2KlOXbxZOq6LGTnOZ8h0zKXkPT5F+ghTEVHuPtQ+jcg02Xj0P0v47x0iulCb6v3Ul/qPTedWFEusqqLZPZjvrcC+ODOH+qjolnWHO1mduxPjMJj2kAGolV3a3wA3tA2XnMT1SDY/SdtobQMg7V4OsV+0JEiadFRaDZ+i+ZyCq57915Em9iXfRzxOTscPVpQ20Xpz4HFZ0mDUBOTv209p8Bjom1txTZ4MKbkjj97kNWh2LOcrajjrj508dnYMwi+o1BjNIO8uW5/ZiY0Twpw8Sdaumf810rs+2AknpRO1GvhiiEl7NJLiie7kMh9NS9pl6GCCBusGxZGP04FcIaObKio95Uyos6Vm+YviLqeHo= X-Forefront-Antispam-Report: CIP:149.199.60.100;CTRY:US;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(2980300002)(438002)(199003)(189002)(107886002)(48376002)(81156007)(189998001)(36756003)(5008740100001)(77096005)(5003940100001)(50466002)(19580395003)(4001430100002)(5001960100002)(33646002)(87936001)(2950100001)(50226001)(6806005)(11100500001)(229853001)(5007970100001)(5001770100001)(86362001)(36386004)(106466001)(92566002)(47776003)(16796002)(57986006)(63266004)(19580405001)(76506005)(50986999)(76176999)(107986001)(5001870100001);DIR:OUT;SFP:1101;SCL:1;SRVR:BN1AFFO11HUB039;H:xsj-pvapsmtpgw02;FPR:;SPF:Pass;PTR:unknown-60-100.xilinx.com,xapps1.xilinx.com;A:1;MX:1;LANG:en; MIME-Version: 1.0 Content-Type: text/plain X-Microsoft-Exchange-Diagnostics: 1;BN1AFFO11HUB039;2:92Nn+y3XENS4mFwbJvfc1bJwvx26tyMvMl4fXullvsBHFFE5jUdEIE5gyaXGPHONP6cO4u82KUI4piBz64bxiDOowIGt9DxXeaYMmmhpS7dieHGtBMuraz3WanNCFSF49YtQC64gViqWDwE6Qm93Z9ibsLG2ipBqAKvDYmgQ5aQ=;3:B6MRX0Gxz720mLYW5hrInRmhIiL/mM7goxlT4wFjJDeFZBFsgxb9PLsRr17+tQzmk2z0Id02r3odOMpFUPJrLMFS1ULwsEVx9tZcS83NtAFrzJtx0Nj3arn6+FkX5dHb2GAlaW49KZNDGzzXD/dTYFsomDiSDT2CBWHsZJaks1vumaU4F8SWqdwOAn9OUykpPR8kuJHjFtwIicjrEdWp1EtxdMnwbRo4Sa2nIckRljLMjkyi/WUGhlWHm5plk7MdAVxSbB7jXsNavxauIt2n4A==;25:ancC6aEfYNjSDcacInjImozX54E1nQfn7vazZGSehnTnT2bS8pd+RhX88pjjdJvtJ1NNfHJLBK1DAvCCgCucWv0oMrhafyPUXkje8QzQ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7EsrFDPtPCkxPJMsHoLGt+g3GCCZWGmDZUvNjmzcWFpWRDckL0ZkUAHn+xrLzIQ98V8F4cILkyQO1+0ia2n4srmnDtQRQduooL7oSThu 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)(5005006)(520078)(10201501046)(3002001);SRVR:BN1AFFO11HUB039;BCL:0;PCL:0;RULEID:;SRVR:BN1AFFO11HUB039; X-Forefront-PRVS: 0750463DC9 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BN1AFFO11HUB039;23:1RrPbk1tBomUm0syFJKeim8JJXHw6vIEcRxC+oJ?= =?us-ascii?Q?Ywx953iAgKV9VW0NM6nmPVykh33pyJCBPcLzGyAuWpRzM0k1LfLCy3ErnYjS?= =?us-ascii?Q?8rczesphtV7XaqHag0sCXfzmb80VOiohp0DQ2o3gjFXTDq/VHry9LEeonnHZ?= =?us-ascii?Q?XEr9aEnWd7Ac9fTjvR+mgJ1ee95bBvefBMgEbgCnC/0t1ofc/IOjQayWs2zU?= =?us-ascii?Q?vYRkoO4C2FOlqRu+VTcKGDsu8ZpC4wCOPC2AFgHpqDal0jFNrv7cblolaUuq?= =?us-ascii?Q?7QLXx+VtAzj0TyFqizi9+3YSmxkKV8ed5A8rLZ6MfNEYnJPLPXrDryAGiaTD?= =?us-ascii?Q?5dEMH9uyFHR+HZfEgmD/9nLuaP9ntqQ9HFYuGUVJPOQFOXKk7QOK7twL5El0?= =?us-ascii?Q?VCksKwreHdVFQMEQ5+xlnqZlNCqGRaJjfoabhhZZPglf5Dl6U4a4tAMau+VT?= =?us-ascii?Q?lQHlaHyfJg0TQDo/Qu4d+XSZwNYWUKZEpQyuLXOylyJsZf1iam4kHp/8i1VO?= =?us-ascii?Q?LxxDnbkvPlsvSdvNu7frBh1LkVsRFEnMFSaljF/uOAZUBDwcmRWJPKcnFBT+?= =?us-ascii?Q?0z4KLU6i5YqspCLbOp3ZY0WWvzNWlFAqYgf6JXool41P17ZzGJ+i+RusGreH?= =?us-ascii?Q?2fote/pHM9g9j797xGcaSGudMqpKlO+Yv0ychsXebNPr9sRvmqBt0hXa9PNk?= =?us-ascii?Q?nPvhezc+sYi4qUW8LilZYNLz31mnFRU15hyspVqVSinfDiRM3Cbw/WNgq+Fo?= =?us-ascii?Q?wxfd/Q7St9AKHdVQuMPOJqSoJ62fdl1AxMKBBtsolJJIz2Fs2XGncZ/bQwsm?= =?us-ascii?Q?h1HQDRg8biSFsiBT7GW1aS3EWWcukoYZAAZiSVGpbe+OTUS+afD0Wk8fnRCP?= =?us-ascii?Q?O0ikXeXuIX/3tR9EUtxyuzV7tgpZCkWfPqnEuq+BCohkaedFS/z6lwvI0mmZ?= =?us-ascii?Q?m9J1oTKS7AvgEB1hoXA1uGwNsrCQHBNyt2RRkEHxhDUK9obmG1TDhCjWo81P?= =?us-ascii?Q?m+mgP3oCR+21/gW/J664Vi4CXT4bRIAy1Vs60u/1kjnKA7kecgkQKuLiyRZx?= =?us-ascii?Q?a0xhCyfSwZow5e7chB1W7pNi+E3Zo2tmp5hyUjbY9yh94aTaIEDIiWoOFslO?= =?us-ascii?Q?JLLT/gN2AHBs=3D?= X-Microsoft-Exchange-Diagnostics: 1;BN1AFFO11HUB039;5:fgtw0zatvkmmriJ7v2QCGxCO5ZnscvFdnu6lZ+Z1eG4ozfJ358+WnzxJ2qcsgyufcxqnvrYK584YJBpVnTdSzTz23kn4LevknLs25NhcCjhEu4+Mb+pDfOMBxcKwWp5nHJNC2wbyellf4bdme5hQkA==;24:+SCYxkmW9BB6ZLHCKt2XaHG4RsV7SaUT+FCwrnPMmcSVZx6fgG1jyi0+6hWpob6dSckz9eQ3ZwUOoTt9wCX69YEOEaMEfKHGxtILPiA4k7w= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Nov 2015 00:21:10.6569 (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.100];Helo=[xsj-pvapsmtpgw02] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN1AFFO11HUB039 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 5edd1efca015..738df6bb2646 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/