From patchwork Tue Mar 21 13:36:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vignesh Raghavendra X-Patchwork-Id: 9636601 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 37674602CC for ; Tue, 21 Mar 2017 13:37:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3184B27D29 for ; Tue, 21 Mar 2017 13:37:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 254C327D8D; Tue, 21 Mar 2017 13:37:31 +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 B9A2627D29 for ; Tue, 21 Mar 2017 13:37:30 +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=FuCyNvkg01uFAGJXQXdNL0q1p+YF6OmcNO+fFjL7BNg=; b=e70oQquOQnBYzZ IHCOp9/wxEE2gV0mEJK4I6JVi00Ermc6Y6UUDHZtGgJuN8ZJHquWN4U9pl2z8cjOUE/T5CY+10iee eKtdg3svfzlQpZ3e4tBpTi5Gt6WAbciyzDzvUqMP3mVPcC48yAuHma9yi53REYWQ+1UzBdXj7hpjy kOtWBf79bWxuOXSWDzxGlhVTgM84vHj569oVqW5dZpPt8XM+j/31vrElPbuQ3v6EEyVCMF4arWIsV VXR3Pd5z/kiGN0q7ODAe7yFIN3+ql9KIrXZQmPSpeNeFDr6o0vaGvNW2hRqCja3ndbRvb/juGCNZU 4E3zZ708WQ6Grbtle4mw==; 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 1cqJyZ-0005V8-UI; Tue, 21 Mar 2017 13:37:27 +0000 Received: from fllnx210.ext.ti.com ([198.47.19.17]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cqJyC-0005AM-Bq for linux-arm-kernel@lists.infradead.org; Tue, 21 Mar 2017 13:37:07 +0000 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by fllnx210.ext.ti.com (8.15.1/8.15.1) with ESMTP id v2LDai1a009298; Tue, 21 Mar 2017 08:36:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1490103404; bh=O1nDP9DvLJp4UZg1c9psevq+XuU2eVC6Ni89DtnKw7U=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=a750BqTEVWH4eeK6p2RrFwBOm6gGN3A2YW/M/BHMotKx9WlRAqIOGjFwEmRrApuMN yJcxiJQXDkxGkmjgq8kCn/YBFB8Rog+qs7IYHI8y1pcVbqKn7NHu/lTG1gbtDSsCKI CXM6oehSI+2jgjM6hFpunEpDCfeL7NBNOaEyUaYY= Received: from DFLE72.ent.ti.com (dfle72.ent.ti.com [128.247.5.109]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id v2LDaiI7018180; Tue, 21 Mar 2017 08:36:44 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DFLE72.ent.ti.com (128.247.5.109) with Microsoft SMTP Server id 14.3.294.0; Tue, 21 Mar 2017 08:36:44 -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 v2LDaZFu022836; Tue, 21 Mar 2017 08:36:42 -0500 From: Vignesh R To: Greg Kroah-Hartman Subject: [PATCH 2/2] serial: 8250: 8250_core: Fix irq name for 8250 serial irq Date: Tue, 21 Mar 2017 19:06:36 +0530 Message-ID: <20170321133636.8814-3-vigneshr@ti.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170321133636.8814-1-vigneshr@ti.com> References: <20170321133636.8814-1-vigneshr@ti.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170321_063704_619119_DF4A809F X-CRM114-Status: UNSURE ( 6.92 ) 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 irqs 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 --- 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); }