From patchwork Mon Dec 30 12:33:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kishon Vijay Abraham I X-Patchwork-Id: 182610 Delivered-To: patch@linaro.org Received: by 2002:a92:815a:0:0:0:0:0 with SMTP id e87csp6283250ild; Mon, 30 Dec 2019 04:31:51 -0800 (PST) X-Google-Smtp-Source: APXvYqz03IqIHuJJmmxvZDhZ9rxKXjKluBKK9qJWy6GFlzgKI+GeobDgpMUT8U9hL8FsGoli8/oF X-Received: by 2002:a05:6830:2009:: with SMTP id e9mr21787043otp.160.1577709110973; Mon, 30 Dec 2019 04:31:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577709110; cv=none; d=google.com; s=arc-20160816; b=WWH8Qm7TzNosPYWCs34ER6bDFz4FkKBi3V8G/bugq7Ru+ZK1CqlCUpx47WDQ1z5XC+ seiNbmhZRXx6h2gPcScAvOwHbuZAKhbffXxvoi5eMwAER8otE/eZrz4T81xjnGNmGzEo LqdNTAoDCCk2XyZlqVETRHixVGyvg6UsPl06GnkltXKayNp60Fmu/r/EvXq+K1WqigUc 6wifK9Bh7JF3ClHFRJjJKKCT3z+GP4PbEitlKGVIMRBUP/jQITHLc8a2gu9ZxqabXT5S x0WM4iqN8AczbmNSDuOGM6Q/jaFRc4BrCPS3cumopSzz2bcspXWbsoQp3aygdBQeFsFp +mlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=k383SgYvrZOses1OYvohCYRsQU04lSCHiU+tY0yKKY4=; b=pF1Ogu8x2aafanvuje91obqG8ZaTwv1+3Dc18bwgu/JOv47bgr0EYHJuKwdH5d+nWi IsSBHi2sauVH8NN7SlMwZyIQB9OtX+JDmLh2B8mgXsfkkpoa+SGuiQALv1noIIa9VDDx P1j+tEi9NyY7vlI/mCneQBoozV63ptH/EEyCOXlY7TF4RUV+n/mujsyYSvOsJg8b6aXY TR+1OxyeDdBBamF1lmXrpbEd1b6+FLpdG7eJTvxXPDK8bNk/zZ9gAOzkq4thrlHdf24v 6HON6OT3Ef3KEBMtHjn5stCEvzuChMzqV6BrseGyRj4uK3autQA+qXd5Tp4Tjqqht8Zc jwSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=AuhWXSKY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v76si21085570oif.207.2019.12.30.04.31.50; Mon, 30 Dec 2019 04:31:50 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=AuhWXSKY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727516AbfL3Mbq (ORCPT + 27 others); Mon, 30 Dec 2019 07:31:46 -0500 Received: from fllv0016.ext.ti.com ([198.47.19.142]:33384 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727477AbfL3Mbk (ORCPT ); Mon, 30 Dec 2019 07:31:40 -0500 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id xBUCVX4V065599; Mon, 30 Dec 2019 06:31:33 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1577709093; bh=k383SgYvrZOses1OYvohCYRsQU04lSCHiU+tY0yKKY4=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=AuhWXSKYUSGLsCYxQN+EFlK4x2ymRRJCnbIM9lgGeQpEDmDVHmFu14kHL4OADOq90 Ww7wUyEygN8XBWiHNrY70CQ8UrfSk4FrB1sy25lgFdE/aVrz0WDYBGAXIF2eR75w5I 2uRvRAy40fq7MDjKW9CXOEI0hFmUkEcHomXe0xeg= Received: from DFLE100.ent.ti.com (dfle100.ent.ti.com [10.64.6.21]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTP id xBUCVX0I112470; Mon, 30 Dec 2019 06:31:33 -0600 Received: from DFLE103.ent.ti.com (10.64.6.24) by DFLE100.ent.ti.com (10.64.6.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Mon, 30 Dec 2019 06:31:33 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3 via Frontend Transport; Mon, 30 Dec 2019 06:31:33 -0600 Received: from a0393678ub.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id xBUCVEhS002491; Mon, 30 Dec 2019 06:31:31 -0600 From: Kishon Vijay Abraham I To: Kishon Vijay Abraham I , Lorenzo Pieralisi , Arnd Bergmann CC: Greg Kroah-Hartman , Bjorn Helgaas , , Subject: [PATCH 6/7] misc: pci_endpoint_test: Use full pci-endpoint-test name in request irq Date: Mon, 30 Dec 2019 18:03:14 +0530 Message-ID: <20191230123315.31037-7-kishon@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191230123315.31037-1-kishon@ti.com> References: <20191230123315.31037-1-kishon@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use full pci-endpoint-test name in request irq, so that it's easy to profile the device that actually raised the interrupt. Signed-off-by: Kishon Vijay Abraham I --- drivers/misc/pci_endpoint_test.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) -- 2.17.1 diff --git a/drivers/misc/pci_endpoint_test.c b/drivers/misc/pci_endpoint_test.c index b622e234f57c..dae450c1a653 100644 --- a/drivers/misc/pci_endpoint_test.c +++ b/drivers/misc/pci_endpoint_test.c @@ -108,6 +108,7 @@ struct pci_endpoint_test { struct miscdevice miscdev; enum pci_barno test_reg_bar; size_t alignment; + const char *name; }; struct pci_endpoint_test_data { @@ -226,7 +227,7 @@ static bool pci_endpoint_test_request_irq(struct pci_endpoint_test *test) for (i = 0; i < test->num_irqs; i++) { err = devm_request_irq(dev, pci_irq_vector(pdev, i), pci_endpoint_test_irqhandler, - IRQF_SHARED, DRV_MODULE_NAME, test); + IRQF_SHARED, test->name, test); if (err) goto fail; } @@ -752,6 +753,7 @@ static int pci_endpoint_test_probe(struct pci_dev *pdev, dev_err(dev, "Failed to register device\n"); goto err_kfree_name; } + test->name = kstrdup(name, GFP_KERNEL); return 0; @@ -792,6 +794,7 @@ static void pci_endpoint_test_remove(struct pci_dev *pdev) misc_deregister(&test->miscdev); kfree(misc_device->name); + kfree(test->name); ida_simple_remove(&pci_endpoint_test_ida, id); for (bar = 0; bar < PCI_STD_NUM_BARS; bar++) { if (test->bar[bar])