Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1162949AbbKTOmh (ORCPT ); Fri, 20 Nov 2015 09:42:37 -0500 Received: from mail-sn1nam02on0047.outbound.protection.outlook.com ([104.47.36.47]:27346 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1161912AbbKTOmf (ORCPT ); Fri, 20 Nov 2015 09:42:35 -0500 Authentication-Results: spf=pass (sender IP is 149.199.60.100) smtp.mailfrom=xilinx.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=bestguesspass action=none header.from=xilinx.com; Date: Fri, 20 Nov 2015 06:43:48 -0800 From: =?utf-8?B?U8O2cmVu?= Brinkmann To: Nava kishore Manne CC: , , , , , , Nava kishore Manne Subject: Re: [PATCH v2 1/3] serial: xuartps: Spliting the ISR into smaller routines. Message-ID: <20151120144348.GS32017@xsjsorenbubuntu> References: <1448026478-22131-1-git-send-email-navam@xilinx.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1448026478-22131-1-git-send-email-navam@xilinx.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.0.0.1202-21952.006 X-TM-AS-User-Approved-Sender: Yes;Yes X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:149.199.60.100;CTRY:US;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(2980300002)(438002)(24454002)(189002)(199003)(377424004)(83506001)(54356999)(5001960100002)(50986999)(6806005)(76176999)(47776003)(87936001)(23676002)(50466002)(33656002)(15975445007)(11100500001)(5007970100001)(77096005)(2950100001)(586003)(92566002)(33716001)(36386004)(81156007)(86362001)(4001350100001)(110136002)(107886002)(63266004)(4001450100002)(189998001)(76506005)(575784001)(4001430100002)(85182001)(57986006)(19580395003)(85202003)(106466001)(4001150100001)(19580405001)(5008740100001)(107986001)(5001870100001);DIR:OUT;SFP:1101;SCL:1;SRVR:BL2NAM02HT023;H:xsj-pvapsmtpgw02;FPR:;SPF:Pass;PTR:unknown-60-100.xilinx.com,xapps1.xilinx.com;MX:1;A:1;LANG:en; X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(8251501001);SRVR:BL2NAM02HT023; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(192813158149592); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(2401047)(520078)(8121501046)(5005006)(3002001)(10201501046);SRVR:BL2NAM02HT023;BCL:0;PCL:0;RULEID:;SRVR:BL2NAM02HT023; X-Forefront-PRVS: 07665BE9D1 X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Nov 2015 14:42:32.3424 (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: BL2NAM02HT023 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1342 Lines: 34 On Fri, 2015-11-20 at 07:04PM +0530, Nava kishore Manne wrote: > Breaking the single big ISR that has both Rx and Tx > in a single function into smaller ones > > Signed-off-by: Nava kishore Manne > --- > Changes for v2: > --Splits up the ISR without any functional changes as suggested > by Peter Hurley > > drivers/tty/serial/xilinx_uartps.c | 247 ++++++++++++++++++++----------------- > 1 file changed, 135 insertions(+), 112 deletions(-) > > diff --git a/drivers/tty/serial/xilinx_uartps.c b/drivers/tty/serial/xilinx_uartps.c > index 009e0db..2e1b0a8 100644 > --- a/drivers/tty/serial/xilinx_uartps.c > +++ b/drivers/tty/serial/xilinx_uartps.c > @@ -172,6 +172,9 @@ struct cdns_uart { > #define to_cdns_uart(_nb) container_of(_nb, struct cdns_uart, \ > clk_rate_change_nb); > > +static void cdns_uart_handle_tx(void *dev_id); > +static void cdns_uart_handle_rx(void *dev_id, unsigned int isrstatus); Can't you just move these functions here instead of adding prototypes here? Also, this is likely to conflict with https://lkml.org/lkml/2015/11/19/622 Sören -- 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/