From patchwork Fri Sep 5 10:09:48 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: wangyijing X-Patchwork-Id: 36796 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f71.google.com (mail-oa0-f71.google.com [209.85.219.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id DD2CD202E4 for ; Fri, 5 Sep 2014 09:52:53 +0000 (UTC) Received: by mail-oa0-f71.google.com with SMTP id g18sf58716878oah.10 for ; Fri, 05 Sep 2014 02:52:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:mime-version:cc:subject:precedence:list-id :list-unsubscribe:list-post:list-help:list-subscribe:sender :errors-to:x-original-sender:x-original-authentication-results :mailing-list:list-archive:content-type:content-transfer-encoding; bh=mwRx/JFsSNq6sRiX8D1MNONrlZIHDKFQzlHrikpkM3Y=; b=JLoX+dsiYE6fpQxwuiysU2Xd1MhGVFxZaVMIG22w34Z+DaRsbXoYar+innM+7ImedC ADz2mhFKy4pbCOAwU+Ejik4aPI5sdfmruCn2bydu6k6+j/UaJiBLtpulR2xsexA/8rDz ypsOLLEGnwm3p2pxfJRK7dHA+q/hzVnAN5nz6UjWc080af9mj/9FEfPmJKBoXgoUpcbS EbjfuTX3b97IMx48DJ1BmA1+noLxulHQJRWbzKE6yLJO8y8368hQUyuqgp+GqLBsVYXF mP+ohhSrqiDWWl+oMKe8d2qIn7Yr+qB1SRatf5heZwHRPFrSVQvIS600JFb/qWInhpXP OdSw== X-Gm-Message-State: ALoCoQmBW8kSSkGzmMldTPaEhsGMO+VUVb237VNwPAPc8DRAdZlDjE2eUf5YcCpCgQjp8zWJAoeh X-Received: by 10.42.210.17 with SMTP id gi17mr6138075icb.1.1409910768534; Fri, 05 Sep 2014 02:52:48 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.83.230 with SMTP id j93ls652451qgd.40.gmail; Fri, 05 Sep 2014 02:52:48 -0700 (PDT) X-Received: by 10.220.113.15 with SMTP id y15mr9274684vcp.17.1409910768348; Fri, 05 Sep 2014 02:52:48 -0700 (PDT) Received: from mail-vc0-f170.google.com (mail-vc0-f170.google.com [209.85.220.170]) by mx.google.com with ESMTPS id x11si852412vdg.56.2014.09.05.02.52.48 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 05 Sep 2014 02:52:48 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.170 as permitted sender) client-ip=209.85.220.170; Received: by mail-vc0-f170.google.com with SMTP id la4so12046331vcb.15 for ; Fri, 05 Sep 2014 02:52:48 -0700 (PDT) X-Received: by 10.52.239.108 with SMTP id vr12mr7790733vdc.30.1409910768282; Fri, 05 Sep 2014 02:52:48 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.45.67 with SMTP id uj3csp57063vcb; Fri, 5 Sep 2014 02:52:48 -0700 (PDT) X-Received: by 10.52.0.132 with SMTP id 4mr7880584vde.10.1409910767915; Fri, 05 Sep 2014 02:52:47 -0700 (PDT) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id sq9si819182vdb.90.2014.09.05.02.52.47 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 05 Sep 2014 02:52:47 -0700 (PDT) Received-SPF: none (google.com: xen-devel-bounces@lists.xen.org does not designate permitted sender hosts) client-ip=50.57.142.19; Received: from localhost ([127.0.0.1] helo=lists.xen.org) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XPqBR-0006fQ-4k; Fri, 05 Sep 2014 09:51:57 +0000 Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XPqBP-0006ec-SO for xen-devel@lists.xenproject.org; Fri, 05 Sep 2014 09:51:55 +0000 Received: from [85.158.143.35:18398] by server-2.bemta-4.messagelabs.com id F4/AA-04525-BB789045; Fri, 05 Sep 2014 09:51:55 +0000 X-Env-Sender: wangyijing@huawei.com X-Msg-Ref: server-2.tower-21.messagelabs.com!1409910711!3839823!1 X-Originating-IP: [119.145.14.66] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogMTE5LjE0NS4xNC42NiA9PiA4NTI3\n X-StarScan-Received: X-StarScan-Version: 6.11.3; banners=-,-,- X-VirusChecked: Checked Received: (qmail 20263 invoked from network); 5 Sep 2014 09:51:54 -0000 Received: from szxga03-in.huawei.com (HELO szxga03-in.huawei.com) (119.145.14.66) by server-2.tower-21.messagelabs.com with RC4-SHA encrypted SMTP; 5 Sep 2014 09:51:54 -0000 Received: from 172.24.2.119 (EHLO szxeml419-hub.china.huawei.com) ([172.24.2.119]) by szxrg03-dlp.huawei.com (MOS 4.4.3-GA FastPath queued) with ESMTP id ATY92833; Fri, 05 Sep 2014 17:45:43 +0800 (CST) Received: from localhost.localdomain (10.175.100.166) by szxeml419-hub.china.huawei.com (10.82.67.158) with Microsoft SMTP Server id 14.3.158.1; Fri, 5 Sep 2014 17:45:30 +0800 From: Yijing Wang To: Bjorn Helgaas Date: Fri, 5 Sep 2014 18:09:48 +0800 Message-ID: <1409911806-10519-4-git-send-email-wangyijing@huawei.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1409911806-10519-1-git-send-email-wangyijing@huawei.com> References: <1409911806-10519-1-git-send-email-wangyijing@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.175.100.166] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020202.5409864A.0153,ss=1,re=0.000,fgs=0, ip=0.0.0.0, so=2013-05-26 15:14:31, dmn=2011-05-27 18:58:46 X-Mirapoint-Loop-Id: efa8c0cfe40e2f1cf732ae5217198e12 Cc: linux-mips@linux-mips.org, linux-ia64@vger.kernel.org, linux-pci@vger.kernel.org, Bharat.Bhushan@freescale.com, Yijing Wang , sparclinux@vger.kernel.org, linux-arch@vger.kernel.org, linux-s390@vger.kernel.org, Russell King , Joerg Roedel , x86@kernel.org, Sebastian Ott , Benjamin Herrenschmidt , xen-devel@lists.xenproject.org, arnab.basu@freescale.com, Arnd Bergmann , Chris Metcalf , Thomas Gleixner , linux-arm-kernel@lists.infradead.org, Xinwei Hu , Tony Luck , Ralf Baechle , iommu@lists.linux-foundation.org, Wuyun , linuxppc-dev@lists.ozlabs.org, "David S. Miller" Subject: [Xen-devel] [PATCH v1 03/21] MSI: Remove the redundant irq_set_chip_data() X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Post: , List-Help: , List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: wangyijing@huawei.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.170 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Archive: Currently, pcie-designware, pcie-rcar, pci-tegra drivers use irq chip_data to save the msi_chip pointer. They already call irq_set_chip_data() in their own MSI irq map functions. So irq_set_chip_data() in arch_setup_msi_irq() is useless. Signed-off-by: Yijing Wang --- drivers/pci/msi.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/drivers/pci/msi.c b/drivers/pci/msi.c index f6cb317..d547f7f 100644 --- a/drivers/pci/msi.c +++ b/drivers/pci/msi.c @@ -41,8 +41,6 @@ int __weak arch_setup_msi_irq(struct pci_dev *dev, struct msi_desc *desc) if (err < 0) return err; - irq_set_chip_data(desc->irq, chip); - return 0; }