From patchwork Fri Mar 24 05:28:00 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vignesh Raghavendra X-Patchwork-Id: 9642283 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D5D65602C9 for ; Fri, 24 Mar 2017 05:28:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C72BA28464 for ; Fri, 24 Mar 2017 05:28:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BC10128474; Fri, 24 Mar 2017 05:28:48 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 461D228464 for ; Fri, 24 Mar 2017 05:28:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Z6W94Un69zcMbKeWzLqXKK5/YoUNzNwqBP8x/b3j62A=; b=hx8y67kTj1dtNV wOMwqD0NFHV1f8DKZEh1xX993EoHYd9G3jCnHphXm6kBP4e4uZPN/T3V+rsEQwsD2qTcJG0rWUE3E eouPeCn3+uwKLhJT7Y+uM0mM1l2h4GakPU3svk1cNJTQ7nRuSTaPmxnwBfehdnpJ2r23OhYx0uNn1 IarRqJXht8DisPgxO5fPqgggS1+kPF3JzQft86JgvZKAe92fwWfbPaQ5b1MGzKbnbBMtQkXgDT+eG YOM//HCRKzZFBBb5bbBn4Ug6TnSl0LNy36MVl1GE/nQz10TXEXAQ/8h5+A5GvGKyLQ0MWqajC9zxk lCjtOCz1vpi3oNtXvcnA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1crHmG-0005f1-F1; Fri, 24 Mar 2017 05:28:44 +0000 Received: from lelnx193.ext.ti.com ([198.47.27.77]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1crHm3-0005Tm-8N for linux-arm-kernel@lists.infradead.org; Fri, 24 Mar 2017 05:28:33 +0000 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by lelnx193.ext.ti.com (8.15.1/8.15.1) with ESMTP id v2O5SA8A015002; Fri, 24 Mar 2017 00:28:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1490333290; bh=DNA3B7/oz8yJfnYTvL/jwza90RB7xRTGIH47Y1PCvms=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=pInG7GSZGWK2Bsro5H8bvbozPSah4StynBPoiiAeF/Xt2uWg4J+ab0Dsq7VP9bKZs HIuz/6lz2xQ8PCGVDcSzllzk/Rkj0RPG1Gu4BAdVK0kX15+iQf4BMI1prm4U22GTBz RmzUdlOF0VIS96AXWAvb5F8SK/nBAFyJbDFbY/Z0= Received: from DLEE71.ent.ti.com (dlee71.ent.ti.com [157.170.170.114]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id v2O5SAfb030988; Fri, 24 Mar 2017 00:28:10 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DLEE71.ent.ti.com (157.170.170.114) with Microsoft SMTP Server id 14.3.294.0; Fri, 24 Mar 2017 00:28:10 -0500 Received: from a0132425.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id v2O5Ru7N028878; Fri, 24 Mar 2017 00:28:06 -0500 From: Vignesh R To: Greg Kroah-Hartman Subject: [PATCH v2 2/2] serial: 8250: 8250_core: Fix irq name for 8250 serial IRQ Date: Fri, 24 Mar 2017 10:58:00 +0530 Message-ID: <20170324052800.11526-3-vigneshr@ti.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170324052800.11526-1-vigneshr@ti.com> References: <20170324052800.11526-1-vigneshr@ti.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170323_222831_456810_D1A7108E X-CRM114-Status: UNSURE ( 6.37 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jisheng Zhang , Vignesh R , linux-kernel@vger.kernel.org, Andy Shevchenko , linux-serial@vger.kernel.org, Jiri Slaby , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Using dev_name() as IRQ name during request_irq() might be misleading in case of serial over PCI. Therefore identify serial port IRQ using uart_port's name field. This will help mapping IRQs to appropriate ttySN(where N is the serial port index) instances. Signed-off-by: Vignesh R Reviewed-by: Andy Shevchenko --- v2: Pick up reviewed by s/irq(s)/IRQ(s) in commit message drivers/tty/serial/8250/8250_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/8250/8250_core.c b/drivers/tty/serial/8250/8250_core.c index f83b69f30987..48a07e2f617f 100644 --- a/drivers/tty/serial/8250/8250_core.c +++ b/drivers/tty/serial/8250/8250_core.c @@ -218,7 +218,7 @@ static int serial_link_irq_chain(struct uart_8250_port *up) spin_unlock_irq(&i->lock); irq_flags |= up->port.irqflags; ret = request_irq(up->port.irq, serial8250_interrupt, - irq_flags, dev_name(up->port.dev), i); + irq_flags, up->port.name, i); if (ret < 0) serial_do_unlink(i, up); }